@omni-commerce/sdk 0.21.0 → 0.23.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 +7 -0
- package/dist/index.cjs +378 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2535 -242
- package/dist/index.d.ts +2535 -242
- package/dist/index.js +378 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -158,7 +158,7 @@ interface paths {
|
|
|
158
158
|
* Manage customer-owned purchase offers
|
|
159
159
|
* @description ### Operations
|
|
160
160
|
*
|
|
161
|
-
* create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe
|
|
161
|
+
* create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe, Qashier or HitPay hosted payment.
|
|
162
162
|
*
|
|
163
163
|
* ### Results and safeguards
|
|
164
164
|
*
|
|
@@ -166,7 +166,7 @@ interface paths {
|
|
|
166
166
|
*
|
|
167
167
|
* ### Payment
|
|
168
168
|
*
|
|
169
|
-
* Completion
|
|
169
|
+
* Completion uses the configured Stripe ACP, x402, Qashier or HitPay rail. Qashier uses authenticated server-side receipts and signed webhooks with a durable expiry deadline. PayNow is available through Qashier or HitPay when enabled in the merchant account; no bank statement import is required. Qashier and HitPay require a full delivery address before payment. Hosted card checkout requires this organization's seller Stripe key and a public HTTPS webhook destination; signed Stripe events and a one-shot durable deadline use the same completion service. The page collects an address within the quoted country. Indeterminate confirmation remains payment_pending and blocks a new payment; x402 uncertainty requires merchant reconciliation. Direct creation honors configured bot verification. Payment completion does not book a carrier or establish delivery.
|
|
170
170
|
*
|
|
171
171
|
* ### Signed offers and buyer agents
|
|
172
172
|
*
|
|
@@ -179,6 +179,55 @@ interface paths {
|
|
|
179
179
|
patch?: never;
|
|
180
180
|
trace?: never;
|
|
181
181
|
};
|
|
182
|
+
"/api/v1/agents/{agentId}/messages": {
|
|
183
|
+
parameters: {
|
|
184
|
+
query?: never;
|
|
185
|
+
header?: never;
|
|
186
|
+
path?: never;
|
|
187
|
+
cookie?: never;
|
|
188
|
+
};
|
|
189
|
+
get?: never;
|
|
190
|
+
put?: never;
|
|
191
|
+
/**
|
|
192
|
+
* Send a message to an agent
|
|
193
|
+
* @description Message the exact built-in or custom agent in the URL, using its saved model, instructions, tools, permissions and Programmatic starting mode.
|
|
194
|
+
*
|
|
195
|
+
* ### Authentication
|
|
196
|
+
* Requires an API key with `agents:invoke`, or a sign-in session. Organization-owned keys use their recorded creator's current membership and agent access; keys without a valid owner are refused. API keys identify their organization; session requests include `organizationId`.
|
|
197
|
+
*
|
|
198
|
+
* ### Conversation and execution
|
|
199
|
+
* - The same caller, agent and `clientThreadKey` continue one conversation. Different callers, agents and organizations are isolated.
|
|
200
|
+
* - No model, prompt or tool overrides are accepted.
|
|
201
|
+
* - `wait=false` queues durable work and returns 202; `wait=true` returns the final reply or pending approvals.
|
|
202
|
+
* - Send `decisions` with the same `clientThreadKey` to approve or reject a paused run.
|
|
203
|
+
*/
|
|
204
|
+
post: operations["post_v1_agents_by_agentid_messages"];
|
|
205
|
+
delete?: never;
|
|
206
|
+
options?: never;
|
|
207
|
+
head?: never;
|
|
208
|
+
patch?: never;
|
|
209
|
+
trace?: never;
|
|
210
|
+
};
|
|
211
|
+
"/api/v1/agents/{agentId}/runs/{runId}": {
|
|
212
|
+
parameters: {
|
|
213
|
+
query?: never;
|
|
214
|
+
header?: never;
|
|
215
|
+
path?: never;
|
|
216
|
+
cookie?: never;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Get an agent message run
|
|
220
|
+
* @description Read an agent message run belonging to the authenticated caller and the exact agent in the URL. Current organization membership and agent sharing are checked again. Requires agents:invoke.
|
|
221
|
+
*/
|
|
222
|
+
get: operations["get_v1_agents_by_agentid_runs_by_runid"];
|
|
223
|
+
put?: never;
|
|
224
|
+
post?: never;
|
|
225
|
+
delete?: never;
|
|
226
|
+
options?: never;
|
|
227
|
+
head?: never;
|
|
228
|
+
patch?: never;
|
|
229
|
+
trace?: never;
|
|
230
|
+
};
|
|
182
231
|
"/api/v1/agents/general/invoke": {
|
|
183
232
|
parameters: {
|
|
184
233
|
query?: never;
|
|
@@ -740,6 +789,8 @@ interface paths {
|
|
|
740
789
|
* Get Campaign Analytics
|
|
741
790
|
* @description Read the same imported-order campaign analytics as the application. Monetary totals are partitioned by currency. Optional analyticsWindow selects one campaign window; voucher utilisation limitations are explicit.
|
|
742
791
|
*
|
|
792
|
+
* ### Authorization
|
|
793
|
+
*
|
|
743
794
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
744
795
|
*/
|
|
745
796
|
get: operations["get_v1_campaigns_by_campaignid_analytics"];
|
|
@@ -762,6 +813,8 @@ interface paths {
|
|
|
762
813
|
* Get Campaign Notifications
|
|
763
814
|
* @description Read the executing actor's campaign notification preference.
|
|
764
815
|
*
|
|
816
|
+
* ### Authorization
|
|
817
|
+
*
|
|
765
818
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
766
819
|
*/
|
|
767
820
|
get: operations["get_v1_campaigns_by_campaignid_notifications"];
|
|
@@ -769,6 +822,8 @@ interface paths {
|
|
|
769
822
|
* Set Campaign Notifications
|
|
770
823
|
* @description Set only the executing actor's campaign notification preference. Does not change campaign delivery or other members' preferences.
|
|
771
824
|
*
|
|
825
|
+
* ### Authorization
|
|
826
|
+
*
|
|
772
827
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
773
828
|
*/
|
|
774
829
|
put: operations["put_v1_campaigns_by_campaignid_notifications"];
|
|
@@ -790,6 +845,8 @@ interface paths {
|
|
|
790
845
|
* List Campaign Offers
|
|
791
846
|
* @description Filter and page the canonical campaign plan or pending live proposal, with the same attention rules as the campaign editor.
|
|
792
847
|
*
|
|
848
|
+
* ### Authorization
|
|
849
|
+
*
|
|
793
850
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
794
851
|
*/
|
|
795
852
|
get: operations["get_v1_campaigns_by_campaignid_offers"];
|
|
@@ -814,6 +871,8 @@ interface paths {
|
|
|
814
871
|
* Act on Campaigns
|
|
815
872
|
* @description Apply one action to 1–20 reviewed targets. Approve, run, approve_and_run, end, resume, retry, approve_change, discard_change, archive, restore or delete. Requires each expectedRevision and the pending version for live-change decisions. Named-approver and current role/store checks remain enforced. Duplicates execute once; partial failures remain explicit. Starting queues durable delivery; inspect campaign executions to verify marketplace outcomes.
|
|
816
873
|
*
|
|
874
|
+
* ### Authorization
|
|
875
|
+
*
|
|
817
876
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
818
877
|
*/
|
|
819
878
|
post: operations["post_v1_campaigns_actions"];
|
|
@@ -876,6 +935,8 @@ interface paths {
|
|
|
876
935
|
* Import Campaign Workbooks
|
|
877
936
|
* @description Import 1–10 uploaded Excel document IDs. Preview defaults to true; set preview=false to save. Re-upload one document with campaignId to update a campaign. To apply a running campaign immediately, use applyChanges=true with the reviewed expectedRevision and expectedPendingVersion (null when none); only the named approver with publish permission may apply. Changed values and qualifying SKU removals use canonical marketplace validation and durable sync. Requires documents:read in addition to promotions:write. No browser session is required.
|
|
878
937
|
*
|
|
938
|
+
* ### Authorization
|
|
939
|
+
*
|
|
879
940
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
880
941
|
*/
|
|
881
942
|
post: operations["post_v1_campaigns_import"];
|
|
@@ -918,6 +979,8 @@ interface paths {
|
|
|
918
979
|
* Resolve Campaign Promotion Selection
|
|
919
980
|
* @description Read 1–50 eligible draft promotions as campaign offers without creating or publishing promotions. Exact organization/store ownership and existing campaign links are checked.
|
|
920
981
|
*
|
|
982
|
+
* ### Authorization
|
|
983
|
+
*
|
|
921
984
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
922
985
|
*/
|
|
923
986
|
post: operations["post_v1_campaigns_promotion_options"];
|
|
@@ -940,6 +1003,8 @@ interface paths {
|
|
|
940
1003
|
* Validate Campaigns
|
|
941
1004
|
* @description Read-only preflight of 1–10 saved campaign IDs or proposed plans. Uses the same readiness, connected-store and offer validation as approval. shiftToNow returns a proposed shifted plan; syncMode=campaign_start selects Full sync. Neither option saves or publishes. Save the returned plan with the reviewed revision before approve_and_run. Current marketplace delivery is separate execution evidence.
|
|
942
1005
|
*
|
|
1006
|
+
* ### Authorization
|
|
1007
|
+
*
|
|
943
1008
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
944
1009
|
*/
|
|
945
1010
|
post: operations["post_v1_campaigns_validate"];
|
|
@@ -986,7 +1051,13 @@ interface paths {
|
|
|
986
1051
|
put?: never;
|
|
987
1052
|
/**
|
|
988
1053
|
* Start Catalog Operation
|
|
989
|
-
* @description
|
|
1054
|
+
* @description ### Scope
|
|
1055
|
+
*
|
|
1056
|
+
* Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write.
|
|
1057
|
+
*
|
|
1058
|
+
* ### Consistency and progress
|
|
1059
|
+
*
|
|
1060
|
+
* Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.
|
|
990
1061
|
*/
|
|
991
1062
|
post: operations["post_v1_catalog_operations"];
|
|
992
1063
|
delete?: never;
|
|
@@ -1035,6 +1106,26 @@ interface paths {
|
|
|
1035
1106
|
patch?: never;
|
|
1036
1107
|
trace?: never;
|
|
1037
1108
|
};
|
|
1109
|
+
"/api/v1/catalog/products": {
|
|
1110
|
+
parameters: {
|
|
1111
|
+
query?: never;
|
|
1112
|
+
header?: never;
|
|
1113
|
+
path?: never;
|
|
1114
|
+
cookie?: never;
|
|
1115
|
+
};
|
|
1116
|
+
/**
|
|
1117
|
+
* Get Public Product Details
|
|
1118
|
+
* @description Read the same stored public product details as /catalog/{productId}, including product capabilities, FAQs, localizations, citations, variants, recorded prices, stock and marketplace offers. No account or AI generation. Missing products are explicit per-target failures.
|
|
1119
|
+
*/
|
|
1120
|
+
get: operations["get_v1_catalog_products"];
|
|
1121
|
+
put?: never;
|
|
1122
|
+
post?: never;
|
|
1123
|
+
delete?: never;
|
|
1124
|
+
options?: never;
|
|
1125
|
+
head?: never;
|
|
1126
|
+
patch?: never;
|
|
1127
|
+
trace?: never;
|
|
1128
|
+
};
|
|
1038
1129
|
"/api/v1/catalog/query": {
|
|
1039
1130
|
parameters: {
|
|
1040
1131
|
query?: never;
|
|
@@ -1046,7 +1137,9 @@ interface paths {
|
|
|
1046
1137
|
put?: never;
|
|
1047
1138
|
/**
|
|
1048
1139
|
* Query Catalog
|
|
1049
|
-
* @description Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match.
|
|
1140
|
+
* @description Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match.
|
|
1141
|
+
*
|
|
1142
|
+
* Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
|
|
1050
1143
|
*/
|
|
1051
1144
|
post: operations["post_v1_catalog_query"];
|
|
1052
1145
|
delete?: never;
|
|
@@ -1143,6 +1236,30 @@ interface paths {
|
|
|
1143
1236
|
patch?: never;
|
|
1144
1237
|
trace?: never;
|
|
1145
1238
|
};
|
|
1239
|
+
"/api/v1/checkout-sessions/{sessionId}/pay": {
|
|
1240
|
+
parameters: {
|
|
1241
|
+
query?: never;
|
|
1242
|
+
header?: never;
|
|
1243
|
+
path?: never;
|
|
1244
|
+
cookie?: never;
|
|
1245
|
+
};
|
|
1246
|
+
get?: never;
|
|
1247
|
+
put?: never;
|
|
1248
|
+
/**
|
|
1249
|
+
* Start payment for an approved checkout offer
|
|
1250
|
+
* @description Requires checkout:write.
|
|
1251
|
+
*
|
|
1252
|
+
* Starts seller Stripe, Qashier or HitPay hosted checkout. Buyer approval must match the current cart version, total and currency. Qashier and HitPay require a full delivery address before payment.
|
|
1253
|
+
*
|
|
1254
|
+
* Qashier and HitPay support PayNow in Singapore when enabled for the merchant. Payment is confirmed using signed webhooks and authenticated server-side receipts. Closing the buyer page does not cancel or complete payment.
|
|
1255
|
+
*/
|
|
1256
|
+
post: operations["post_v1_checkout_sessions_by_sessionid_pay"];
|
|
1257
|
+
delete?: never;
|
|
1258
|
+
options?: never;
|
|
1259
|
+
head?: never;
|
|
1260
|
+
patch?: never;
|
|
1261
|
+
trace?: never;
|
|
1262
|
+
};
|
|
1146
1263
|
"/api/v1/commerce/jobs/await": {
|
|
1147
1264
|
parameters: {
|
|
1148
1265
|
query?: never;
|
|
@@ -1210,7 +1327,9 @@ interface paths {
|
|
|
1210
1327
|
put?: never;
|
|
1211
1328
|
/**
|
|
1212
1329
|
* Start Commerce Verification
|
|
1213
|
-
* @description Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read.
|
|
1330
|
+
* @description Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read.
|
|
1331
|
+
*
|
|
1332
|
+
* Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
|
|
1214
1333
|
*/
|
|
1215
1334
|
post: operations["post_v1_commerce_state_verify_jobs"];
|
|
1216
1335
|
delete?: never;
|
|
@@ -1290,7 +1409,9 @@ interface paths {
|
|
|
1290
1409
|
};
|
|
1291
1410
|
/**
|
|
1292
1411
|
* Get Document
|
|
1293
|
-
* @description Read one knowledge base document and its indexing status. Requires `documents:read`.
|
|
1412
|
+
* @description Read one knowledge base document and its indexing status. Requires `documents:read`.
|
|
1413
|
+
*
|
|
1414
|
+
* Set includeDownloadUrl=true for a private file URL valid for five minutes, suitable for SDK file downloads. URLs are scoped to the authenticated organization and are not returned for bank statements. Responses must not be cached.
|
|
1294
1415
|
*/
|
|
1295
1416
|
get: operations["get_v1_documents_by_documentid"];
|
|
1296
1417
|
put?: never;
|
|
@@ -1341,6 +1462,70 @@ interface paths {
|
|
|
1341
1462
|
patch?: never;
|
|
1342
1463
|
trace?: never;
|
|
1343
1464
|
};
|
|
1465
|
+
"/api/v1/follow-ups": {
|
|
1466
|
+
parameters: {
|
|
1467
|
+
query?: never;
|
|
1468
|
+
header?: never;
|
|
1469
|
+
path?: never;
|
|
1470
|
+
cookie?: never;
|
|
1471
|
+
};
|
|
1472
|
+
/**
|
|
1473
|
+
* List Follow-ups
|
|
1474
|
+
* @description Your follow-ups on every conversation, plus every follow-up on `threadId` (whoever left it) when you can open that conversation. Waiting follow-ups come first.
|
|
1475
|
+
*
|
|
1476
|
+
* `state` is `waiting`, `fired`, `expired` (it waited past `expiresAt`), `canceled` or `failed` (`failure` says why: its owner lost access, or the conversation was stopped or its last run failed).
|
|
1477
|
+
*
|
|
1478
|
+
* ### Authorization
|
|
1479
|
+
*
|
|
1480
|
+
* Requires `agents:invoke`.
|
|
1481
|
+
*/
|
|
1482
|
+
get: operations["get_v1_follow_ups"];
|
|
1483
|
+
put?: never;
|
|
1484
|
+
/**
|
|
1485
|
+
* Create Follow-up
|
|
1486
|
+
* @description Leave a one-shot follow-up on an assistant conversation you can open. Give exactly one of `at` (ISO 8601 with a timezone), `after` (a duration such as 90m, 4h, 14d or 2w) or `eventType` with an optional CEL `match` over `event` (the event's condition fields, as in AOP event triggers).
|
|
1487
|
+
*
|
|
1488
|
+
* When it fires it continues `threadId` from `note` as you (`then=resume`, the default) or only emails you (`then=notify`). It never interrupts a run in progress: the continuation waits in the conversation's queue. A stopped conversation, or one whose last run failed, is not continued.
|
|
1489
|
+
*
|
|
1490
|
+
* An event follow-up waits `expires` (10d by default) for its event; a timed one may be at most a year ahead.
|
|
1491
|
+
*
|
|
1492
|
+
* ### Authorization
|
|
1493
|
+
*
|
|
1494
|
+
* Requires `agents:invoke` with a person's credential (API key or session); OAuth client credentials act for no one and are refused. The follow-up runs as that person.
|
|
1495
|
+
*/
|
|
1496
|
+
post: operations["post_v1_follow_ups"];
|
|
1497
|
+
delete?: never;
|
|
1498
|
+
options?: never;
|
|
1499
|
+
head?: never;
|
|
1500
|
+
patch?: never;
|
|
1501
|
+
trace?: never;
|
|
1502
|
+
};
|
|
1503
|
+
"/api/v1/follow-ups/cancel": {
|
|
1504
|
+
parameters: {
|
|
1505
|
+
query?: never;
|
|
1506
|
+
header?: never;
|
|
1507
|
+
path?: never;
|
|
1508
|
+
cookie?: never;
|
|
1509
|
+
};
|
|
1510
|
+
get?: never;
|
|
1511
|
+
put?: never;
|
|
1512
|
+
/**
|
|
1513
|
+
* Cancel Follow-ups
|
|
1514
|
+
* @description Cancel your follow-ups that have not fired, so they never fire. One that already fired, expired or was canceled reports why per id; another person's follow-up reads as not found.
|
|
1515
|
+
*
|
|
1516
|
+
* Returns `followUpIds`, `succeededCount`, `failedCount` and ordered `results`; `ok` is true only when every id was canceled.
|
|
1517
|
+
*
|
|
1518
|
+
* ### Authorization
|
|
1519
|
+
*
|
|
1520
|
+
* Requires `agents:invoke`.
|
|
1521
|
+
*/
|
|
1522
|
+
post: operations["post_v1_follow_ups_cancel"];
|
|
1523
|
+
delete?: never;
|
|
1524
|
+
options?: never;
|
|
1525
|
+
head?: never;
|
|
1526
|
+
patch?: never;
|
|
1527
|
+
trace?: never;
|
|
1528
|
+
};
|
|
1344
1529
|
"/api/v1/images/ghost-mannequin": {
|
|
1345
1530
|
parameters: {
|
|
1346
1531
|
query?: never;
|
|
@@ -1938,7 +2123,13 @@ interface paths {
|
|
|
1938
2123
|
* Create Price Book Rule
|
|
1939
2124
|
* @description Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.
|
|
1940
2125
|
*
|
|
2126
|
+
* ### Pricing
|
|
2127
|
+
*
|
|
1941
2128
|
* `expression` is the buyer formula and replaces markup percent. `price` in that formula is the catalog price, not cost price. Without an expression, `marginValue` is the markup percent.
|
|
2129
|
+
*
|
|
2130
|
+
* ### Direct checkout
|
|
2131
|
+
*
|
|
2132
|
+
* The Direct checkout channel (`agentic_checkout`) applies immediately to direct checkout and public headline prices, defaults to catalog price with zero markup when no enabled rule matches, and requires null/omitted storeId and country. Marketplace rules only price their own offers; Direct checkout rules require no marketplace sync.
|
|
1942
2133
|
*/
|
|
1943
2134
|
post: operations["post_v1_price_books"];
|
|
1944
2135
|
delete?: never;
|
|
@@ -2009,6 +2200,10 @@ interface paths {
|
|
|
2009
2200
|
* ### Stock and variants
|
|
2010
2201
|
*
|
|
2011
2202
|
* Rows are in `items`. Read catalog stock from `items[].stockQuantity`: parent rows already aggregate their non-deleted variants, and virtual bundles use component availability with any manual cap. Null means unknown, not zero. A row with `variantCount` above 0 has variants; fetch them from `GET /api/v1/products/{productId}`. List rows do not contain `inventoryQuantity`, `inventory.quantity`, or an embedded `variants` array.
|
|
2203
|
+
*
|
|
2204
|
+
* ### Duplicate discovery and merge
|
|
2205
|
+
*
|
|
2206
|
+
* Use status=duplicates, duplicateType=sku and detail=full for exact-SKU candidates. Each root row includes duplicateMatches with peer productIds, names, SKUs and match reasons. Follow pagination; detail=summary omits this evidence. Start or refresh the saved scan with products.scanDuplicates and inspect products.getDuplicateScan. Combine each root ID with its exact_sku peer IDs, deduplicate, then call products.previewDuplicateMerge with 2–20 productIds. Inspect every group's masterSelections: a sole allowed product must stay master; multiple allowed products leave the content/price/stock choice to the seller. Preview again with masterProductIds, review all listings, then call products.mergeDuplicates with the reviewed expectedGroups. Content similarity alone is not permission to merge. See /guides/merge-marketplace-listings for CLI and SDK examples.
|
|
2012
2207
|
*/
|
|
2013
2208
|
get: operations["get_v1_products"];
|
|
2014
2209
|
put?: never;
|
|
@@ -2338,6 +2533,50 @@ interface paths {
|
|
|
2338
2533
|
patch?: never;
|
|
2339
2534
|
trace?: never;
|
|
2340
2535
|
};
|
|
2536
|
+
"/api/v1/products/bulk-update": {
|
|
2537
|
+
parameters: {
|
|
2538
|
+
query?: never;
|
|
2539
|
+
header?: never;
|
|
2540
|
+
path?: never;
|
|
2541
|
+
cookie?: never;
|
|
2542
|
+
};
|
|
2543
|
+
/**
|
|
2544
|
+
* 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.
|
|
2546
|
+
*/
|
|
2547
|
+
get: operations["get_v1_products_bulk_update"];
|
|
2548
|
+
put?: never;
|
|
2549
|
+
/**
|
|
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.
|
|
2552
|
+
*/
|
|
2553
|
+
post: operations["post_v1_products_bulk_update"];
|
|
2554
|
+
delete?: never;
|
|
2555
|
+
options?: never;
|
|
2556
|
+
head?: never;
|
|
2557
|
+
patch?: never;
|
|
2558
|
+
trace?: never;
|
|
2559
|
+
};
|
|
2560
|
+
"/api/v1/products/bulk-update/status": {
|
|
2561
|
+
parameters: {
|
|
2562
|
+
query?: never;
|
|
2563
|
+
header?: never;
|
|
2564
|
+
path?: never;
|
|
2565
|
+
cookie?: never;
|
|
2566
|
+
};
|
|
2567
|
+
get?: never;
|
|
2568
|
+
put?: never;
|
|
2569
|
+
/**
|
|
2570
|
+
* 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.
|
|
2572
|
+
*/
|
|
2573
|
+
post: operations["post_v1_products_bulk_update_status"];
|
|
2574
|
+
delete?: never;
|
|
2575
|
+
options?: never;
|
|
2576
|
+
head?: never;
|
|
2577
|
+
patch?: never;
|
|
2578
|
+
trace?: never;
|
|
2579
|
+
};
|
|
2341
2580
|
"/api/v1/products/compare-prices": {
|
|
2342
2581
|
parameters: {
|
|
2343
2582
|
query?: never;
|
|
@@ -2454,6 +2693,102 @@ interface paths {
|
|
|
2454
2693
|
patch?: never;
|
|
2455
2694
|
trace?: never;
|
|
2456
2695
|
};
|
|
2696
|
+
"/api/v1/products/duplicates/merge": {
|
|
2697
|
+
parameters: {
|
|
2698
|
+
query?: never;
|
|
2699
|
+
header?: never;
|
|
2700
|
+
path?: never;
|
|
2701
|
+
cookie?: never;
|
|
2702
|
+
};
|
|
2703
|
+
get?: never;
|
|
2704
|
+
put?: never;
|
|
2705
|
+
/**
|
|
2706
|
+
* Merge Duplicate Products
|
|
2707
|
+
* @description Merge exact-SKU duplicate products into one master product per group. The master keeps its content, images, price and stock; the group's other products are archived into it, and orders, reviews, promotions and other catalog references move to the master.
|
|
2708
|
+
*
|
|
2709
|
+
* All marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group. Standalone-only merges do not publish. When variants remain, variantStrategy selects keeping the master's variant set or merging compatible source variants, and the same operation automatically publishes the resulting variants to every preserved store listing. Live/draft visibility is retained; the marketplace may require a replacement listing for an incompatible variant structure.
|
|
2710
|
+
*
|
|
2711
|
+
* Each group commits independently; the response lists every group's outcome. Sources with inventory history or immutable order composition snapshots must be reconciled before archiving so returns and stock replays keep their targets.
|
|
2712
|
+
*
|
|
2713
|
+
* Supports every OmniCommerce marketplace. Variant merging requires an existing variant master, unambiguous SKU/option mappings and compatible dimensions. Bundles and products in different currencies cannot be merged. A stock-connected product may be kept as master; it cannot be archived into another product. Use preview masterSelections to choose an allowed master. Variant groups contain at most 200 child products.
|
|
2714
|
+
*
|
|
2715
|
+
* ### Authorization
|
|
2716
|
+
*
|
|
2717
|
+
* Requires `catalog:write`. Variant merging also rechecks products.publish authorization before committing and before each store dispatch. Publishing uses the canonical durable marketplace jobs. Inspect groups[].publishResults and await every returned publish_job correlation together before reporting marketplace completion. Queue acceptance is not completion. Retry the same merge to resume failed store dispatches without repeating the catalog merge; a publishing failure does not roll back an already committed merge.
|
|
2718
|
+
*
|
|
2719
|
+
* ### Limits
|
|
2720
|
+
*
|
|
2721
|
+
* 2–20 products and up to 10 groups per request. Pin a reviewed preview with `expectedGroups` to refuse groups that changed since.
|
|
2722
|
+
*
|
|
2723
|
+
* Set dryRun=true to simulate the same transaction and roll it back. The response has data.dryRun=true; succeededCount/failedCount count validation outcomes, mergedProductIds is empty and wouldMergeProductIds lists the planned sources. No product update events or duplicate scan refreshes are emitted. A successful simulation is not a saved merge; real execution validates current data again.
|
|
2724
|
+
*/
|
|
2725
|
+
post: operations["post_v1_products_duplicates_merge"];
|
|
2726
|
+
delete?: never;
|
|
2727
|
+
options?: never;
|
|
2728
|
+
head?: never;
|
|
2729
|
+
patch?: never;
|
|
2730
|
+
trace?: never;
|
|
2731
|
+
};
|
|
2732
|
+
"/api/v1/products/duplicates/merge-preview": {
|
|
2733
|
+
parameters: {
|
|
2734
|
+
query?: never;
|
|
2735
|
+
header?: never;
|
|
2736
|
+
path?: never;
|
|
2737
|
+
cookie?: never;
|
|
2738
|
+
};
|
|
2739
|
+
get?: never;
|
|
2740
|
+
put?: never;
|
|
2741
|
+
/**
|
|
2742
|
+
* Preview Duplicate Product Merge
|
|
2743
|
+
* @description Read-only preview of merging duplicate catalog products into one master product. Uses the same contract and rules as `POST /api/v1/products/duplicates/merge` and the assistant's Fix Listing Duplicates tool.
|
|
2744
|
+
*
|
|
2745
|
+
* Products are grouped by exact SKU. Each group shows its master (first in `productIds`), every product's marketplace listings per store with live status. A blocked group reports its `error`; nothing is changed.
|
|
2746
|
+
*
|
|
2747
|
+
* Supports every OmniCommerce marketplace. All marketplace listings are preserved. Different listing identities in the same store block that group; the merge never delists listings.
|
|
2748
|
+
*
|
|
2749
|
+
* Discover candidates with `GET /api/v1/products?status=duplicates&duplicateType=sku&detail=full`. Refresh the saved scan through `POST /api/v1/products/duplicates/scan` when needed. Each group's `masterSelections[]` contains productId, allowed and a seller-facing note, matching the UI's enabled/disabled master choices. A sole allowed choice must be master to retain stock connections. No allowed choices means the group cannot merge. Several allowed choices require deciding which product's content, price and stock to keep; no universal best master is inferred.
|
|
2750
|
+
*
|
|
2751
|
+
* A preview can return HTTP 200 with ok=false and still provide usable groups/masterSelections. For stock_source_requires_master, choose an allowed master and preview again. Once every selected group succeeds, pass the reviewed groups' productIds (master first) and sku as expectedGroups to merge. Preview is read-only and does not publish to marketplaces.
|
|
2752
|
+
*
|
|
2753
|
+
* ### Authorization
|
|
2754
|
+
*
|
|
2755
|
+
* Requires `catalog:read`.
|
|
2756
|
+
*/
|
|
2757
|
+
post: operations["post_v1_products_duplicates_merge_preview"];
|
|
2758
|
+
delete?: never;
|
|
2759
|
+
options?: never;
|
|
2760
|
+
head?: never;
|
|
2761
|
+
patch?: never;
|
|
2762
|
+
trace?: never;
|
|
2763
|
+
};
|
|
2764
|
+
"/api/v1/products/duplicates/scan": {
|
|
2765
|
+
parameters: {
|
|
2766
|
+
query?: never;
|
|
2767
|
+
header?: never;
|
|
2768
|
+
path?: never;
|
|
2769
|
+
cookie?: never;
|
|
2770
|
+
};
|
|
2771
|
+
/**
|
|
2772
|
+
* Get Duplicate Scan
|
|
2773
|
+
* @description Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read.
|
|
2774
|
+
*
|
|
2775
|
+
* queued/running means the durable scan is still in progress; failed includes errorMessage. completed exposes computedAt and the number of duplicate products. Results are read through products.list with status=duplicates and detail=full. The shared UI scan currently examines at most the 5,000 most recently updated non-archived root products; a completed scan is not proof that a larger catalog has been fully examined.
|
|
2776
|
+
*/
|
|
2777
|
+
get: operations["get_v1_products_duplicates_scan"];
|
|
2778
|
+
put?: never;
|
|
2779
|
+
/**
|
|
2780
|
+
* Scan Duplicate Products
|
|
2781
|
+
* @description Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write.
|
|
2782
|
+
*
|
|
2783
|
+
* An already queued/running scan is reused. This only refreshes duplicate evidence; it does not merge, publish or delist products. Read completion with products.getDuplicateScan, then list status=duplicates, duplicateType=sku, detail=full and page all matching results before previewing a merge. Uses the same 5,000-candidate scan limit as the UI.
|
|
2784
|
+
*/
|
|
2785
|
+
post: operations["post_v1_products_duplicates_scan"];
|
|
2786
|
+
delete?: never;
|
|
2787
|
+
options?: never;
|
|
2788
|
+
head?: never;
|
|
2789
|
+
patch?: never;
|
|
2790
|
+
trace?: never;
|
|
2791
|
+
};
|
|
2457
2792
|
"/api/v1/products/enrich": {
|
|
2458
2793
|
parameters: {
|
|
2459
2794
|
query?: never;
|
|
@@ -2549,6 +2884,8 @@ interface paths {
|
|
|
2549
2884
|
* Preview Promotion Prices
|
|
2550
2885
|
* @description Read canonical effective prices for up to 50 products, optionally scoped to an exact marketplace, store and country. Uses the same authoring permissions as the application's preview. Does not publish or change prices.
|
|
2551
2886
|
*
|
|
2887
|
+
* ### Authorization
|
|
2888
|
+
*
|
|
2552
2889
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2553
2890
|
*/
|
|
2554
2891
|
post: operations["post_v1_promotions_by_promotionid_preview"];
|
|
@@ -2573,7 +2910,9 @@ interface paths {
|
|
|
2573
2910
|
put?: never;
|
|
2574
2911
|
/**
|
|
2575
2912
|
* Assign Products to Promotion
|
|
2576
|
-
* @description Assign qualifying products and optional per-product discounts to a promotion. Active or scheduled promotions automatically queue durable marketplace delivery; drafts retain assignments for later publication.
|
|
2913
|
+
* @description Assign qualifying products and optional per-product discounts to a promotion. Active or scheduled promotions automatically queue durable marketplace delivery; drafts retain assignments for later publication.
|
|
2914
|
+
*
|
|
2915
|
+
* Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.
|
|
2577
2916
|
*/
|
|
2578
2917
|
post: operations["post_v1_promotions_by_promotionid_products"];
|
|
2579
2918
|
/**
|
|
@@ -2621,6 +2960,8 @@ interface paths {
|
|
|
2621
2960
|
* Create Promotions with Products
|
|
2622
2961
|
* @description Create 1–50 promotions using the shared flat promotion-write contract, with qualifying products and per-product discounts. Set promotion.status=draft explicitly when preparing drafts; otherwise the canonical creation flow activates promotions and requires publish permission. Saved IDs and delivery evidence are retained on partial delivery failure; retry those IDs rather than creating duplicates.
|
|
2623
2962
|
*
|
|
2963
|
+
* ### Authorization
|
|
2964
|
+
*
|
|
2624
2965
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2625
2966
|
*/
|
|
2626
2967
|
post: operations["post_v1_promotions_batch"];
|
|
@@ -2641,6 +2982,8 @@ interface paths {
|
|
|
2641
2982
|
* Find Promotion Campaigns
|
|
2642
2983
|
* @description Search campaign options with assigned promotions in the authenticated organization.
|
|
2643
2984
|
*
|
|
2985
|
+
* ### Authorization
|
|
2986
|
+
*
|
|
2644
2987
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2645
2988
|
*/
|
|
2646
2989
|
get: operations["get_v1_promotions_campaign_options"];
|
|
@@ -2663,6 +3006,8 @@ interface paths {
|
|
|
2663
3006
|
* Get Promotion Marketplace Capabilities
|
|
2664
3007
|
* @description Report every canonical marketplace and promotion kind, including native, projected, browser-AOP and unsupported capabilities and voucher subtypes. WhatsApp's lack of promotion publishing is explicit.
|
|
2665
3008
|
*
|
|
3009
|
+
* ### Authorization
|
|
3010
|
+
*
|
|
2666
3011
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2667
3012
|
*/
|
|
2668
3013
|
get: operations["get_v1_promotions_capabilities"];
|
|
@@ -2687,6 +3032,8 @@ interface paths {
|
|
|
2687
3032
|
* Delete Promotions
|
|
2688
3033
|
* @description Delete 1–500 promotions with the canonical marketplace cleanup flow. Requires promotions.delete permission. Ordered per-target errors and partial failures remain explicit.
|
|
2689
3034
|
*
|
|
3035
|
+
* ### Authorization
|
|
3036
|
+
*
|
|
2690
3037
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2691
3038
|
*/
|
|
2692
3039
|
post: operations["post_v1_promotions_delete"];
|
|
@@ -2709,6 +3056,8 @@ interface paths {
|
|
|
2709
3056
|
* Read Promotion Delivery
|
|
2710
3057
|
* @description Read exact store/assignment delivery evidence for 1–50 promotions. A saved or active promotion is not proof that marketplace delivery succeeded. Check every returned deliveryStatuses entry, including explicit unsupported or unavailable states.
|
|
2711
3058
|
*
|
|
3059
|
+
* ### Authorization
|
|
3060
|
+
*
|
|
2712
3061
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2713
3062
|
*/
|
|
2714
3063
|
post: operations["post_v1_promotions_delivery"];
|
|
@@ -2731,6 +3080,8 @@ interface paths {
|
|
|
2731
3080
|
* Find Eligible Promotion Products
|
|
2732
3081
|
* @description Search or check up to 50 product IDs using canonical promotion assignment eligibility for the selected exact stores. Draft/unlisted products can be eligible for planning; live marketplace availability is rechecked during delivery.
|
|
2733
3082
|
*
|
|
3083
|
+
* ### Authorization
|
|
3084
|
+
*
|
|
2734
3085
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2735
3086
|
*/
|
|
2736
3087
|
post: operations["post_v1_promotions_product_options"];
|
|
@@ -2753,6 +3104,8 @@ interface paths {
|
|
|
2753
3104
|
* Set Promotion Statuses
|
|
2754
3105
|
* @description Activate/publish, pause or archive 1–500 promotions. Activation requires promotions.publish permission. Uses the canonical status transition and durable marketplace sync/teardown flow; verify delivery separately.
|
|
2755
3106
|
*
|
|
3107
|
+
* ### Authorization
|
|
3108
|
+
*
|
|
2756
3109
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2757
3110
|
*/
|
|
2758
3111
|
post: operations["post_v1_promotions_status"];
|
|
@@ -2775,6 +3128,8 @@ interface paths {
|
|
|
2775
3128
|
* Validate Promotions
|
|
2776
3129
|
* @description Read-only validation of 1–50 saved promotion IDs or proposed definitions and product IDs. Reports marketplace terms, connected-store targeting and qualifying-product issues per target. Publishing still revalidates current state and can encounter marketplace API rejections.
|
|
2777
3130
|
*
|
|
3131
|
+
* ### Authorization
|
|
3132
|
+
*
|
|
2778
3133
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2779
3134
|
*/
|
|
2780
3135
|
post: operations["post_v1_promotions_validate"];
|
|
@@ -6214,12 +6569,11 @@ interface operations {
|
|
|
6214
6569
|
content: {
|
|
6215
6570
|
"application/json":
|
|
6216
6571
|
| {
|
|
6572
|
+
/** @enum {string} */
|
|
6573
|
+
environment?: "live" | "sandbox";
|
|
6217
6574
|
offers: {
|
|
6218
|
-
/**
|
|
6219
|
-
|
|
6220
|
-
* @enum {string}
|
|
6221
|
-
*/
|
|
6222
|
-
paymentRail?: "acp_stripe" | "x402";
|
|
6575
|
+
/** @enum {string} */
|
|
6576
|
+
paymentRail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
6223
6577
|
items: {
|
|
6224
6578
|
productId: string;
|
|
6225
6579
|
quantity: number;
|
|
@@ -6349,6 +6703,263 @@ interface operations {
|
|
|
6349
6703
|
};
|
|
6350
6704
|
};
|
|
6351
6705
|
};
|
|
6706
|
+
post_v1_agents_by_agentid_messages: {
|
|
6707
|
+
parameters: {
|
|
6708
|
+
query?: never;
|
|
6709
|
+
header?: never;
|
|
6710
|
+
path: {
|
|
6711
|
+
agentId: string;
|
|
6712
|
+
};
|
|
6713
|
+
cookie?: never;
|
|
6714
|
+
};
|
|
6715
|
+
requestBody: {
|
|
6716
|
+
content: {
|
|
6717
|
+
/**
|
|
6718
|
+
* @example {
|
|
6719
|
+
* "message": "Summarize today's orders.",
|
|
6720
|
+
* "clientThreadKey": "daily-report",
|
|
6721
|
+
* "wait": true
|
|
6722
|
+
* }
|
|
6723
|
+
*/
|
|
6724
|
+
"application/json": {
|
|
6725
|
+
organizationId?: string;
|
|
6726
|
+
message?: string;
|
|
6727
|
+
/** @default default */
|
|
6728
|
+
clientThreadKey?: string;
|
|
6729
|
+
/** @default false */
|
|
6730
|
+
wait?: boolean;
|
|
6731
|
+
decisions?: {
|
|
6732
|
+
/** @enum {string} */
|
|
6733
|
+
action: "approve" | "reject";
|
|
6734
|
+
reason?: string;
|
|
6735
|
+
}[];
|
|
6736
|
+
};
|
|
6737
|
+
};
|
|
6738
|
+
};
|
|
6739
|
+
responses: {
|
|
6740
|
+
/** @description The agent's verbatim final reply or pending approvals. */
|
|
6741
|
+
200: {
|
|
6742
|
+
headers: {
|
|
6743
|
+
[name: string]: unknown;
|
|
6744
|
+
};
|
|
6745
|
+
content: {
|
|
6746
|
+
"application/json": {
|
|
6747
|
+
agentId: string;
|
|
6748
|
+
threadKey: string;
|
|
6749
|
+
runId: string;
|
|
6750
|
+
threadId: string;
|
|
6751
|
+
/** @enum {string} */
|
|
6752
|
+
status:
|
|
6753
|
+
| "accepted"
|
|
6754
|
+
| "running"
|
|
6755
|
+
| "completed"
|
|
6756
|
+
| "awaiting_approval"
|
|
6757
|
+
| "failed";
|
|
6758
|
+
reply: string | null;
|
|
6759
|
+
approvals:
|
|
6760
|
+
| {
|
|
6761
|
+
interrupt_instance_id: string;
|
|
6762
|
+
tool_name: string | null;
|
|
6763
|
+
tool_args: unknown;
|
|
6764
|
+
message: string;
|
|
6765
|
+
}[]
|
|
6766
|
+
| null;
|
|
6767
|
+
error: string | null;
|
|
6768
|
+
};
|
|
6769
|
+
};
|
|
6770
|
+
};
|
|
6771
|
+
/** @description Accepted for durable execution. */
|
|
6772
|
+
202: {
|
|
6773
|
+
headers: {
|
|
6774
|
+
/** @description Caller-scoped status URL for this agent's run. */
|
|
6775
|
+
Location?: string;
|
|
6776
|
+
/** @description Seconds to wait before reading an open run again. */
|
|
6777
|
+
"Retry-After"?: number;
|
|
6778
|
+
[name: string]: unknown;
|
|
6779
|
+
};
|
|
6780
|
+
content: {
|
|
6781
|
+
"application/json": {
|
|
6782
|
+
agentId: string;
|
|
6783
|
+
threadKey: string;
|
|
6784
|
+
runId: string;
|
|
6785
|
+
threadId: string;
|
|
6786
|
+
/** @enum {string} */
|
|
6787
|
+
status:
|
|
6788
|
+
| "accepted"
|
|
6789
|
+
| "running"
|
|
6790
|
+
| "completed"
|
|
6791
|
+
| "awaiting_approval"
|
|
6792
|
+
| "failed";
|
|
6793
|
+
reply: string | null;
|
|
6794
|
+
approvals:
|
|
6795
|
+
| {
|
|
6796
|
+
interrupt_instance_id: string;
|
|
6797
|
+
tool_name: string | null;
|
|
6798
|
+
tool_args: unknown;
|
|
6799
|
+
message: string;
|
|
6800
|
+
}[]
|
|
6801
|
+
| null;
|
|
6802
|
+
error: string | null;
|
|
6803
|
+
};
|
|
6804
|
+
};
|
|
6805
|
+
};
|
|
6806
|
+
/** @description Invalid message, decisions or organization scope. */
|
|
6807
|
+
400: {
|
|
6808
|
+
headers: {
|
|
6809
|
+
[name: string]: unknown;
|
|
6810
|
+
};
|
|
6811
|
+
content?: never;
|
|
6812
|
+
};
|
|
6813
|
+
/** @description A valid Bearer API key or sign-in session is required. */
|
|
6814
|
+
401: {
|
|
6815
|
+
headers: {
|
|
6816
|
+
[name: string]: unknown;
|
|
6817
|
+
};
|
|
6818
|
+
content?: never;
|
|
6819
|
+
};
|
|
6820
|
+
/** @description Insufficient AI credits. */
|
|
6821
|
+
402: {
|
|
6822
|
+
headers: {
|
|
6823
|
+
[name: string]: unknown;
|
|
6824
|
+
};
|
|
6825
|
+
content?: never;
|
|
6826
|
+
};
|
|
6827
|
+
/** @description Missing agents:invoke scope, inactive agent, revoked key, or the credential owner lacks organization membership or agent sharing access. */
|
|
6828
|
+
403: {
|
|
6829
|
+
headers: {
|
|
6830
|
+
[name: string]: unknown;
|
|
6831
|
+
};
|
|
6832
|
+
content?: never;
|
|
6833
|
+
};
|
|
6834
|
+
/** @description The run does not belong to this agent and caller. */
|
|
6835
|
+
404: {
|
|
6836
|
+
headers: {
|
|
6837
|
+
[name: string]: unknown;
|
|
6838
|
+
};
|
|
6839
|
+
content?: never;
|
|
6840
|
+
};
|
|
6841
|
+
/** @description This conversation already has an active run, or there is no matching pending approval. */
|
|
6842
|
+
409: {
|
|
6843
|
+
headers: {
|
|
6844
|
+
[name: string]: unknown;
|
|
6845
|
+
};
|
|
6846
|
+
content?: never;
|
|
6847
|
+
};
|
|
6848
|
+
/** @description The agent run failed. */
|
|
6849
|
+
500: {
|
|
6850
|
+
headers: {
|
|
6851
|
+
[name: string]: unknown;
|
|
6852
|
+
};
|
|
6853
|
+
content?: never;
|
|
6854
|
+
};
|
|
6855
|
+
/** @description The waiting request timed out. The error includes the stored run ID. */
|
|
6856
|
+
504: {
|
|
6857
|
+
headers: {
|
|
6858
|
+
[name: string]: unknown;
|
|
6859
|
+
};
|
|
6860
|
+
content?: never;
|
|
6861
|
+
};
|
|
6862
|
+
};
|
|
6863
|
+
};
|
|
6864
|
+
get_v1_agents_by_agentid_runs_by_runid: {
|
|
6865
|
+
parameters: {
|
|
6866
|
+
query?: {
|
|
6867
|
+
/** @description Required for sign-in sessions. API keys already identify their organization. */
|
|
6868
|
+
organizationId?: string;
|
|
6869
|
+
};
|
|
6870
|
+
header?: never;
|
|
6871
|
+
path: {
|
|
6872
|
+
agentId: string;
|
|
6873
|
+
runId: string;
|
|
6874
|
+
};
|
|
6875
|
+
cookie?: never;
|
|
6876
|
+
};
|
|
6877
|
+
requestBody?: never;
|
|
6878
|
+
responses: {
|
|
6879
|
+
/** @description Current run status, reply and approvals. */
|
|
6880
|
+
200: {
|
|
6881
|
+
headers: {
|
|
6882
|
+
/** @description Seconds to wait before reading an open run again. */
|
|
6883
|
+
"Retry-After"?: number;
|
|
6884
|
+
[name: string]: unknown;
|
|
6885
|
+
};
|
|
6886
|
+
content: {
|
|
6887
|
+
"application/json": {
|
|
6888
|
+
agentId: string;
|
|
6889
|
+
threadKey: string;
|
|
6890
|
+
runId: string;
|
|
6891
|
+
threadId: string;
|
|
6892
|
+
/** @enum {string} */
|
|
6893
|
+
status:
|
|
6894
|
+
| "accepted"
|
|
6895
|
+
| "running"
|
|
6896
|
+
| "completed"
|
|
6897
|
+
| "awaiting_approval"
|
|
6898
|
+
| "failed";
|
|
6899
|
+
reply: string | null;
|
|
6900
|
+
approvals:
|
|
6901
|
+
| {
|
|
6902
|
+
interrupt_instance_id: string;
|
|
6903
|
+
tool_name: string | null;
|
|
6904
|
+
tool_args: unknown;
|
|
6905
|
+
message: string;
|
|
6906
|
+
}[]
|
|
6907
|
+
| null;
|
|
6908
|
+
error: string | null;
|
|
6909
|
+
};
|
|
6910
|
+
};
|
|
6911
|
+
};
|
|
6912
|
+
/** @description Invalid message, decisions or organization scope. */
|
|
6913
|
+
400: {
|
|
6914
|
+
headers: {
|
|
6915
|
+
[name: string]: unknown;
|
|
6916
|
+
};
|
|
6917
|
+
content?: never;
|
|
6918
|
+
};
|
|
6919
|
+
/** @description A valid Bearer API key or sign-in session is required. */
|
|
6920
|
+
401: {
|
|
6921
|
+
headers: {
|
|
6922
|
+
[name: string]: unknown;
|
|
6923
|
+
};
|
|
6924
|
+
content?: never;
|
|
6925
|
+
};
|
|
6926
|
+
/** @description Insufficient AI credits. */
|
|
6927
|
+
402: {
|
|
6928
|
+
headers: {
|
|
6929
|
+
[name: string]: unknown;
|
|
6930
|
+
};
|
|
6931
|
+
content?: never;
|
|
6932
|
+
};
|
|
6933
|
+
/** @description Missing agents:invoke scope, inactive agent, revoked key, or the credential owner lacks organization membership or agent sharing access. */
|
|
6934
|
+
403: {
|
|
6935
|
+
headers: {
|
|
6936
|
+
[name: string]: unknown;
|
|
6937
|
+
};
|
|
6938
|
+
content?: never;
|
|
6939
|
+
};
|
|
6940
|
+
/** @description The run does not belong to this agent and caller. */
|
|
6941
|
+
404: {
|
|
6942
|
+
headers: {
|
|
6943
|
+
[name: string]: unknown;
|
|
6944
|
+
};
|
|
6945
|
+
content?: never;
|
|
6946
|
+
};
|
|
6947
|
+
/** @description This conversation already has an active run, or there is no matching pending approval. */
|
|
6948
|
+
409: {
|
|
6949
|
+
headers: {
|
|
6950
|
+
[name: string]: unknown;
|
|
6951
|
+
};
|
|
6952
|
+
content?: never;
|
|
6953
|
+
};
|
|
6954
|
+
/** @description The agent run failed. */
|
|
6955
|
+
500: {
|
|
6956
|
+
headers: {
|
|
6957
|
+
[name: string]: unknown;
|
|
6958
|
+
};
|
|
6959
|
+
content?: never;
|
|
6960
|
+
};
|
|
6961
|
+
};
|
|
6962
|
+
};
|
|
6352
6963
|
post_v1_agents_general_invoke: {
|
|
6353
6964
|
parameters: {
|
|
6354
6965
|
query?: never;
|
|
@@ -14111,6 +14722,68 @@ interface operations {
|
|
|
14111
14722
|
};
|
|
14112
14723
|
};
|
|
14113
14724
|
};
|
|
14725
|
+
get_v1_catalog_products: {
|
|
14726
|
+
parameters: {
|
|
14727
|
+
query: {
|
|
14728
|
+
/** @description One to ten comma-separated product IDs. Trimmed and deduplicated in requested order. Singular productId is rejected. */
|
|
14729
|
+
productIds: string[];
|
|
14730
|
+
};
|
|
14731
|
+
header?: never;
|
|
14732
|
+
path?: never;
|
|
14733
|
+
cookie?: never;
|
|
14734
|
+
};
|
|
14735
|
+
requestBody?: never;
|
|
14736
|
+
responses: {
|
|
14737
|
+
/** @description Success */
|
|
14738
|
+
200: {
|
|
14739
|
+
headers: {
|
|
14740
|
+
[name: string]: unknown;
|
|
14741
|
+
};
|
|
14742
|
+
content: {
|
|
14743
|
+
"application/json": {
|
|
14744
|
+
ok?: boolean;
|
|
14745
|
+
/** @default public_products_v1 */
|
|
14746
|
+
apiVersion: string;
|
|
14747
|
+
};
|
|
14748
|
+
};
|
|
14749
|
+
};
|
|
14750
|
+
/** @description Bad Request */
|
|
14751
|
+
400: {
|
|
14752
|
+
headers: {
|
|
14753
|
+
[name: string]: unknown;
|
|
14754
|
+
};
|
|
14755
|
+
content?: never;
|
|
14756
|
+
};
|
|
14757
|
+
/** @description Unauthorized */
|
|
14758
|
+
401: {
|
|
14759
|
+
headers: {
|
|
14760
|
+
[name: string]: unknown;
|
|
14761
|
+
};
|
|
14762
|
+
content?: never;
|
|
14763
|
+
};
|
|
14764
|
+
/** @description Insufficient Credits */
|
|
14765
|
+
402: {
|
|
14766
|
+
headers: {
|
|
14767
|
+
[name: string]: unknown;
|
|
14768
|
+
};
|
|
14769
|
+
content?: never;
|
|
14770
|
+
};
|
|
14771
|
+
/** @description Forbidden */
|
|
14772
|
+
403: {
|
|
14773
|
+
headers: {
|
|
14774
|
+
[name: string]: unknown;
|
|
14775
|
+
};
|
|
14776
|
+
content?: never;
|
|
14777
|
+
};
|
|
14778
|
+
/** @description Internal Server Error */
|
|
14779
|
+
500: {
|
|
14780
|
+
headers: {
|
|
14781
|
+
[name: string]: unknown;
|
|
14782
|
+
};
|
|
14783
|
+
content?: never;
|
|
14784
|
+
};
|
|
14785
|
+
};
|
|
14786
|
+
};
|
|
14114
14787
|
post_v1_catalog_query: {
|
|
14115
14788
|
parameters: {
|
|
14116
14789
|
query?: never;
|
|
@@ -14299,13 +14972,19 @@ interface operations {
|
|
|
14299
14972
|
* }
|
|
14300
14973
|
*/
|
|
14301
14974
|
"application/json": {
|
|
14975
|
+
/**
|
|
14976
|
+
* @description Immutable offer environment. Sandbox simulates payments and keeps sessions/orders in separate storage without live inventory, fulfilment, messages or charges. Both modes may run concurrently. Sandbox paymentProof must be {sandboxOutcome: 'succeeded' | 'declined'} with exact approval.
|
|
14977
|
+
* @default live
|
|
14978
|
+
* @enum {string}
|
|
14979
|
+
*/
|
|
14980
|
+
environment?: "live" | "sandbox";
|
|
14302
14981
|
/** @description Optional for OAuth clients bound to one organization; required when the caller can access multiple organizations. */
|
|
14303
14982
|
organizationId?: string;
|
|
14304
14983
|
/**
|
|
14305
|
-
* @
|
|
14984
|
+
* @description When omitted, use the merchant's configured payment destination: Stripe, Qashier, HitPay, then x402.
|
|
14306
14985
|
* @enum {string}
|
|
14307
14986
|
*/
|
|
14308
|
-
paymentRail?: "acp_stripe" | "x402";
|
|
14987
|
+
paymentRail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14309
14988
|
items: {
|
|
14310
14989
|
/** @description OmniCommerce product UUID. */
|
|
14311
14990
|
productId: string;
|
|
@@ -14360,6 +15039,11 @@ interface operations {
|
|
|
14360
15039
|
/** @default agentic_checkout_v1 */
|
|
14361
15040
|
apiVersion: string;
|
|
14362
15041
|
session?: {
|
|
15042
|
+
/**
|
|
15043
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15044
|
+
* @enum {string}
|
|
15045
|
+
*/
|
|
15046
|
+
environment?: "live" | "sandbox";
|
|
14363
15047
|
id: string;
|
|
14364
15048
|
organizationId: string;
|
|
14365
15049
|
/** @enum {string} */
|
|
@@ -14370,7 +15054,7 @@ interface operations {
|
|
|
14370
15054
|
| "cancelled"
|
|
14371
15055
|
| "expired";
|
|
14372
15056
|
/** @enum {string} */
|
|
14373
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15057
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14374
15058
|
currency: string;
|
|
14375
15059
|
subtotalAmount?: number;
|
|
14376
15060
|
shippingAmount?: number;
|
|
@@ -14474,6 +15158,11 @@ interface operations {
|
|
|
14474
15158
|
/** @default agentic_checkout_v1 */
|
|
14475
15159
|
apiVersion: string;
|
|
14476
15160
|
session?: {
|
|
15161
|
+
/**
|
|
15162
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15163
|
+
* @enum {string}
|
|
15164
|
+
*/
|
|
15165
|
+
environment?: "live" | "sandbox";
|
|
14477
15166
|
id: string;
|
|
14478
15167
|
organizationId: string;
|
|
14479
15168
|
/** @enum {string} */
|
|
@@ -14484,7 +15173,7 @@ interface operations {
|
|
|
14484
15173
|
| "cancelled"
|
|
14485
15174
|
| "expired";
|
|
14486
15175
|
/** @enum {string} */
|
|
14487
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15176
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14488
15177
|
currency: string;
|
|
14489
15178
|
subtotalAmount?: number;
|
|
14490
15179
|
shippingAmount?: number;
|
|
@@ -14572,7 +15261,7 @@ interface operations {
|
|
|
14572
15261
|
content: {
|
|
14573
15262
|
"application/json": {
|
|
14574
15263
|
/** @enum {string} */
|
|
14575
|
-
paymentRail?: "acp_stripe" | "x402";
|
|
15264
|
+
paymentRail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14576
15265
|
items?: {
|
|
14577
15266
|
/** @description OmniCommerce product UUID. */
|
|
14578
15267
|
productId: string;
|
|
@@ -14627,6 +15316,11 @@ interface operations {
|
|
|
14627
15316
|
/** @default agentic_checkout_v1 */
|
|
14628
15317
|
apiVersion: string;
|
|
14629
15318
|
session?: {
|
|
15319
|
+
/**
|
|
15320
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15321
|
+
* @enum {string}
|
|
15322
|
+
*/
|
|
15323
|
+
environment?: "live" | "sandbox";
|
|
14630
15324
|
id: string;
|
|
14631
15325
|
organizationId: string;
|
|
14632
15326
|
/** @enum {string} */
|
|
@@ -14637,7 +15331,7 @@ interface operations {
|
|
|
14637
15331
|
| "cancelled"
|
|
14638
15332
|
| "expired";
|
|
14639
15333
|
/** @enum {string} */
|
|
14640
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15334
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14641
15335
|
currency: string;
|
|
14642
15336
|
subtotalAmount?: number;
|
|
14643
15337
|
shippingAmount?: number;
|
|
@@ -14739,7 +15433,7 @@ interface operations {
|
|
|
14739
15433
|
content: {
|
|
14740
15434
|
"application/json": {
|
|
14741
15435
|
/** @enum {string} */
|
|
14742
|
-
paymentRail?: "acp_stripe" | "x402";
|
|
15436
|
+
paymentRail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14743
15437
|
items?: {
|
|
14744
15438
|
/** @description OmniCommerce product UUID. */
|
|
14745
15439
|
productId: string;
|
|
@@ -14794,6 +15488,11 @@ interface operations {
|
|
|
14794
15488
|
/** @default agentic_checkout_v1 */
|
|
14795
15489
|
apiVersion: string;
|
|
14796
15490
|
session?: {
|
|
15491
|
+
/**
|
|
15492
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15493
|
+
* @enum {string}
|
|
15494
|
+
*/
|
|
15495
|
+
environment?: "live" | "sandbox";
|
|
14797
15496
|
id: string;
|
|
14798
15497
|
organizationId: string;
|
|
14799
15498
|
/** @enum {string} */
|
|
@@ -14804,7 +15503,7 @@ interface operations {
|
|
|
14804
15503
|
| "cancelled"
|
|
14805
15504
|
| "expired";
|
|
14806
15505
|
/** @enum {string} */
|
|
14807
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15506
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14808
15507
|
currency: string;
|
|
14809
15508
|
subtotalAmount?: number;
|
|
14810
15509
|
shippingAmount?: number;
|
|
@@ -14915,6 +15614,11 @@ interface operations {
|
|
|
14915
15614
|
/** @default agentic_checkout_v1 */
|
|
14916
15615
|
apiVersion: string;
|
|
14917
15616
|
session?: {
|
|
15617
|
+
/**
|
|
15618
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15619
|
+
* @enum {string}
|
|
15620
|
+
*/
|
|
15621
|
+
environment?: "live" | "sandbox";
|
|
14918
15622
|
id: string;
|
|
14919
15623
|
organizationId: string;
|
|
14920
15624
|
/** @enum {string} */
|
|
@@ -14925,7 +15629,7 @@ interface operations {
|
|
|
14925
15629
|
| "cancelled"
|
|
14926
15630
|
| "expired";
|
|
14927
15631
|
/** @enum {string} */
|
|
14928
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15632
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14929
15633
|
currency: string;
|
|
14930
15634
|
subtotalAmount?: number;
|
|
14931
15635
|
shippingAmount?: number;
|
|
@@ -15047,6 +15751,11 @@ interface operations {
|
|
|
15047
15751
|
/** @default agentic_checkout_v1 */
|
|
15048
15752
|
apiVersion: string;
|
|
15049
15753
|
session?: {
|
|
15754
|
+
/**
|
|
15755
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15756
|
+
* @enum {string}
|
|
15757
|
+
*/
|
|
15758
|
+
environment?: "live" | "sandbox";
|
|
15050
15759
|
id: string;
|
|
15051
15760
|
organizationId: string;
|
|
15052
15761
|
/** @enum {string} */
|
|
@@ -15057,7 +15766,7 @@ interface operations {
|
|
|
15057
15766
|
| "cancelled"
|
|
15058
15767
|
| "expired";
|
|
15059
15768
|
/** @enum {string} */
|
|
15060
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15769
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
15061
15770
|
currency: string;
|
|
15062
15771
|
subtotalAmount?: number;
|
|
15063
15772
|
shippingAmount?: number;
|
|
@@ -15133,6 +15842,11 @@ interface operations {
|
|
|
15133
15842
|
/** @default agentic_checkout_v1 */
|
|
15134
15843
|
apiVersion: string;
|
|
15135
15844
|
session?: {
|
|
15845
|
+
/**
|
|
15846
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15847
|
+
* @enum {string}
|
|
15848
|
+
*/
|
|
15849
|
+
environment?: "live" | "sandbox";
|
|
15136
15850
|
id: string;
|
|
15137
15851
|
organizationId: string;
|
|
15138
15852
|
/** @enum {string} */
|
|
@@ -15143,7 +15857,7 @@ interface operations {
|
|
|
15143
15857
|
| "cancelled"
|
|
15144
15858
|
| "expired";
|
|
15145
15859
|
/** @enum {string} */
|
|
15146
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15860
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
15147
15861
|
currency: string;
|
|
15148
15862
|
subtotalAmount?: number;
|
|
15149
15863
|
shippingAmount?: number;
|
|
@@ -15224,203 +15938,68 @@ interface operations {
|
|
|
15224
15938
|
};
|
|
15225
15939
|
};
|
|
15226
15940
|
};
|
|
15227
|
-
|
|
15941
|
+
post_v1_checkout_sessions_by_sessionid_pay: {
|
|
15228
15942
|
parameters: {
|
|
15229
15943
|
query?: never;
|
|
15230
15944
|
header?: never;
|
|
15231
|
-
path
|
|
15945
|
+
path: {
|
|
15946
|
+
sessionId: string;
|
|
15947
|
+
};
|
|
15232
15948
|
cookie?: never;
|
|
15233
15949
|
};
|
|
15234
15950
|
requestBody: {
|
|
15235
15951
|
content: {
|
|
15236
15952
|
"application/json": {
|
|
15237
|
-
|
|
15238
|
-
|
|
15239
|
-
|
|
15240
|
-
|
|
15241
|
-
|
|
15242
|
-
| "price_event"
|
|
15243
|
-
| "price_book_sync"
|
|
15244
|
-
| "publish_job"
|
|
15245
|
-
| "delist_batch"
|
|
15246
|
-
| "store_switch"
|
|
15247
|
-
| "omni_delete"
|
|
15248
|
-
| "zalora_import"
|
|
15249
|
-
| "enrichment_batch"
|
|
15250
|
-
| "order_action"
|
|
15251
|
-
| "return_action";
|
|
15252
|
-
id: string;
|
|
15253
|
-
platform?: string;
|
|
15254
|
-
storeId?: string;
|
|
15255
|
-
productId?: string;
|
|
15256
|
-
productIds?: string[];
|
|
15257
|
-
externalIds?: string[];
|
|
15258
|
-
}[];
|
|
15259
|
-
/** @description Wait budget in milliseconds; 0 is one status read. Maximum 120000. */
|
|
15260
|
-
timeoutMs?: number;
|
|
15261
|
-
organizationId?: string;
|
|
15953
|
+
approval: {
|
|
15954
|
+
cartVersion: number;
|
|
15955
|
+
totalAmount: number;
|
|
15956
|
+
currency: string;
|
|
15957
|
+
};
|
|
15262
15958
|
};
|
|
15263
15959
|
};
|
|
15264
15960
|
};
|
|
15265
15961
|
responses: {
|
|
15266
|
-
/** @description
|
|
15962
|
+
/** @description Hosted checkout URL. */
|
|
15267
15963
|
200: {
|
|
15268
15964
|
headers: {
|
|
15269
15965
|
[name: string]: unknown;
|
|
15270
15966
|
};
|
|
15271
15967
|
content: {
|
|
15272
15968
|
"application/json": {
|
|
15273
|
-
|
|
15274
|
-
|
|
15275
|
-
|
|
15276
|
-
|
|
15277
|
-
|
|
15278
|
-
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
|
|
15282
|
-
failedCount: number;
|
|
15283
|
-
productIds?: string[];
|
|
15284
|
-
orderIds?: string[];
|
|
15285
|
-
returnIds?: string[];
|
|
15286
|
-
correlations: {
|
|
15287
|
-
/** @enum {string} */
|
|
15288
|
-
kind:
|
|
15289
|
-
| "inventory_job"
|
|
15290
|
-
| "price_event"
|
|
15291
|
-
| "price_book_sync"
|
|
15292
|
-
| "publish_job"
|
|
15293
|
-
| "delist_batch"
|
|
15294
|
-
| "store_switch"
|
|
15295
|
-
| "omni_delete"
|
|
15296
|
-
| "zalora_import"
|
|
15297
|
-
| "enrichment_batch"
|
|
15298
|
-
| "order_action"
|
|
15299
|
-
| "return_action";
|
|
15300
|
-
id: string;
|
|
15301
|
-
platform?: string;
|
|
15302
|
-
storeId?: string;
|
|
15303
|
-
productId?: string;
|
|
15304
|
-
productIds?: string[];
|
|
15305
|
-
externalIds?: string[];
|
|
15306
|
-
}[];
|
|
15307
|
-
message: string;
|
|
15308
|
-
allTerminal: boolean;
|
|
15309
|
-
timedOut: boolean;
|
|
15310
|
-
jobs: {
|
|
15311
|
-
/** @enum {string} */
|
|
15312
|
-
kind:
|
|
15313
|
-
| "inventory_job"
|
|
15314
|
-
| "price_event"
|
|
15315
|
-
| "price_book_sync"
|
|
15316
|
-
| "publish_job"
|
|
15317
|
-
| "delist_batch"
|
|
15318
|
-
| "store_switch"
|
|
15319
|
-
| "omni_delete"
|
|
15320
|
-
| "zalora_import"
|
|
15321
|
-
| "enrichment_batch"
|
|
15322
|
-
| "order_action"
|
|
15323
|
-
| "return_action";
|
|
15324
|
-
id: string;
|
|
15325
|
-
/** @enum {string} */
|
|
15326
|
-
status:
|
|
15327
|
-
| "pending"
|
|
15328
|
-
| "running"
|
|
15329
|
-
| "success"
|
|
15330
|
-
| "error"
|
|
15331
|
-
| "superseded"
|
|
15332
|
-
| "skipped"
|
|
15333
|
-
| "unknown";
|
|
15334
|
-
terminal: boolean;
|
|
15335
|
-
orderId?: string;
|
|
15336
|
-
returnId?: string;
|
|
15337
|
-
productId?: string;
|
|
15338
|
-
productIds?: string[];
|
|
15339
|
-
platform?: string;
|
|
15340
|
-
storeId?: string;
|
|
15341
|
-
action?: string;
|
|
15342
|
-
sourceStatus?: string;
|
|
15343
|
-
labels?: {
|
|
15344
|
-
/** Format: uri */
|
|
15345
|
-
url: string;
|
|
15346
|
-
name: string | null;
|
|
15347
|
-
mimeType: string | null;
|
|
15348
|
-
}[];
|
|
15349
|
-
error?: string;
|
|
15350
|
-
message?: string;
|
|
15351
|
-
updatedAt?: string;
|
|
15352
|
-
externalIds?: string[];
|
|
15353
|
-
missingExternalIds?: string[];
|
|
15354
|
-
evidence?: {
|
|
15355
|
-
accepted?: boolean;
|
|
15356
|
-
verified?: boolean;
|
|
15357
|
-
statusBefore?: string | null;
|
|
15358
|
-
statusAfter?: string | null;
|
|
15359
|
-
};
|
|
15360
|
-
verification?: {
|
|
15361
|
-
ok: boolean;
|
|
15362
|
-
verified: boolean;
|
|
15363
|
-
skipped: boolean;
|
|
15364
|
-
reason?: string;
|
|
15365
|
-
expectedQuantity?: number;
|
|
15366
|
-
actualQuantity?: number | null;
|
|
15367
|
-
evidence?: string;
|
|
15368
|
-
verifiedAt?: string;
|
|
15369
|
-
};
|
|
15370
|
-
operations?: {
|
|
15371
|
-
delist: {
|
|
15372
|
-
status: string;
|
|
15373
|
-
result: {
|
|
15374
|
-
[key: string]: unknown;
|
|
15375
|
-
} | null;
|
|
15376
|
-
};
|
|
15377
|
-
publish: {
|
|
15378
|
-
status: string;
|
|
15379
|
-
result: {
|
|
15380
|
-
[key: string]: unknown;
|
|
15381
|
-
} | null;
|
|
15382
|
-
};
|
|
15383
|
-
};
|
|
15384
|
-
}[];
|
|
15385
|
-
pendingCount: number;
|
|
15386
|
-
};
|
|
15387
|
-
links: {
|
|
15388
|
-
[key: string]: string;
|
|
15389
|
-
};
|
|
15390
|
-
warnings: string[];
|
|
15391
|
-
recommendations: string[];
|
|
15969
|
+
/** @constant */
|
|
15970
|
+
success: true;
|
|
15971
|
+
sessionId: string;
|
|
15972
|
+
/** Format: uri */
|
|
15973
|
+
checkoutUrl: string;
|
|
15974
|
+
/** Format: date-time */
|
|
15975
|
+
paymentExpiresAt: string;
|
|
15976
|
+
} & {
|
|
15977
|
+
[key: string]: unknown;
|
|
15392
15978
|
};
|
|
15393
15979
|
};
|
|
15394
15980
|
};
|
|
15395
|
-
/** @description Invalid
|
|
15981
|
+
/** @description Invalid approval, unsupported payment currency or missing delivery details. */
|
|
15396
15982
|
400: {
|
|
15397
15983
|
headers: {
|
|
15398
15984
|
[name: string]: unknown;
|
|
15399
15985
|
};
|
|
15400
15986
|
content?: never;
|
|
15401
15987
|
};
|
|
15402
|
-
/** @description
|
|
15403
|
-
401: {
|
|
15404
|
-
headers: {
|
|
15405
|
-
[name: string]: unknown;
|
|
15406
|
-
};
|
|
15407
|
-
content?: never;
|
|
15408
|
-
};
|
|
15409
|
-
/** @description Missing scope, organization mismatch, or a target outside the caller's assigned stores and markets. */
|
|
15988
|
+
/** @description Checkout disabled or organization access denied. */
|
|
15410
15989
|
403: {
|
|
15411
15990
|
headers: {
|
|
15412
15991
|
[name: string]: unknown;
|
|
15413
15992
|
};
|
|
15414
15993
|
content?: never;
|
|
15415
15994
|
};
|
|
15416
|
-
/** @description
|
|
15417
|
-
|
|
15995
|
+
/** @description Offer changed, payment not configured or offer no longer payable. */
|
|
15996
|
+
409: {
|
|
15418
15997
|
headers: {
|
|
15419
15998
|
[name: string]: unknown;
|
|
15420
15999
|
};
|
|
15421
16000
|
content?: never;
|
|
15422
16001
|
};
|
|
15423
|
-
/** @description
|
|
16002
|
+
/** @description Gateway unavailable; retry the same offer. */
|
|
15424
16003
|
503: {
|
|
15425
16004
|
headers: {
|
|
15426
16005
|
[name: string]: unknown;
|
|
@@ -15429,7 +16008,7 @@ interface operations {
|
|
|
15429
16008
|
};
|
|
15430
16009
|
};
|
|
15431
16010
|
};
|
|
15432
|
-
|
|
16011
|
+
post_v1_commerce_jobs_await: {
|
|
15433
16012
|
parameters: {
|
|
15434
16013
|
query?: never;
|
|
15435
16014
|
header?: never;
|
|
@@ -15439,11 +16018,21 @@ interface operations {
|
|
|
15439
16018
|
requestBody: {
|
|
15440
16019
|
content: {
|
|
15441
16020
|
"application/json": {
|
|
15442
|
-
/** @description
|
|
15443
|
-
correlations
|
|
16021
|
+
/** @description Every returned commerce job correlation, including orders and returns. Maximum 50000; trimmed and deduplicated in first-requested order. */
|
|
16022
|
+
correlations: {
|
|
15444
16023
|
/** @enum {string} */
|
|
15445
|
-
kind:
|
|
15446
|
-
|
|
16024
|
+
kind:
|
|
16025
|
+
| "inventory_job"
|
|
16026
|
+
| "price_event"
|
|
16027
|
+
| "price_book_sync"
|
|
16028
|
+
| "publish_job"
|
|
16029
|
+
| "delist_batch"
|
|
16030
|
+
| "store_switch"
|
|
16031
|
+
| "omni_delete"
|
|
16032
|
+
| "zalora_import"
|
|
16033
|
+
| "enrichment_batch"
|
|
16034
|
+
| "order_action"
|
|
16035
|
+
| "return_action";
|
|
15447
16036
|
id: string;
|
|
15448
16037
|
platform?: string;
|
|
15449
16038
|
storeId?: string;
|
|
@@ -15451,46 +16040,241 @@ interface operations {
|
|
|
15451
16040
|
productIds?: string[];
|
|
15452
16041
|
externalIds?: string[];
|
|
15453
16042
|
}[];
|
|
15454
|
-
/** @description
|
|
15455
|
-
|
|
15456
|
-
|
|
15457
|
-
|
|
15458
|
-
|
|
15459
|
-
|
|
15460
|
-
|
|
15461
|
-
|
|
15462
|
-
|
|
15463
|
-
|
|
15464
|
-
|
|
15465
|
-
|
|
15466
|
-
|
|
15467
|
-
|
|
15468
|
-
|
|
15469
|
-
|
|
15470
|
-
|
|
15471
|
-
|
|
15472
|
-
|
|
15473
|
-
|
|
15474
|
-
|
|
15475
|
-
|
|
15476
|
-
|
|
15477
|
-
|
|
15478
|
-
|
|
15479
|
-
|
|
15480
|
-
|
|
15481
|
-
|
|
15482
|
-
|
|
15483
|
-
|
|
15484
|
-
|
|
15485
|
-
|
|
15486
|
-
|
|
15487
|
-
|
|
15488
|
-
|
|
15489
|
-
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
|
|
15493
|
-
|
|
16043
|
+
/** @description Wait budget in milliseconds; 0 is one status read. Maximum 120000. */
|
|
16044
|
+
timeoutMs?: number;
|
|
16045
|
+
organizationId?: string;
|
|
16046
|
+
};
|
|
16047
|
+
};
|
|
16048
|
+
};
|
|
16049
|
+
responses: {
|
|
16050
|
+
/** @description Request completed. Inspect data.success, per-target results and pendingCount for processing progress. */
|
|
16051
|
+
200: {
|
|
16052
|
+
headers: {
|
|
16053
|
+
[name: string]: unknown;
|
|
16054
|
+
};
|
|
16055
|
+
content: {
|
|
16056
|
+
"application/json": {
|
|
16057
|
+
ok: boolean;
|
|
16058
|
+
apiVersion: string;
|
|
16059
|
+
/** Format: uuid */
|
|
16060
|
+
operationId: string;
|
|
16061
|
+
/** @enum {string} */
|
|
16062
|
+
status: "completed";
|
|
16063
|
+
data: {
|
|
16064
|
+
success: boolean;
|
|
16065
|
+
succeededCount: number;
|
|
16066
|
+
failedCount: number;
|
|
16067
|
+
productIds?: string[];
|
|
16068
|
+
orderIds?: string[];
|
|
16069
|
+
returnIds?: string[];
|
|
16070
|
+
correlations: {
|
|
16071
|
+
/** @enum {string} */
|
|
16072
|
+
kind:
|
|
16073
|
+
| "inventory_job"
|
|
16074
|
+
| "price_event"
|
|
16075
|
+
| "price_book_sync"
|
|
16076
|
+
| "publish_job"
|
|
16077
|
+
| "delist_batch"
|
|
16078
|
+
| "store_switch"
|
|
16079
|
+
| "omni_delete"
|
|
16080
|
+
| "zalora_import"
|
|
16081
|
+
| "enrichment_batch"
|
|
16082
|
+
| "order_action"
|
|
16083
|
+
| "return_action";
|
|
16084
|
+
id: string;
|
|
16085
|
+
platform?: string;
|
|
16086
|
+
storeId?: string;
|
|
16087
|
+
productId?: string;
|
|
16088
|
+
productIds?: string[];
|
|
16089
|
+
externalIds?: string[];
|
|
16090
|
+
}[];
|
|
16091
|
+
message: string;
|
|
16092
|
+
allTerminal: boolean;
|
|
16093
|
+
timedOut: boolean;
|
|
16094
|
+
jobs: {
|
|
16095
|
+
/** @enum {string} */
|
|
16096
|
+
kind:
|
|
16097
|
+
| "inventory_job"
|
|
16098
|
+
| "price_event"
|
|
16099
|
+
| "price_book_sync"
|
|
16100
|
+
| "publish_job"
|
|
16101
|
+
| "delist_batch"
|
|
16102
|
+
| "store_switch"
|
|
16103
|
+
| "omni_delete"
|
|
16104
|
+
| "zalora_import"
|
|
16105
|
+
| "enrichment_batch"
|
|
16106
|
+
| "order_action"
|
|
16107
|
+
| "return_action";
|
|
16108
|
+
id: string;
|
|
16109
|
+
/** @enum {string} */
|
|
16110
|
+
status:
|
|
16111
|
+
| "pending"
|
|
16112
|
+
| "running"
|
|
16113
|
+
| "success"
|
|
16114
|
+
| "error"
|
|
16115
|
+
| "superseded"
|
|
16116
|
+
| "skipped"
|
|
16117
|
+
| "unknown";
|
|
16118
|
+
terminal: boolean;
|
|
16119
|
+
orderId?: string;
|
|
16120
|
+
returnId?: string;
|
|
16121
|
+
productId?: string;
|
|
16122
|
+
productIds?: string[];
|
|
16123
|
+
platform?: string;
|
|
16124
|
+
storeId?: string;
|
|
16125
|
+
action?: string;
|
|
16126
|
+
sourceStatus?: string;
|
|
16127
|
+
labels?: {
|
|
16128
|
+
/** Format: uri */
|
|
16129
|
+
url: string;
|
|
16130
|
+
name: string | null;
|
|
16131
|
+
mimeType: string | null;
|
|
16132
|
+
}[];
|
|
16133
|
+
error?: string;
|
|
16134
|
+
message?: string;
|
|
16135
|
+
updatedAt?: string;
|
|
16136
|
+
externalIds?: string[];
|
|
16137
|
+
missingExternalIds?: string[];
|
|
16138
|
+
evidence?: {
|
|
16139
|
+
accepted?: boolean;
|
|
16140
|
+
verified?: boolean;
|
|
16141
|
+
statusBefore?: string | null;
|
|
16142
|
+
statusAfter?: string | null;
|
|
16143
|
+
};
|
|
16144
|
+
verification?: {
|
|
16145
|
+
ok: boolean;
|
|
16146
|
+
verified: boolean;
|
|
16147
|
+
skipped: boolean;
|
|
16148
|
+
reason?: string;
|
|
16149
|
+
expectedQuantity?: number;
|
|
16150
|
+
actualQuantity?: number | null;
|
|
16151
|
+
evidence?: string;
|
|
16152
|
+
verifiedAt?: string;
|
|
16153
|
+
};
|
|
16154
|
+
operations?: {
|
|
16155
|
+
delist: {
|
|
16156
|
+
status: string;
|
|
16157
|
+
result: {
|
|
16158
|
+
[key: string]: unknown;
|
|
16159
|
+
} | null;
|
|
16160
|
+
};
|
|
16161
|
+
publish: {
|
|
16162
|
+
status: string;
|
|
16163
|
+
result: {
|
|
16164
|
+
[key: string]: unknown;
|
|
16165
|
+
} | null;
|
|
16166
|
+
};
|
|
16167
|
+
};
|
|
16168
|
+
}[];
|
|
16169
|
+
pendingCount: number;
|
|
16170
|
+
};
|
|
16171
|
+
links: {
|
|
16172
|
+
[key: string]: string;
|
|
16173
|
+
};
|
|
16174
|
+
warnings: string[];
|
|
16175
|
+
recommendations: string[];
|
|
16176
|
+
};
|
|
16177
|
+
};
|
|
16178
|
+
};
|
|
16179
|
+
/** @description Invalid request, conflicting operations, singular arguments or a batch exceeding the endpoint limit. */
|
|
16180
|
+
400: {
|
|
16181
|
+
headers: {
|
|
16182
|
+
[name: string]: unknown;
|
|
16183
|
+
};
|
|
16184
|
+
content?: never;
|
|
16185
|
+
};
|
|
16186
|
+
/** @description Missing or invalid credentials. */
|
|
16187
|
+
401: {
|
|
16188
|
+
headers: {
|
|
16189
|
+
[name: string]: unknown;
|
|
16190
|
+
};
|
|
16191
|
+
content?: never;
|
|
16192
|
+
};
|
|
16193
|
+
/** @description Missing scope, organization mismatch, or a target outside the caller's assigned stores and markets. */
|
|
16194
|
+
403: {
|
|
16195
|
+
headers: {
|
|
16196
|
+
[name: string]: unknown;
|
|
16197
|
+
};
|
|
16198
|
+
content?: never;
|
|
16199
|
+
};
|
|
16200
|
+
/** @description Rate limit exceeded. */
|
|
16201
|
+
429: {
|
|
16202
|
+
headers: {
|
|
16203
|
+
[name: string]: unknown;
|
|
16204
|
+
};
|
|
16205
|
+
content?: never;
|
|
16206
|
+
};
|
|
16207
|
+
/** @description Service unavailable. Retry a submission with the same requestId and unchanged operations. */
|
|
16208
|
+
503: {
|
|
16209
|
+
headers: {
|
|
16210
|
+
[name: string]: unknown;
|
|
16211
|
+
};
|
|
16212
|
+
content?: never;
|
|
16213
|
+
};
|
|
16214
|
+
};
|
|
16215
|
+
};
|
|
16216
|
+
post_v1_commerce_state_verify: {
|
|
16217
|
+
parameters: {
|
|
16218
|
+
query?: never;
|
|
16219
|
+
header?: never;
|
|
16220
|
+
path?: never;
|
|
16221
|
+
cookie?: never;
|
|
16222
|
+
};
|
|
16223
|
+
requestBody: {
|
|
16224
|
+
content: {
|
|
16225
|
+
"application/json": {
|
|
16226
|
+
/** @description Order, return or price-book sync correlations. May accompany product targets. */
|
|
16227
|
+
correlations?: {
|
|
16228
|
+
/** @enum {string} */
|
|
16229
|
+
kind: "order_action" | "return_action" | "price_book_sync";
|
|
16230
|
+
/** Format: uuid */
|
|
16231
|
+
id: string;
|
|
16232
|
+
platform?: string;
|
|
16233
|
+
storeId?: string;
|
|
16234
|
+
productId?: string;
|
|
16235
|
+
productIds?: string[];
|
|
16236
|
+
externalIds?: string[];
|
|
16237
|
+
}[];
|
|
16238
|
+
/** @description Product or variant ids to verify together. Use every distinct productId returned by the completed commerce jobs (max 50000, bounded concurrency). */
|
|
16239
|
+
productIds?: string[];
|
|
16240
|
+
/** @description Expected commerce state after a write (price, quantity, listingStatus, etc). */
|
|
16241
|
+
expected?: {
|
|
16242
|
+
price?: number;
|
|
16243
|
+
salePrice?: number | null;
|
|
16244
|
+
currency?: string;
|
|
16245
|
+
quantity?: number;
|
|
16246
|
+
/** @enum {string} */
|
|
16247
|
+
listingStatus?: "active" | "draft" | "unlisted" | "deleted";
|
|
16248
|
+
platforms?: string[];
|
|
16249
|
+
};
|
|
16250
|
+
/** @description Per-product expected states for a mixed-value batch. Use every successful item's productId and commerceReceipt.expected together. Do not combine with productIds or shared expected. Identical duplicates are deduplicated; conflicting expectations are rejected. */
|
|
16251
|
+
targets?: {
|
|
16252
|
+
productId: string;
|
|
16253
|
+
expected: {
|
|
16254
|
+
price?: number;
|
|
16255
|
+
salePrice?: number | null;
|
|
16256
|
+
currency?: string;
|
|
16257
|
+
quantity?: number;
|
|
16258
|
+
/** @enum {string} */
|
|
16259
|
+
listingStatus?: "active" | "draft" | "unlisted" | "deleted";
|
|
16260
|
+
platforms?: string[];
|
|
16261
|
+
};
|
|
16262
|
+
}[];
|
|
16263
|
+
/**
|
|
16264
|
+
* @description Lifecycle action being verified. Use delete for Omni-only delete checks.
|
|
16265
|
+
* @enum {string}
|
|
16266
|
+
*/
|
|
16267
|
+
action?:
|
|
16268
|
+
| "price"
|
|
16269
|
+
| "inventory"
|
|
16270
|
+
| "publish"
|
|
16271
|
+
| "update"
|
|
16272
|
+
| "delist"
|
|
16273
|
+
| "delete";
|
|
16274
|
+
/** @description Optional marketplace filter: shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, ebay. */
|
|
16275
|
+
platforms?: string[];
|
|
16276
|
+
/** @description Also assert Omni DB fields (default true). */
|
|
16277
|
+
includeOmni?: boolean;
|
|
15494
16278
|
organizationId?: string;
|
|
15495
16279
|
};
|
|
15496
16280
|
};
|
|
@@ -16328,6 +17112,331 @@ interface operations {
|
|
|
16328
17112
|
};
|
|
16329
17113
|
};
|
|
16330
17114
|
};
|
|
17115
|
+
get_v1_follow_ups: {
|
|
17116
|
+
parameters: {
|
|
17117
|
+
query?: {
|
|
17118
|
+
/** @description Also list every follow-up on this conversation. */
|
|
17119
|
+
threadId?: string;
|
|
17120
|
+
/** @description 1–50; 20 when omitted. */
|
|
17121
|
+
limit?: number;
|
|
17122
|
+
/** @description Required for session auth. Optional for API keys, which already belong to one organization. */
|
|
17123
|
+
organizationId?: string;
|
|
17124
|
+
};
|
|
17125
|
+
header?: never;
|
|
17126
|
+
path?: never;
|
|
17127
|
+
cookie?: never;
|
|
17128
|
+
};
|
|
17129
|
+
requestBody?: never;
|
|
17130
|
+
responses: {
|
|
17131
|
+
/** @description The follow-ups. */
|
|
17132
|
+
200: {
|
|
17133
|
+
headers: {
|
|
17134
|
+
[name: string]: unknown;
|
|
17135
|
+
};
|
|
17136
|
+
content: {
|
|
17137
|
+
"application/json": {
|
|
17138
|
+
ok?: boolean;
|
|
17139
|
+
operationId?: string;
|
|
17140
|
+
status?: string;
|
|
17141
|
+
data?: {
|
|
17142
|
+
followUps?: {
|
|
17143
|
+
/** Format: uuid */
|
|
17144
|
+
id: string;
|
|
17145
|
+
threadId: string;
|
|
17146
|
+
ownerUserId?: string;
|
|
17147
|
+
/** @enum {string} */
|
|
17148
|
+
state: "waiting" | "fired" | "expired" | "canceled" | "failed";
|
|
17149
|
+
/** @enum {string} */
|
|
17150
|
+
trigger: "schedule" | "event";
|
|
17151
|
+
/** Format: date-time */
|
|
17152
|
+
fireAt?: string | null;
|
|
17153
|
+
eventType?: string | null;
|
|
17154
|
+
/** @description CEL condition; empty when none */
|
|
17155
|
+
match?: string;
|
|
17156
|
+
note: string;
|
|
17157
|
+
/** @enum {string} */
|
|
17158
|
+
then: "resume" | "notify";
|
|
17159
|
+
/** Format: date-time */
|
|
17160
|
+
expiresAt: string;
|
|
17161
|
+
/** Format: date-time */
|
|
17162
|
+
firedAt?: string | null;
|
|
17163
|
+
failure?: string | null;
|
|
17164
|
+
/** Format: date-time */
|
|
17165
|
+
createdAt?: string;
|
|
17166
|
+
/** Format: uri */
|
|
17167
|
+
url?: string | null;
|
|
17168
|
+
}[];
|
|
17169
|
+
};
|
|
17170
|
+
};
|
|
17171
|
+
};
|
|
17172
|
+
};
|
|
17173
|
+
/** @description Invalid payload, or a follow-up the request cannot make. */
|
|
17174
|
+
400: {
|
|
17175
|
+
headers: {
|
|
17176
|
+
[name: string]: unknown;
|
|
17177
|
+
};
|
|
17178
|
+
content?: never;
|
|
17179
|
+
};
|
|
17180
|
+
/** @description Unauthorized */
|
|
17181
|
+
401: {
|
|
17182
|
+
headers: {
|
|
17183
|
+
[name: string]: unknown;
|
|
17184
|
+
};
|
|
17185
|
+
content?: never;
|
|
17186
|
+
};
|
|
17187
|
+
/** @description Missing agents:invoke scope or Assistant access, or an OAuth client credential: follow-ups belong to a person (API key or session). */
|
|
17188
|
+
403: {
|
|
17189
|
+
headers: {
|
|
17190
|
+
[name: string]: unknown;
|
|
17191
|
+
};
|
|
17192
|
+
content?: never;
|
|
17193
|
+
};
|
|
17194
|
+
/** @description Internal Server Error */
|
|
17195
|
+
500: {
|
|
17196
|
+
headers: {
|
|
17197
|
+
[name: string]: unknown;
|
|
17198
|
+
};
|
|
17199
|
+
content?: never;
|
|
17200
|
+
};
|
|
17201
|
+
};
|
|
17202
|
+
};
|
|
17203
|
+
post_v1_follow_ups: {
|
|
17204
|
+
parameters: {
|
|
17205
|
+
query?: never;
|
|
17206
|
+
header?: never;
|
|
17207
|
+
path?: never;
|
|
17208
|
+
cookie?: never;
|
|
17209
|
+
};
|
|
17210
|
+
requestBody: {
|
|
17211
|
+
content: {
|
|
17212
|
+
/**
|
|
17213
|
+
* @example {
|
|
17214
|
+
* "threadId": "thread_123",
|
|
17215
|
+
* "after": "7d",
|
|
17216
|
+
* "note": "Compare SKU A-1's units sold over the 7 days since the price cut with the 7 days before; if there is no lift, propose reverting the price."
|
|
17217
|
+
* }
|
|
17218
|
+
*/
|
|
17219
|
+
"application/json": {
|
|
17220
|
+
/**
|
|
17221
|
+
* Format: date-time
|
|
17222
|
+
* @description Future ISO 8601 time with timezone. Use only one trigger.
|
|
17223
|
+
*/
|
|
17224
|
+
at?: string;
|
|
17225
|
+
/** @description Delay such as 90m, 4h, 14d or 2w. */
|
|
17226
|
+
after?: string;
|
|
17227
|
+
/**
|
|
17228
|
+
* @description Fire on this event's first matching occurrence.
|
|
17229
|
+
* @enum {string}
|
|
17230
|
+
*/
|
|
17231
|
+
eventType?:
|
|
17232
|
+
| "telegram.message.received"
|
|
17233
|
+
| "customer.message.received"
|
|
17234
|
+
| "product.created"
|
|
17235
|
+
| "product.updated"
|
|
17236
|
+
| "product.deleted"
|
|
17237
|
+
| "product.delisted"
|
|
17238
|
+
| "product.price.changed"
|
|
17239
|
+
| "product.inventory.changed"
|
|
17240
|
+
| "product.enrichment.started"
|
|
17241
|
+
| "product.enrichment.completed"
|
|
17242
|
+
| "product.listing.error"
|
|
17243
|
+
| "product.geo.created"
|
|
17244
|
+
| "product.geo.updated"
|
|
17245
|
+
| "product.ai_visibility.measured"
|
|
17246
|
+
| "agent.action.approved"
|
|
17247
|
+
| "order.created"
|
|
17248
|
+
| "order.updated"
|
|
17249
|
+
| "order.deleted"
|
|
17250
|
+
| "order.status.changed"
|
|
17251
|
+
| "look.created"
|
|
17252
|
+
| "look.deleted"
|
|
17253
|
+
| "review.created"
|
|
17254
|
+
| "review.updated"
|
|
17255
|
+
| "review.status.changed"
|
|
17256
|
+
| "campaign.started"
|
|
17257
|
+
| "campaign.window.started"
|
|
17258
|
+
| "campaign.window.completed"
|
|
17259
|
+
| "campaign.window.failed"
|
|
17260
|
+
| "campaign.offer.failed"
|
|
17261
|
+
| "campaign.completed"
|
|
17262
|
+
| "promotion.usage.updated"
|
|
17263
|
+
| "promotion.delivery.updated"
|
|
17264
|
+
| "promotion.monitoring.updated"
|
|
17265
|
+
| "account_statement.created"
|
|
17266
|
+
| "account_statement.updated"
|
|
17267
|
+
| "account_statement.status.changed"
|
|
17268
|
+
| "account_statement.reconciliation.changed"
|
|
17269
|
+
| "account_statement.transactions.synced"
|
|
17270
|
+
| "account_statement.transactions.failed"
|
|
17271
|
+
| "account_statement.sync.queued"
|
|
17272
|
+
| "account_statement.sync.started"
|
|
17273
|
+
| "account_statement.sync.completed"
|
|
17274
|
+
| "account_statement.sync.failed"
|
|
17275
|
+
| "account_statement.sync.unavailable";
|
|
17276
|
+
/** @description CEL event filter, e.g. event.sku == "A-1". Only with eventType. */
|
|
17277
|
+
match?: string;
|
|
17278
|
+
/** @description What to check or do when the follow-up fires. */
|
|
17279
|
+
note: string;
|
|
17280
|
+
/**
|
|
17281
|
+
* @description resume continues this chat (default); notify only emails you.
|
|
17282
|
+
* @enum {string}
|
|
17283
|
+
*/
|
|
17284
|
+
then?: "resume" | "notify";
|
|
17285
|
+
/** @description Expiry duration; events default to 10d. Must outlast a timed trigger. */
|
|
17286
|
+
expires?: string;
|
|
17287
|
+
organizationId?: string;
|
|
17288
|
+
/** @description The assistant conversation (session) to continue. */
|
|
17289
|
+
threadId: string;
|
|
17290
|
+
};
|
|
17291
|
+
};
|
|
17292
|
+
};
|
|
17293
|
+
responses: {
|
|
17294
|
+
/** @description The follow-up, waiting. */
|
|
17295
|
+
200: {
|
|
17296
|
+
headers: {
|
|
17297
|
+
[name: string]: unknown;
|
|
17298
|
+
};
|
|
17299
|
+
content: {
|
|
17300
|
+
"application/json": {
|
|
17301
|
+
ok?: boolean;
|
|
17302
|
+
operationId?: string;
|
|
17303
|
+
status?: string;
|
|
17304
|
+
data?: {
|
|
17305
|
+
followUp?: {
|
|
17306
|
+
/** Format: uuid */
|
|
17307
|
+
id: string;
|
|
17308
|
+
threadId: string;
|
|
17309
|
+
ownerUserId?: string;
|
|
17310
|
+
/** @enum {string} */
|
|
17311
|
+
state: "waiting" | "fired" | "expired" | "canceled" | "failed";
|
|
17312
|
+
/** @enum {string} */
|
|
17313
|
+
trigger: "schedule" | "event";
|
|
17314
|
+
/** Format: date-time */
|
|
17315
|
+
fireAt?: string | null;
|
|
17316
|
+
eventType?: string | null;
|
|
17317
|
+
/** @description CEL condition; empty when none */
|
|
17318
|
+
match?: string;
|
|
17319
|
+
note: string;
|
|
17320
|
+
/** @enum {string} */
|
|
17321
|
+
then: "resume" | "notify";
|
|
17322
|
+
/** Format: date-time */
|
|
17323
|
+
expiresAt: string;
|
|
17324
|
+
/** Format: date-time */
|
|
17325
|
+
firedAt?: string | null;
|
|
17326
|
+
failure?: string | null;
|
|
17327
|
+
/** Format: date-time */
|
|
17328
|
+
createdAt?: string;
|
|
17329
|
+
/** Format: uri */
|
|
17330
|
+
url?: string | null;
|
|
17331
|
+
};
|
|
17332
|
+
};
|
|
17333
|
+
};
|
|
17334
|
+
};
|
|
17335
|
+
};
|
|
17336
|
+
/** @description Invalid payload, or a follow-up the request cannot make. */
|
|
17337
|
+
400: {
|
|
17338
|
+
headers: {
|
|
17339
|
+
[name: string]: unknown;
|
|
17340
|
+
};
|
|
17341
|
+
content?: never;
|
|
17342
|
+
};
|
|
17343
|
+
/** @description Unauthorized */
|
|
17344
|
+
401: {
|
|
17345
|
+
headers: {
|
|
17346
|
+
[name: string]: unknown;
|
|
17347
|
+
};
|
|
17348
|
+
content?: never;
|
|
17349
|
+
};
|
|
17350
|
+
/** @description Missing agents:invoke scope or Assistant access, or an OAuth client credential: follow-ups belong to a person (API key or session). */
|
|
17351
|
+
403: {
|
|
17352
|
+
headers: {
|
|
17353
|
+
[name: string]: unknown;
|
|
17354
|
+
};
|
|
17355
|
+
content?: never;
|
|
17356
|
+
};
|
|
17357
|
+
/** @description Internal Server Error */
|
|
17358
|
+
500: {
|
|
17359
|
+
headers: {
|
|
17360
|
+
[name: string]: unknown;
|
|
17361
|
+
};
|
|
17362
|
+
content?: never;
|
|
17363
|
+
};
|
|
17364
|
+
};
|
|
17365
|
+
};
|
|
17366
|
+
post_v1_follow_ups_cancel: {
|
|
17367
|
+
parameters: {
|
|
17368
|
+
query?: never;
|
|
17369
|
+
header?: never;
|
|
17370
|
+
path?: never;
|
|
17371
|
+
cookie?: never;
|
|
17372
|
+
};
|
|
17373
|
+
requestBody: {
|
|
17374
|
+
content: {
|
|
17375
|
+
/**
|
|
17376
|
+
* @example {
|
|
17377
|
+
* "followUpIds": [
|
|
17378
|
+
* "3f1c2b9e-8f0a-4c51-9d1e-2a6b7c8d9e0f"
|
|
17379
|
+
* ]
|
|
17380
|
+
* }
|
|
17381
|
+
*/
|
|
17382
|
+
"application/json": {
|
|
17383
|
+
/** @description The follow-ups to cancel, from follow_up or list_follow_ups. */
|
|
17384
|
+
followUpIds: string[];
|
|
17385
|
+
organizationId?: string;
|
|
17386
|
+
};
|
|
17387
|
+
};
|
|
17388
|
+
};
|
|
17389
|
+
responses: {
|
|
17390
|
+
/** @description One result per id. */
|
|
17391
|
+
200: {
|
|
17392
|
+
headers: {
|
|
17393
|
+
[name: string]: unknown;
|
|
17394
|
+
};
|
|
17395
|
+
content: {
|
|
17396
|
+
"application/json": {
|
|
17397
|
+
ok?: boolean;
|
|
17398
|
+
operationId?: string;
|
|
17399
|
+
status?: string;
|
|
17400
|
+
data?: {
|
|
17401
|
+
success?: boolean;
|
|
17402
|
+
followUpIds?: string[];
|
|
17403
|
+
succeededCount?: number;
|
|
17404
|
+
failedCount?: number;
|
|
17405
|
+
results?: Record<string, never>[];
|
|
17406
|
+
};
|
|
17407
|
+
};
|
|
17408
|
+
};
|
|
17409
|
+
};
|
|
17410
|
+
/** @description Invalid payload, or a follow-up the request cannot make. */
|
|
17411
|
+
400: {
|
|
17412
|
+
headers: {
|
|
17413
|
+
[name: string]: unknown;
|
|
17414
|
+
};
|
|
17415
|
+
content?: never;
|
|
17416
|
+
};
|
|
17417
|
+
/** @description Unauthorized */
|
|
17418
|
+
401: {
|
|
17419
|
+
headers: {
|
|
17420
|
+
[name: string]: unknown;
|
|
17421
|
+
};
|
|
17422
|
+
content?: never;
|
|
17423
|
+
};
|
|
17424
|
+
/** @description Missing agents:invoke scope or Assistant access, or an OAuth client credential: follow-ups belong to a person (API key or session). */
|
|
17425
|
+
403: {
|
|
17426
|
+
headers: {
|
|
17427
|
+
[name: string]: unknown;
|
|
17428
|
+
};
|
|
17429
|
+
content?: never;
|
|
17430
|
+
};
|
|
17431
|
+
/** @description Internal Server Error */
|
|
17432
|
+
500: {
|
|
17433
|
+
headers: {
|
|
17434
|
+
[name: string]: unknown;
|
|
17435
|
+
};
|
|
17436
|
+
content?: never;
|
|
17437
|
+
};
|
|
17438
|
+
};
|
|
17439
|
+
};
|
|
16331
17440
|
post_v1_images_ghost_mannequin: {
|
|
16332
17441
|
parameters: {
|
|
16333
17442
|
query?: never;
|
|
@@ -19381,7 +20490,8 @@ interface operations {
|
|
|
19381
20490
|
| "whatsapp"
|
|
19382
20491
|
| "zalora"
|
|
19383
20492
|
| "amazon"
|
|
19384
|
-
| "ebay"
|
|
20493
|
+
| "ebay"
|
|
20494
|
+
| "agentic_checkout";
|
|
19385
20495
|
/** @description When `true`, return only enabled rules. */
|
|
19386
20496
|
enabledOnly?: boolean;
|
|
19387
20497
|
};
|
|
@@ -19471,7 +20581,8 @@ interface operations {
|
|
|
19471
20581
|
| "whatsapp"
|
|
19472
20582
|
| "zalora"
|
|
19473
20583
|
| "amazon"
|
|
19474
|
-
| "ebay"
|
|
20584
|
+
| "ebay"
|
|
20585
|
+
| "agentic_checkout";
|
|
19475
20586
|
/** @description Optional connected store ID. Null/omit applies to all stores for the platform. */
|
|
19476
20587
|
storeId?: string | null;
|
|
19477
20588
|
/** @description Optional country scope (name or code). Null/omit applies to all countries. */
|
|
@@ -19766,7 +20877,8 @@ interface operations {
|
|
|
19766
20877
|
| "whatsapp"
|
|
19767
20878
|
| "zalora"
|
|
19768
20879
|
| "amazon"
|
|
19769
|
-
| "ebay"
|
|
20880
|
+
| "ebay"
|
|
20881
|
+
| "agentic_checkout";
|
|
19770
20882
|
/** @description Canonical list price to mark up. */
|
|
19771
20883
|
listPrice: number;
|
|
19772
20884
|
storeId?: string | null;
|
|
@@ -19995,6 +21107,82 @@ interface operations {
|
|
|
19995
21107
|
createdAt?: string | null;
|
|
19996
21108
|
updatedAt?: string | null;
|
|
19997
21109
|
publishedAt?: string | null;
|
|
21110
|
+
/** @description Duplicate peers and evidence on status=duplicates with detail=full. Combine the root id with peer productIds, deduplicate, and review exact-SKU targets through the merge preview. Content/variant matches alone do not establish merge compatibility. Follow pagination for every result in the selected scope. */
|
|
21111
|
+
duplicateMatches?: {
|
|
21112
|
+
productId: string;
|
|
21113
|
+
name: string;
|
|
21114
|
+
sku: string | null;
|
|
21115
|
+
score: number;
|
|
21116
|
+
reasons: string[];
|
|
21117
|
+
liveOnSameStore?: boolean;
|
|
21118
|
+
imageUrl?: string | null;
|
|
21119
|
+
matchedViaProductName?: string;
|
|
21120
|
+
product?: {
|
|
21121
|
+
/** Format: uuid */
|
|
21122
|
+
id: string;
|
|
21123
|
+
name: string;
|
|
21124
|
+
sku: string | null;
|
|
21125
|
+
/** Format: uuid */
|
|
21126
|
+
parentId: string | null;
|
|
21127
|
+
isVariant: boolean;
|
|
21128
|
+
/** @description Catalog stock in whole units, matching the Products page. Parent rows aggregate non-deleted variants in the same organization; virtual bundles derive stock from components and any manual cap. Null means unknown: never substitute zero for missing or null stock. This is not a sum of marketplace inventory mirrors or a per-location available-to-promise balance. */
|
|
21129
|
+
stockQuantity: number | null;
|
|
21130
|
+
/** @description Number of non-deleted variants; greater than 0 means the product has variants. A parent row's stockQuantity already includes their stock. Read the variants themselves from `GET /api/v1/products/{productId}`. */
|
|
21131
|
+
variantCount: number;
|
|
21132
|
+
status?: string;
|
|
21133
|
+
/** @description Read-only product-wide state. Lifecycle status and derived quality/error signals are independent; this field is recalculated from current product, marketplace QC, and review flags. */
|
|
21134
|
+
statusFacets?: {
|
|
21135
|
+
/** @enum {string} */
|
|
21136
|
+
lifecycle:
|
|
21137
|
+
| "draft"
|
|
21138
|
+
| "active"
|
|
21139
|
+
| "archived"
|
|
21140
|
+
| "deleted"
|
|
21141
|
+
| "unknown";
|
|
21142
|
+
derived: (
|
|
21143
|
+
| "flagged"
|
|
21144
|
+
| "errors"
|
|
21145
|
+
| "qc_pending"
|
|
21146
|
+
| "qc_rejected"
|
|
21147
|
+
)[];
|
|
21148
|
+
zaloraQualityControl?: Record<string, never>;
|
|
21149
|
+
};
|
|
21150
|
+
currency?: string | null;
|
|
21151
|
+
price?: number | null;
|
|
21152
|
+
priceMax?: number | null;
|
|
21153
|
+
salePrice?: number | null;
|
|
21154
|
+
marketplacePricing?: {
|
|
21155
|
+
ranges?: {
|
|
21156
|
+
currency: string;
|
|
21157
|
+
min: number;
|
|
21158
|
+
max: number;
|
|
21159
|
+
}[];
|
|
21160
|
+
channels?: {
|
|
21161
|
+
key?: string;
|
|
21162
|
+
platform?: string;
|
|
21163
|
+
storeId?: string | null;
|
|
21164
|
+
country?: string | null;
|
|
21165
|
+
currency?: string;
|
|
21166
|
+
min?: number | null;
|
|
21167
|
+
max?: number | null;
|
|
21168
|
+
/** @enum {string} */
|
|
21169
|
+
source?: "price_book" | "canonical";
|
|
21170
|
+
error?: string | null;
|
|
21171
|
+
}[];
|
|
21172
|
+
};
|
|
21173
|
+
marketplaces?: {
|
|
21174
|
+
marketplace?: string;
|
|
21175
|
+
country?: string | null;
|
|
21176
|
+
storeId?: string | null;
|
|
21177
|
+
published?: boolean;
|
|
21178
|
+
itemId?: string | null;
|
|
21179
|
+
listingUrl?: string | null;
|
|
21180
|
+
}[];
|
|
21181
|
+
createdAt?: string | null;
|
|
21182
|
+
updatedAt?: string | null;
|
|
21183
|
+
publishedAt?: string | null;
|
|
21184
|
+
};
|
|
21185
|
+
}[];
|
|
19998
21186
|
}[];
|
|
19999
21187
|
hasMore?: boolean;
|
|
20000
21188
|
nextOffset?: number;
|
|
@@ -20859,6 +22047,82 @@ interface operations {
|
|
|
20859
22047
|
createdAt?: string | null;
|
|
20860
22048
|
updatedAt?: string | null;
|
|
20861
22049
|
publishedAt?: string | null;
|
|
22050
|
+
/** @description Duplicate peers and evidence on status=duplicates with detail=full. Combine the root id with peer productIds, deduplicate, and review exact-SKU targets through the merge preview. Content/variant matches alone do not establish merge compatibility. Follow pagination for every result in the selected scope. */
|
|
22051
|
+
duplicateMatches?: {
|
|
22052
|
+
productId: string;
|
|
22053
|
+
name: string;
|
|
22054
|
+
sku: string | null;
|
|
22055
|
+
score: number;
|
|
22056
|
+
reasons: string[];
|
|
22057
|
+
liveOnSameStore?: boolean;
|
|
22058
|
+
imageUrl?: string | null;
|
|
22059
|
+
matchedViaProductName?: string;
|
|
22060
|
+
product?: {
|
|
22061
|
+
/** Format: uuid */
|
|
22062
|
+
id: string;
|
|
22063
|
+
name: string;
|
|
22064
|
+
sku: string | null;
|
|
22065
|
+
/** Format: uuid */
|
|
22066
|
+
parentId: string | null;
|
|
22067
|
+
isVariant: boolean;
|
|
22068
|
+
/** @description Catalog stock in whole units, matching the Products page. Parent rows aggregate non-deleted variants in the same organization; virtual bundles derive stock from components and any manual cap. Null means unknown: never substitute zero for missing or null stock. This is not a sum of marketplace inventory mirrors or a per-location available-to-promise balance. */
|
|
22069
|
+
stockQuantity: number | null;
|
|
22070
|
+
/** @description Number of non-deleted variants; greater than 0 means the product has variants. A parent row's stockQuantity already includes their stock. Read the variants themselves from `GET /api/v1/products/{productId}`. */
|
|
22071
|
+
variantCount: number;
|
|
22072
|
+
status?: string;
|
|
22073
|
+
/** @description Read-only product-wide state. Lifecycle status and derived quality/error signals are independent; this field is recalculated from current product, marketplace QC, and review flags. */
|
|
22074
|
+
statusFacets?: {
|
|
22075
|
+
/** @enum {string} */
|
|
22076
|
+
lifecycle:
|
|
22077
|
+
| "draft"
|
|
22078
|
+
| "active"
|
|
22079
|
+
| "archived"
|
|
22080
|
+
| "deleted"
|
|
22081
|
+
| "unknown";
|
|
22082
|
+
derived: (
|
|
22083
|
+
| "flagged"
|
|
22084
|
+
| "errors"
|
|
22085
|
+
| "qc_pending"
|
|
22086
|
+
| "qc_rejected"
|
|
22087
|
+
)[];
|
|
22088
|
+
zaloraQualityControl?: Record<string, never>;
|
|
22089
|
+
};
|
|
22090
|
+
currency?: string | null;
|
|
22091
|
+
price?: number | null;
|
|
22092
|
+
priceMax?: number | null;
|
|
22093
|
+
salePrice?: number | null;
|
|
22094
|
+
marketplacePricing?: {
|
|
22095
|
+
ranges?: {
|
|
22096
|
+
currency: string;
|
|
22097
|
+
min: number;
|
|
22098
|
+
max: number;
|
|
22099
|
+
}[];
|
|
22100
|
+
channels?: {
|
|
22101
|
+
key?: string;
|
|
22102
|
+
platform?: string;
|
|
22103
|
+
storeId?: string | null;
|
|
22104
|
+
country?: string | null;
|
|
22105
|
+
currency?: string;
|
|
22106
|
+
min?: number | null;
|
|
22107
|
+
max?: number | null;
|
|
22108
|
+
/** @enum {string} */
|
|
22109
|
+
source?: "price_book" | "canonical";
|
|
22110
|
+
error?: string | null;
|
|
22111
|
+
}[];
|
|
22112
|
+
};
|
|
22113
|
+
marketplaces?: {
|
|
22114
|
+
marketplace?: string;
|
|
22115
|
+
country?: string | null;
|
|
22116
|
+
storeId?: string | null;
|
|
22117
|
+
published?: boolean;
|
|
22118
|
+
itemId?: string | null;
|
|
22119
|
+
listingUrl?: string | null;
|
|
22120
|
+
}[];
|
|
22121
|
+
createdAt?: string | null;
|
|
22122
|
+
updatedAt?: string | null;
|
|
22123
|
+
publishedAt?: string | null;
|
|
22124
|
+
};
|
|
22125
|
+
}[];
|
|
20862
22126
|
} & {
|
|
20863
22127
|
/** @description Option values that identify the variant, for example `{ "Color": "Navy", "Size": "M" }`. */
|
|
20864
22128
|
variationAttributes?: {
|
|
@@ -22844,6 +24108,272 @@ interface operations {
|
|
|
22844
24108
|
};
|
|
22845
24109
|
};
|
|
22846
24110
|
};
|
|
24111
|
+
get_v1_products_bulk_update: {
|
|
24112
|
+
parameters: {
|
|
24113
|
+
query?: {
|
|
24114
|
+
organizationId?: string;
|
|
24115
|
+
};
|
|
24116
|
+
header?: never;
|
|
24117
|
+
path?: never;
|
|
24118
|
+
cookie?: never;
|
|
24119
|
+
};
|
|
24120
|
+
requestBody?: never;
|
|
24121
|
+
responses: {
|
|
24122
|
+
/** @description Eligible stock sources and shared file limits. */
|
|
24123
|
+
200: {
|
|
24124
|
+
headers: {
|
|
24125
|
+
[name: string]: unknown;
|
|
24126
|
+
};
|
|
24127
|
+
content: {
|
|
24128
|
+
"application/json": {
|
|
24129
|
+
ok: boolean;
|
|
24130
|
+
data: {
|
|
24131
|
+
maxDocuments: number;
|
|
24132
|
+
maxRowsPerFile: number;
|
|
24133
|
+
sources: {
|
|
24134
|
+
sourceId: string;
|
|
24135
|
+
label: string;
|
|
24136
|
+
locationId: string;
|
|
24137
|
+
locationName: string;
|
|
24138
|
+
ownershipModel: string;
|
|
24139
|
+
quantityAuthority: string;
|
|
24140
|
+
}[];
|
|
24141
|
+
};
|
|
24142
|
+
};
|
|
24143
|
+
};
|
|
24144
|
+
};
|
|
24145
|
+
/** @description Authentication required. */
|
|
24146
|
+
401: {
|
|
24147
|
+
headers: {
|
|
24148
|
+
[name: string]: unknown;
|
|
24149
|
+
};
|
|
24150
|
+
content?: never;
|
|
24151
|
+
};
|
|
24152
|
+
/** @description Missing inventory read or organization access. */
|
|
24153
|
+
403: {
|
|
24154
|
+
headers: {
|
|
24155
|
+
[name: string]: unknown;
|
|
24156
|
+
};
|
|
24157
|
+
content?: never;
|
|
24158
|
+
};
|
|
24159
|
+
};
|
|
24160
|
+
};
|
|
24161
|
+
post_v1_products_bulk_update: {
|
|
24162
|
+
parameters: {
|
|
24163
|
+
query?: never;
|
|
24164
|
+
header?: never;
|
|
24165
|
+
path?: never;
|
|
24166
|
+
cookie?: never;
|
|
24167
|
+
};
|
|
24168
|
+
requestBody: {
|
|
24169
|
+
content: {
|
|
24170
|
+
"application/json": {
|
|
24171
|
+
/** @default true */
|
|
24172
|
+
syncToMarketplaces?: boolean;
|
|
24173
|
+
marketplaces?: (
|
|
24174
|
+
| "shopee"
|
|
24175
|
+
| "lazada"
|
|
24176
|
+
| "tiktok"
|
|
24177
|
+
| "shopify"
|
|
24178
|
+
| "whatsapp"
|
|
24179
|
+
| "zalora"
|
|
24180
|
+
| "amazon"
|
|
24181
|
+
| "ebay"
|
|
24182
|
+
)[];
|
|
24183
|
+
organizationId?: string;
|
|
24184
|
+
documentIds: string[];
|
|
24185
|
+
/**
|
|
24186
|
+
* @default both
|
|
24187
|
+
* @enum {string}
|
|
24188
|
+
*/
|
|
24189
|
+
scope?: "price" | "inventory" | "both";
|
|
24190
|
+
/** Format: uuid */
|
|
24191
|
+
sourceId?: string;
|
|
24192
|
+
/** Format: uuid */
|
|
24193
|
+
locationId?: string;
|
|
24194
|
+
skuColumn?: string;
|
|
24195
|
+
quantityColumn?: string;
|
|
24196
|
+
priceColumn?: string;
|
|
24197
|
+
salePriceColumn?: string;
|
|
24198
|
+
currencyColumn?: string;
|
|
24199
|
+
costPriceColumn?: string;
|
|
24200
|
+
};
|
|
24201
|
+
};
|
|
24202
|
+
};
|
|
24203
|
+
responses: {
|
|
24204
|
+
/** @description Saved imports accepted; updates continue durably. */
|
|
24205
|
+
202: {
|
|
24206
|
+
headers: {
|
|
24207
|
+
[name: string]: unknown;
|
|
24208
|
+
};
|
|
24209
|
+
content: {
|
|
24210
|
+
"application/json": {
|
|
24211
|
+
ok: boolean;
|
|
24212
|
+
apiVersion?: string;
|
|
24213
|
+
operationId?: string;
|
|
24214
|
+
status?: string;
|
|
24215
|
+
data: {
|
|
24216
|
+
success: boolean;
|
|
24217
|
+
succeededCount: number;
|
|
24218
|
+
failedCount: number;
|
|
24219
|
+
pendingCount: number;
|
|
24220
|
+
/** @enum {string} */
|
|
24221
|
+
status: "pending" | "completed" | "partial" | "failed";
|
|
24222
|
+
imports: {
|
|
24223
|
+
/** @enum {string} */
|
|
24224
|
+
kind: "price" | "inventory";
|
|
24225
|
+
/** Format: uuid */
|
|
24226
|
+
importId: string;
|
|
24227
|
+
}[];
|
|
24228
|
+
documentIds: string[];
|
|
24229
|
+
/** @enum {string} */
|
|
24230
|
+
scope: "price" | "inventory" | "both";
|
|
24231
|
+
results: {
|
|
24232
|
+
documentId: string;
|
|
24233
|
+
success: boolean;
|
|
24234
|
+
pending?: boolean;
|
|
24235
|
+
error?: string;
|
|
24236
|
+
price?: {
|
|
24237
|
+
success: boolean;
|
|
24238
|
+
importId?: string;
|
|
24239
|
+
pending?: boolean;
|
|
24240
|
+
error?: string;
|
|
24241
|
+
};
|
|
24242
|
+
inventory?: {
|
|
24243
|
+
success: boolean;
|
|
24244
|
+
importId?: string;
|
|
24245
|
+
pending?: boolean;
|
|
24246
|
+
error?: string;
|
|
24247
|
+
};
|
|
24248
|
+
}[];
|
|
24249
|
+
};
|
|
24250
|
+
};
|
|
24251
|
+
};
|
|
24252
|
+
};
|
|
24253
|
+
/** @description Invalid request or inventory source. */
|
|
24254
|
+
400: {
|
|
24255
|
+
headers: {
|
|
24256
|
+
[name: string]: unknown;
|
|
24257
|
+
};
|
|
24258
|
+
content?: never;
|
|
24259
|
+
};
|
|
24260
|
+
/** @description Authentication required. */
|
|
24261
|
+
401: {
|
|
24262
|
+
headers: {
|
|
24263
|
+
[name: string]: unknown;
|
|
24264
|
+
};
|
|
24265
|
+
content?: never;
|
|
24266
|
+
};
|
|
24267
|
+
/** @description Missing scope, role, or organization access. */
|
|
24268
|
+
403: {
|
|
24269
|
+
headers: {
|
|
24270
|
+
[name: string]: unknown;
|
|
24271
|
+
};
|
|
24272
|
+
content?: never;
|
|
24273
|
+
};
|
|
24274
|
+
};
|
|
24275
|
+
};
|
|
24276
|
+
post_v1_products_bulk_update_status: {
|
|
24277
|
+
parameters: {
|
|
24278
|
+
query?: never;
|
|
24279
|
+
header?: never;
|
|
24280
|
+
path?: never;
|
|
24281
|
+
cookie?: never;
|
|
24282
|
+
};
|
|
24283
|
+
requestBody: {
|
|
24284
|
+
content: {
|
|
24285
|
+
"application/json": {
|
|
24286
|
+
organizationId?: string;
|
|
24287
|
+
imports: {
|
|
24288
|
+
/** @enum {string} */
|
|
24289
|
+
kind: "price" | "inventory";
|
|
24290
|
+
/** Format: uuid */
|
|
24291
|
+
importId: string;
|
|
24292
|
+
}[];
|
|
24293
|
+
/** @default false */
|
|
24294
|
+
includeRows?: boolean;
|
|
24295
|
+
/** @default 0 */
|
|
24296
|
+
rowOffset?: number;
|
|
24297
|
+
/** @default 100 */
|
|
24298
|
+
rowLimit?: number;
|
|
24299
|
+
};
|
|
24300
|
+
};
|
|
24301
|
+
};
|
|
24302
|
+
responses: {
|
|
24303
|
+
/** @description Saved import progress. */
|
|
24304
|
+
200: {
|
|
24305
|
+
headers: {
|
|
24306
|
+
[name: string]: unknown;
|
|
24307
|
+
};
|
|
24308
|
+
content: {
|
|
24309
|
+
"application/json": {
|
|
24310
|
+
ok: boolean;
|
|
24311
|
+
apiVersion?: string;
|
|
24312
|
+
operationId?: string;
|
|
24313
|
+
status?: string;
|
|
24314
|
+
data: {
|
|
24315
|
+
success: boolean;
|
|
24316
|
+
succeededCount: number;
|
|
24317
|
+
failedCount: number;
|
|
24318
|
+
pendingCount: number;
|
|
24319
|
+
/** @enum {string} */
|
|
24320
|
+
status: "pending" | "completed" | "partial" | "failed";
|
|
24321
|
+
imports: {
|
|
24322
|
+
/** @enum {string} */
|
|
24323
|
+
kind: "price" | "inventory";
|
|
24324
|
+
/** Format: uuid */
|
|
24325
|
+
importId: string;
|
|
24326
|
+
}[];
|
|
24327
|
+
allTerminal: boolean;
|
|
24328
|
+
results: {
|
|
24329
|
+
/** @enum {string} */
|
|
24330
|
+
kind: "price" | "inventory";
|
|
24331
|
+
/** Format: uuid */
|
|
24332
|
+
importId: string;
|
|
24333
|
+
success: boolean;
|
|
24334
|
+
pending: boolean;
|
|
24335
|
+
status?: string;
|
|
24336
|
+
documentId?: string;
|
|
24337
|
+
totalRows?: number;
|
|
24338
|
+
validRows?: number;
|
|
24339
|
+
invalidRows?: number;
|
|
24340
|
+
unknownRows?: number;
|
|
24341
|
+
appliedRows?: number;
|
|
24342
|
+
error?: string;
|
|
24343
|
+
/** @constant */
|
|
24344
|
+
marketplaceVerification?: "not_verified";
|
|
24345
|
+
rows?: {
|
|
24346
|
+
[key: string]: unknown;
|
|
24347
|
+
}[];
|
|
24348
|
+
nextRowOffset?: number | null;
|
|
24349
|
+
}[];
|
|
24350
|
+
};
|
|
24351
|
+
};
|
|
24352
|
+
};
|
|
24353
|
+
};
|
|
24354
|
+
/** @description Invalid request or inventory source. */
|
|
24355
|
+
400: {
|
|
24356
|
+
headers: {
|
|
24357
|
+
[name: string]: unknown;
|
|
24358
|
+
};
|
|
24359
|
+
content?: never;
|
|
24360
|
+
};
|
|
24361
|
+
/** @description Authentication required. */
|
|
24362
|
+
401: {
|
|
24363
|
+
headers: {
|
|
24364
|
+
[name: string]: unknown;
|
|
24365
|
+
};
|
|
24366
|
+
content?: never;
|
|
24367
|
+
};
|
|
24368
|
+
/** @description Missing scope, role, or organization access. */
|
|
24369
|
+
403: {
|
|
24370
|
+
headers: {
|
|
24371
|
+
[name: string]: unknown;
|
|
24372
|
+
};
|
|
24373
|
+
content?: never;
|
|
24374
|
+
};
|
|
24375
|
+
};
|
|
24376
|
+
};
|
|
22847
24377
|
post_v1_products_compare_prices: {
|
|
22848
24378
|
parameters: {
|
|
22849
24379
|
query?: never;
|
|
@@ -23435,6 +24965,548 @@ interface operations {
|
|
|
23435
24965
|
};
|
|
23436
24966
|
};
|
|
23437
24967
|
};
|
|
24968
|
+
post_v1_products_duplicates_merge: {
|
|
24969
|
+
parameters: {
|
|
24970
|
+
query?: never;
|
|
24971
|
+
header?: never;
|
|
24972
|
+
path?: never;
|
|
24973
|
+
cookie?: never;
|
|
24974
|
+
};
|
|
24975
|
+
requestBody: {
|
|
24976
|
+
content: {
|
|
24977
|
+
/**
|
|
24978
|
+
* @example {
|
|
24979
|
+
* "productIds": [
|
|
24980
|
+
* "4d3c2b1a-0000-4000-8000-000000000001",
|
|
24981
|
+
* "4d3c2b1a-0000-4000-8000-000000000002"
|
|
24982
|
+
* ],
|
|
24983
|
+
* "masterProductIds": [
|
|
24984
|
+
* "4d3c2b1a-0000-4000-8000-000000000002"
|
|
24985
|
+
* ]
|
|
24986
|
+
* }
|
|
24987
|
+
*/
|
|
24988
|
+
"application/json": {
|
|
24989
|
+
/**
|
|
24990
|
+
* @description Required for variant products. Keep the master's variants, or add compatible source variants. Both publish the resulting variants to every preserved store listing in the same operation. Choose a master with existing variants; unmatched SKUs and conflicting options block merging. Standalone-only merges do not publish.
|
|
24991
|
+
* @enum {string}
|
|
24992
|
+
*/
|
|
24993
|
+
variantStrategy?: "keep_master" | "merge_variants";
|
|
24994
|
+
/** @description True runs the same merge transaction and rolls it back, including database reference/constraint validation. No product changes are saved, no mutation events or duplicate refreshes run, and marketplace listings stay unchanged. Requires catalog:write. Omitted/false performs the reviewed merge. This differs from CLI --dry-run, which only prints a request. */
|
|
24995
|
+
dryRun?: boolean;
|
|
24996
|
+
/** @description Required only for session-authenticated calls. API credentials use their own organization. */
|
|
24997
|
+
organizationId?: string;
|
|
24998
|
+
/** @description Ordered root catalog product IDs. Products are grouped by exact SKU; each group merges into one master. */
|
|
24999
|
+
productIds: string[];
|
|
25000
|
+
/** @description Optional master per SKU group, chosen from productIds; at most one per group. Defaults to the first requested product of each group. The master keeps its content, images, price and stock. */
|
|
25001
|
+
masterProductIds?: string[];
|
|
25002
|
+
/** @description Optional groups from a preview to pin: membership, master (first product) and SKU. Groups that changed or are omitted are not merged. */
|
|
25003
|
+
expectedGroups?: {
|
|
25004
|
+
productIds: string[];
|
|
25005
|
+
sku: string;
|
|
25006
|
+
/** @description Variant/store plan version from the preview. Required when pinning a variant merge; changes fail before catalog writes. */
|
|
25007
|
+
variantPlanVersion?: string;
|
|
25008
|
+
}[];
|
|
25009
|
+
explanation?: string;
|
|
25010
|
+
};
|
|
25011
|
+
};
|
|
25012
|
+
};
|
|
25013
|
+
responses: {
|
|
25014
|
+
/** @description Batch processed. `data` holds `groups[]` (with `survivingProductId`, `mergedProductIds`, `error`), ordered per-product `items[]`, `succeededCount` and `failedCount`. `ok` is true only when every group merged. */
|
|
25015
|
+
200: {
|
|
25016
|
+
headers: {
|
|
25017
|
+
[name: string]: unknown;
|
|
25018
|
+
};
|
|
25019
|
+
content: {
|
|
25020
|
+
"application/json": {
|
|
25021
|
+
ok: boolean;
|
|
25022
|
+
apiVersion: string;
|
|
25023
|
+
operationId: string;
|
|
25024
|
+
/** @enum {string} */
|
|
25025
|
+
status: "accepted" | "completed" | "failed";
|
|
25026
|
+
data: {
|
|
25027
|
+
success: boolean;
|
|
25028
|
+
dryRun?: boolean;
|
|
25029
|
+
productIds: string[];
|
|
25030
|
+
survivingProductId?: string;
|
|
25031
|
+
survivingProductIds?: string[];
|
|
25032
|
+
mergedProductIds?: string[];
|
|
25033
|
+
wouldMergeProductIds?: string[];
|
|
25034
|
+
groups?: {
|
|
25035
|
+
productIds: string[];
|
|
25036
|
+
success: boolean;
|
|
25037
|
+
survivingProductId?: string;
|
|
25038
|
+
mergedProductIds?: string[];
|
|
25039
|
+
wouldMergeProductIds?: string[];
|
|
25040
|
+
publishResults?: {
|
|
25041
|
+
/** @enum {string} */
|
|
25042
|
+
platform:
|
|
25043
|
+
| "shopee"
|
|
25044
|
+
| "lazada"
|
|
25045
|
+
| "tiktok"
|
|
25046
|
+
| "shopify"
|
|
25047
|
+
| "whatsapp"
|
|
25048
|
+
| "zalora"
|
|
25049
|
+
| "amazon"
|
|
25050
|
+
| "ebay";
|
|
25051
|
+
storeId: string;
|
|
25052
|
+
itemId: string;
|
|
25053
|
+
/** @enum {string} */
|
|
25054
|
+
visibility: "live" | "draft";
|
|
25055
|
+
success: boolean;
|
|
25056
|
+
queued: boolean;
|
|
25057
|
+
jobIds: string[];
|
|
25058
|
+
attempt?: number;
|
|
25059
|
+
error?: string;
|
|
25060
|
+
}[];
|
|
25061
|
+
error?: string;
|
|
25062
|
+
}[];
|
|
25063
|
+
succeededCount: number;
|
|
25064
|
+
failedCount: number;
|
|
25065
|
+
items: {
|
|
25066
|
+
productId: string;
|
|
25067
|
+
success: boolean;
|
|
25068
|
+
survivingProductId?: string;
|
|
25069
|
+
/** @enum {string} */
|
|
25070
|
+
disposition?: "survivor" | "merged";
|
|
25071
|
+
error?: string;
|
|
25072
|
+
}[];
|
|
25073
|
+
queued?: boolean;
|
|
25074
|
+
correlations?: {
|
|
25075
|
+
/** @enum {string} */
|
|
25076
|
+
kind:
|
|
25077
|
+
| "inventory_job"
|
|
25078
|
+
| "price_event"
|
|
25079
|
+
| "price_book_sync"
|
|
25080
|
+
| "publish_job"
|
|
25081
|
+
| "delist_batch"
|
|
25082
|
+
| "store_switch"
|
|
25083
|
+
| "omni_delete"
|
|
25084
|
+
| "zalora_import"
|
|
25085
|
+
| "enrichment_batch"
|
|
25086
|
+
| "order_action"
|
|
25087
|
+
| "return_action";
|
|
25088
|
+
id: string;
|
|
25089
|
+
platform?: string;
|
|
25090
|
+
storeId?: string;
|
|
25091
|
+
productId?: string;
|
|
25092
|
+
productIds?: string[];
|
|
25093
|
+
externalIds?: string[];
|
|
25094
|
+
}[];
|
|
25095
|
+
message?: string;
|
|
25096
|
+
error?: string;
|
|
25097
|
+
explanation?: string;
|
|
25098
|
+
};
|
|
25099
|
+
error?: string;
|
|
25100
|
+
warnings: string[];
|
|
25101
|
+
recommendations: string[];
|
|
25102
|
+
links: {
|
|
25103
|
+
[key: string]: string;
|
|
25104
|
+
};
|
|
25105
|
+
};
|
|
25106
|
+
};
|
|
25107
|
+
};
|
|
25108
|
+
/** @description Invalid payload. */
|
|
25109
|
+
400: {
|
|
25110
|
+
headers: {
|
|
25111
|
+
[name: string]: unknown;
|
|
25112
|
+
};
|
|
25113
|
+
content?: never;
|
|
25114
|
+
};
|
|
25115
|
+
/** @description Unauthorized */
|
|
25116
|
+
401: {
|
|
25117
|
+
headers: {
|
|
25118
|
+
[name: string]: unknown;
|
|
25119
|
+
};
|
|
25120
|
+
content?: never;
|
|
25121
|
+
};
|
|
25122
|
+
/** @description Credential lacks catalog:write. */
|
|
25123
|
+
403: {
|
|
25124
|
+
headers: {
|
|
25125
|
+
[name: string]: unknown;
|
|
25126
|
+
};
|
|
25127
|
+
content?: never;
|
|
25128
|
+
};
|
|
25129
|
+
/** @description Internal Server Error */
|
|
25130
|
+
500: {
|
|
25131
|
+
headers: {
|
|
25132
|
+
[name: string]: unknown;
|
|
25133
|
+
};
|
|
25134
|
+
content?: never;
|
|
25135
|
+
};
|
|
25136
|
+
};
|
|
25137
|
+
};
|
|
25138
|
+
post_v1_products_duplicates_merge_preview: {
|
|
25139
|
+
parameters: {
|
|
25140
|
+
query?: never;
|
|
25141
|
+
header?: never;
|
|
25142
|
+
path?: never;
|
|
25143
|
+
cookie?: never;
|
|
25144
|
+
};
|
|
25145
|
+
requestBody: {
|
|
25146
|
+
content: {
|
|
25147
|
+
/**
|
|
25148
|
+
* @example {
|
|
25149
|
+
* "productIds": [
|
|
25150
|
+
* "4d3c2b1a-0000-4000-8000-000000000001",
|
|
25151
|
+
* "4d3c2b1a-0000-4000-8000-000000000002"
|
|
25152
|
+
* ],
|
|
25153
|
+
* "masterProductIds": [
|
|
25154
|
+
* "4d3c2b1a-0000-4000-8000-000000000002"
|
|
25155
|
+
* ]
|
|
25156
|
+
* }
|
|
25157
|
+
*/
|
|
25158
|
+
"application/json": {
|
|
25159
|
+
/**
|
|
25160
|
+
* @description Required for variant products. Keep the master's variants, or add compatible source variants. Both publish the resulting variants to every preserved store listing in the same operation. Choose a master with existing variants; unmatched SKUs and conflicting options block merging. Standalone-only merges do not publish.
|
|
25161
|
+
* @enum {string}
|
|
25162
|
+
*/
|
|
25163
|
+
variantStrategy?: "keep_master" | "merge_variants";
|
|
25164
|
+
/** @description True runs the same merge transaction and rolls it back, including database reference/constraint validation. No product changes are saved, no mutation events or duplicate refreshes run, and marketplace listings stay unchanged. Requires catalog:write. Omitted/false performs the reviewed merge. This differs from CLI --dry-run, which only prints a request. */
|
|
25165
|
+
dryRun?: boolean;
|
|
25166
|
+
/** @description Required only for session-authenticated calls. API credentials use their own organization. */
|
|
25167
|
+
organizationId?: string;
|
|
25168
|
+
/** @description Ordered root catalog product IDs. Products are grouped by exact SKU; each group merges into one master. */
|
|
25169
|
+
productIds: string[];
|
|
25170
|
+
/** @description Optional master per SKU group, chosen from productIds; at most one per group. Defaults to the first requested product of each group. The master keeps its content, images, price and stock. */
|
|
25171
|
+
masterProductIds?: string[];
|
|
25172
|
+
/** @description Optional groups from a preview to pin: membership, master (first product) and SKU. Groups that changed or are omitted are not merged. */
|
|
25173
|
+
expectedGroups?: {
|
|
25174
|
+
productIds: string[];
|
|
25175
|
+
sku: string;
|
|
25176
|
+
/** @description Variant/store plan version from the preview. Required when pinning a variant merge; changes fail before catalog writes. */
|
|
25177
|
+
variantPlanVersion?: string;
|
|
25178
|
+
}[];
|
|
25179
|
+
explanation?: string;
|
|
25180
|
+
};
|
|
25181
|
+
};
|
|
25182
|
+
};
|
|
25183
|
+
responses: {
|
|
25184
|
+
/** @description Read-only preview, including product details, per-store listings and structured master eligibility. ok=false is a domain-level block; inspect data.groups even then. */
|
|
25185
|
+
200: {
|
|
25186
|
+
headers: {
|
|
25187
|
+
[name: string]: unknown;
|
|
25188
|
+
};
|
|
25189
|
+
content: {
|
|
25190
|
+
"application/json": {
|
|
25191
|
+
ok: boolean;
|
|
25192
|
+
apiVersion: string;
|
|
25193
|
+
operationId: string;
|
|
25194
|
+
/** @enum {string} */
|
|
25195
|
+
status: "accepted" | "completed" | "failed";
|
|
25196
|
+
data: {
|
|
25197
|
+
success: boolean;
|
|
25198
|
+
productIds: string[];
|
|
25199
|
+
survivingProductId: string | null;
|
|
25200
|
+
products: {
|
|
25201
|
+
productId: string;
|
|
25202
|
+
name: string;
|
|
25203
|
+
sku: string | null;
|
|
25204
|
+
imageUrl: string | null;
|
|
25205
|
+
price: string | null;
|
|
25206
|
+
currency: string | null;
|
|
25207
|
+
inventoryQuantity: number | null;
|
|
25208
|
+
variantCount?: number;
|
|
25209
|
+
marketplaces: {
|
|
25210
|
+
/** @enum {string} */
|
|
25211
|
+
platform:
|
|
25212
|
+
| "shopee"
|
|
25213
|
+
| "lazada"
|
|
25214
|
+
| "tiktok"
|
|
25215
|
+
| "shopify"
|
|
25216
|
+
| "whatsapp"
|
|
25217
|
+
| "zalora"
|
|
25218
|
+
| "amazon"
|
|
25219
|
+
| "ebay";
|
|
25220
|
+
storeId: string | null;
|
|
25221
|
+
itemId: string | null;
|
|
25222
|
+
live: boolean;
|
|
25223
|
+
}[];
|
|
25224
|
+
}[];
|
|
25225
|
+
error?: string;
|
|
25226
|
+
groups: {
|
|
25227
|
+
success: boolean;
|
|
25228
|
+
productIds: string[];
|
|
25229
|
+
survivingProductId: string | null;
|
|
25230
|
+
products: {
|
|
25231
|
+
productId: string;
|
|
25232
|
+
name: string;
|
|
25233
|
+
sku: string | null;
|
|
25234
|
+
imageUrl: string | null;
|
|
25235
|
+
price: string | null;
|
|
25236
|
+
currency: string | null;
|
|
25237
|
+
inventoryQuantity: number | null;
|
|
25238
|
+
variantCount?: number;
|
|
25239
|
+
marketplaces: {
|
|
25240
|
+
/** @enum {string} */
|
|
25241
|
+
platform:
|
|
25242
|
+
| "shopee"
|
|
25243
|
+
| "lazada"
|
|
25244
|
+
| "tiktok"
|
|
25245
|
+
| "shopify"
|
|
25246
|
+
| "whatsapp"
|
|
25247
|
+
| "zalora"
|
|
25248
|
+
| "amazon"
|
|
25249
|
+
| "ebay";
|
|
25250
|
+
storeId: string | null;
|
|
25251
|
+
itemId: string | null;
|
|
25252
|
+
live: boolean;
|
|
25253
|
+
}[];
|
|
25254
|
+
}[];
|
|
25255
|
+
error?: string;
|
|
25256
|
+
sku: string | null;
|
|
25257
|
+
masterSelections?: {
|
|
25258
|
+
productId: string;
|
|
25259
|
+
allowed: boolean;
|
|
25260
|
+
note: string | null;
|
|
25261
|
+
}[];
|
|
25262
|
+
/** @constant */
|
|
25263
|
+
errorCode?: "stock_source_requires_master";
|
|
25264
|
+
variantPlanVersion?: string;
|
|
25265
|
+
/** @enum {string} */
|
|
25266
|
+
variantStrategy?: "keep_master" | "merge_variants";
|
|
25267
|
+
variants?: {
|
|
25268
|
+
productId: string;
|
|
25269
|
+
sku: string | null;
|
|
25270
|
+
variationAttributes: {
|
|
25271
|
+
[key: string]: string;
|
|
25272
|
+
};
|
|
25273
|
+
price?: string | null;
|
|
25274
|
+
currency?: string | null;
|
|
25275
|
+
inventoryQuantity?: number | null;
|
|
25276
|
+
}[];
|
|
25277
|
+
publishTargets?: {
|
|
25278
|
+
/** @enum {string} */
|
|
25279
|
+
platform:
|
|
25280
|
+
| "shopee"
|
|
25281
|
+
| "lazada"
|
|
25282
|
+
| "tiktok"
|
|
25283
|
+
| "shopify"
|
|
25284
|
+
| "whatsapp"
|
|
25285
|
+
| "zalora"
|
|
25286
|
+
| "amazon"
|
|
25287
|
+
| "ebay";
|
|
25288
|
+
storeId: string;
|
|
25289
|
+
itemId: string;
|
|
25290
|
+
/** @enum {string} */
|
|
25291
|
+
visibility: "live" | "draft";
|
|
25292
|
+
}[];
|
|
25293
|
+
}[];
|
|
25294
|
+
};
|
|
25295
|
+
error?: string;
|
|
25296
|
+
warnings: string[];
|
|
25297
|
+
recommendations: string[];
|
|
25298
|
+
links: {
|
|
25299
|
+
[key: string]: string;
|
|
25300
|
+
};
|
|
25301
|
+
};
|
|
25302
|
+
};
|
|
25303
|
+
};
|
|
25304
|
+
/** @description Invalid payload. */
|
|
25305
|
+
400: {
|
|
25306
|
+
headers: {
|
|
25307
|
+
[name: string]: unknown;
|
|
25308
|
+
};
|
|
25309
|
+
content?: never;
|
|
25310
|
+
};
|
|
25311
|
+
/** @description Unauthorized */
|
|
25312
|
+
401: {
|
|
25313
|
+
headers: {
|
|
25314
|
+
[name: string]: unknown;
|
|
25315
|
+
};
|
|
25316
|
+
content?: never;
|
|
25317
|
+
};
|
|
25318
|
+
/** @description Credential lacks catalog:read. */
|
|
25319
|
+
403: {
|
|
25320
|
+
headers: {
|
|
25321
|
+
[name: string]: unknown;
|
|
25322
|
+
};
|
|
25323
|
+
content?: never;
|
|
25324
|
+
};
|
|
25325
|
+
/** @description Internal Server Error */
|
|
25326
|
+
500: {
|
|
25327
|
+
headers: {
|
|
25328
|
+
[name: string]: unknown;
|
|
25329
|
+
};
|
|
25330
|
+
content?: never;
|
|
25331
|
+
};
|
|
25332
|
+
};
|
|
25333
|
+
};
|
|
25334
|
+
get_v1_products_duplicates_scan: {
|
|
25335
|
+
parameters: {
|
|
25336
|
+
query?: {
|
|
25337
|
+
/** @description Session-authenticated scope only; API credentials use their own organization. */
|
|
25338
|
+
organizationId?: string;
|
|
25339
|
+
};
|
|
25340
|
+
header?: never;
|
|
25341
|
+
path?: never;
|
|
25342
|
+
cookie?: never;
|
|
25343
|
+
};
|
|
25344
|
+
requestBody?: never;
|
|
25345
|
+
responses: {
|
|
25346
|
+
/** @description Current saved scan status. */
|
|
25347
|
+
200: {
|
|
25348
|
+
headers: {
|
|
25349
|
+
[name: string]: unknown;
|
|
25350
|
+
};
|
|
25351
|
+
content: {
|
|
25352
|
+
"application/json": {
|
|
25353
|
+
ok: boolean;
|
|
25354
|
+
apiVersion: string;
|
|
25355
|
+
operationId: string;
|
|
25356
|
+
/** @enum {string} */
|
|
25357
|
+
status: "accepted" | "completed" | "failed";
|
|
25358
|
+
data: {
|
|
25359
|
+
/** @enum {string} */
|
|
25360
|
+
status: "idle" | "queued" | "running" | "completed" | "failed";
|
|
25361
|
+
productCount: number;
|
|
25362
|
+
computedAt: string | null;
|
|
25363
|
+
requestedAt: string | null;
|
|
25364
|
+
errorMessage: string | null;
|
|
25365
|
+
};
|
|
25366
|
+
error?: string;
|
|
25367
|
+
warnings: string[];
|
|
25368
|
+
recommendations: string[];
|
|
25369
|
+
links: {
|
|
25370
|
+
[key: string]: string;
|
|
25371
|
+
};
|
|
25372
|
+
};
|
|
25373
|
+
};
|
|
25374
|
+
};
|
|
25375
|
+
/** @description Invalid request. */
|
|
25376
|
+
400: {
|
|
25377
|
+
headers: {
|
|
25378
|
+
[name: string]: unknown;
|
|
25379
|
+
};
|
|
25380
|
+
content?: never;
|
|
25381
|
+
};
|
|
25382
|
+
/** @description Unauthorized */
|
|
25383
|
+
401: {
|
|
25384
|
+
headers: {
|
|
25385
|
+
[name: string]: unknown;
|
|
25386
|
+
};
|
|
25387
|
+
content?: never;
|
|
25388
|
+
};
|
|
25389
|
+
/** @description Credential lacks catalog:read. */
|
|
25390
|
+
403: {
|
|
25391
|
+
headers: {
|
|
25392
|
+
[name: string]: unknown;
|
|
25393
|
+
};
|
|
25394
|
+
content?: never;
|
|
25395
|
+
};
|
|
25396
|
+
/** @description Could not read scan status. */
|
|
25397
|
+
500: {
|
|
25398
|
+
headers: {
|
|
25399
|
+
[name: string]: unknown;
|
|
25400
|
+
};
|
|
25401
|
+
content?: never;
|
|
25402
|
+
};
|
|
25403
|
+
};
|
|
25404
|
+
};
|
|
25405
|
+
post_v1_products_duplicates_scan: {
|
|
25406
|
+
parameters: {
|
|
25407
|
+
query?: never;
|
|
25408
|
+
header?: never;
|
|
25409
|
+
path?: never;
|
|
25410
|
+
cookie?: never;
|
|
25411
|
+
};
|
|
25412
|
+
requestBody: {
|
|
25413
|
+
content: {
|
|
25414
|
+
/** @example {} */
|
|
25415
|
+
"application/json": {
|
|
25416
|
+
/** @description Required for session authentication; API credentials use their own organization. */
|
|
25417
|
+
organizationId?: string;
|
|
25418
|
+
};
|
|
25419
|
+
};
|
|
25420
|
+
};
|
|
25421
|
+
responses: {
|
|
25422
|
+
/** @description Scan status. */
|
|
25423
|
+
200: {
|
|
25424
|
+
headers: {
|
|
25425
|
+
[name: string]: unknown;
|
|
25426
|
+
};
|
|
25427
|
+
content: {
|
|
25428
|
+
"application/json": {
|
|
25429
|
+
ok: boolean;
|
|
25430
|
+
apiVersion: string;
|
|
25431
|
+
operationId: string;
|
|
25432
|
+
/** @enum {string} */
|
|
25433
|
+
status: "accepted" | "completed" | "failed";
|
|
25434
|
+
data: {
|
|
25435
|
+
/** @enum {string} */
|
|
25436
|
+
status: "idle" | "queued" | "running" | "completed" | "failed";
|
|
25437
|
+
productCount: number;
|
|
25438
|
+
computedAt: string | null;
|
|
25439
|
+
requestedAt: string | null;
|
|
25440
|
+
errorMessage: string | null;
|
|
25441
|
+
};
|
|
25442
|
+
error?: string;
|
|
25443
|
+
warnings: string[];
|
|
25444
|
+
recommendations: string[];
|
|
25445
|
+
links: {
|
|
25446
|
+
[key: string]: string;
|
|
25447
|
+
};
|
|
25448
|
+
};
|
|
25449
|
+
};
|
|
25450
|
+
};
|
|
25451
|
+
/** @description Durable scan queued or already running. */
|
|
25452
|
+
202: {
|
|
25453
|
+
headers: {
|
|
25454
|
+
[name: string]: unknown;
|
|
25455
|
+
};
|
|
25456
|
+
content: {
|
|
25457
|
+
"application/json": {
|
|
25458
|
+
ok: boolean;
|
|
25459
|
+
apiVersion: string;
|
|
25460
|
+
operationId: string;
|
|
25461
|
+
/** @enum {string} */
|
|
25462
|
+
status: "accepted" | "completed" | "failed";
|
|
25463
|
+
data: {
|
|
25464
|
+
/** @enum {string} */
|
|
25465
|
+
status: "idle" | "queued" | "running" | "completed" | "failed";
|
|
25466
|
+
productCount: number;
|
|
25467
|
+
computedAt: string | null;
|
|
25468
|
+
requestedAt: string | null;
|
|
25469
|
+
errorMessage: string | null;
|
|
25470
|
+
};
|
|
25471
|
+
error?: string;
|
|
25472
|
+
warnings: string[];
|
|
25473
|
+
recommendations: string[];
|
|
25474
|
+
links: {
|
|
25475
|
+
[key: string]: string;
|
|
25476
|
+
};
|
|
25477
|
+
};
|
|
25478
|
+
};
|
|
25479
|
+
};
|
|
25480
|
+
/** @description Invalid request. */
|
|
25481
|
+
400: {
|
|
25482
|
+
headers: {
|
|
25483
|
+
[name: string]: unknown;
|
|
25484
|
+
};
|
|
25485
|
+
content?: never;
|
|
25486
|
+
};
|
|
25487
|
+
/** @description Unauthorized */
|
|
25488
|
+
401: {
|
|
25489
|
+
headers: {
|
|
25490
|
+
[name: string]: unknown;
|
|
25491
|
+
};
|
|
25492
|
+
content?: never;
|
|
25493
|
+
};
|
|
25494
|
+
/** @description Credential lacks catalog:write. */
|
|
25495
|
+
403: {
|
|
25496
|
+
headers: {
|
|
25497
|
+
[name: string]: unknown;
|
|
25498
|
+
};
|
|
25499
|
+
content?: never;
|
|
25500
|
+
};
|
|
25501
|
+
/** @description Could not queue the scan. */
|
|
25502
|
+
500: {
|
|
25503
|
+
headers: {
|
|
25504
|
+
[name: string]: unknown;
|
|
25505
|
+
};
|
|
25506
|
+
content?: never;
|
|
25507
|
+
};
|
|
25508
|
+
};
|
|
25509
|
+
};
|
|
23438
25510
|
post_v1_products_enrich: {
|
|
23439
25511
|
parameters: {
|
|
23440
25512
|
query?: never;
|
|
@@ -28319,10 +30391,10 @@ interface operations {
|
|
|
28319
30391
|
[key: string]: unknown;
|
|
28320
30392
|
};
|
|
28321
30393
|
/**
|
|
28322
|
-
* @
|
|
30394
|
+
* @description When omitted, use the merchant's configured payment destination: Stripe, Qashier, HitPay, then x402.
|
|
28323
30395
|
* @enum {string}
|
|
28324
30396
|
*/
|
|
28325
|
-
payment_rail?: "acp_stripe" | "x402";
|
|
30397
|
+
payment_rail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
28326
30398
|
metadata?: {
|
|
28327
30399
|
[key: string]: unknown;
|
|
28328
30400
|
};
|
|
@@ -28579,7 +30651,7 @@ interface operations {
|
|
|
28579
30651
|
[key: string]: unknown;
|
|
28580
30652
|
};
|
|
28581
30653
|
/** @enum {string} */
|
|
28582
|
-
payment_rail?: "acp_stripe" | "x402";
|
|
30654
|
+
payment_rail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
28583
30655
|
metadata?: {
|
|
28584
30656
|
[key: string]: unknown;
|
|
28585
30657
|
};
|
|
@@ -28730,7 +30802,7 @@ interface operations {
|
|
|
28730
30802
|
[key: string]: unknown;
|
|
28731
30803
|
};
|
|
28732
30804
|
/** @enum {string} */
|
|
28733
|
-
payment_rail?: "acp_stripe" | "x402";
|
|
30805
|
+
payment_rail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
28734
30806
|
metadata?: {
|
|
28735
30807
|
[key: string]: unknown;
|
|
28736
30808
|
};
|
|
@@ -30401,6 +32473,31 @@ declare class AgentsClient {
|
|
|
30401
32473
|
protected readonly _http: OmniHttp;
|
|
30402
32474
|
readonly general: AgentsGeneralClient;
|
|
30403
32475
|
constructor(_http: OmniHttp);
|
|
32476
|
+
/**
|
|
32477
|
+
* Send a message to an agent
|
|
32478
|
+
*
|
|
32479
|
+
* Message the exact built-in or custom agent in the URL, using its saved model, instructions, tools, permissions and Programmatic starting mode.
|
|
32480
|
+
|
|
32481
|
+
### Authentication
|
|
32482
|
+
Requires an API key with `agents:invoke`, or a sign-in session. Organization-owned keys use their recorded creator's current membership and agent access; keys without a valid owner are refused. API keys identify their organization; session requests include `organizationId`.
|
|
32483
|
+
|
|
32484
|
+
### Conversation and execution
|
|
32485
|
+
- The same caller, agent and `clientThreadKey` continue one conversation. Different callers, agents and organizations are isolated.
|
|
32486
|
+
- No model, prompt or tool overrides are accepted.
|
|
32487
|
+
- `wait=false` queues durable work and returns 202; `wait=true` returns the final reply or pending approvals.
|
|
32488
|
+
- Send `decisions` with the same `cli
|
|
32489
|
+
*
|
|
32490
|
+
* `POST /api/v1/agents/{agentId}/messages`
|
|
32491
|
+
*/
|
|
32492
|
+
messages(request: OperationPath<operations["post_v1_agents_by_agentid_messages"]> & OperationBody<operations["post_v1_agents_by_agentid_messages"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_agents_by_agentid_messages"]>>;
|
|
32493
|
+
/**
|
|
32494
|
+
* Get an agent message run
|
|
32495
|
+
*
|
|
32496
|
+
* Read an agent message run belonging to the authenticated caller and the exact agent in the URL. Current organization membership and agent sharing are checked again. Requires agents:invoke.
|
|
32497
|
+
*
|
|
32498
|
+
* `GET /api/v1/agents/{agentId}/runs/{runId}`
|
|
32499
|
+
*/
|
|
32500
|
+
getRuns(request: OperationPath<operations["get_v1_agents_by_agentid_runs_by_runid"]> & OperationQuery<operations["get_v1_agents_by_agentid_runs_by_runid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_agents_by_agentid_runs_by_runid"]>>;
|
|
30404
32501
|
}
|
|
30405
32502
|
declare class AnalyticsClient {
|
|
30406
32503
|
protected readonly _http: OmniHttp;
|
|
@@ -30598,7 +32695,7 @@ declare class ApiClient {
|
|
|
30598
32695
|
*
|
|
30599
32696
|
* ### Operations
|
|
30600
32697
|
|
|
30601
|
-
create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe
|
|
32698
|
+
create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe, Qashier or HitPay hosted payment.
|
|
30602
32699
|
|
|
30603
32700
|
### Results and safeguards
|
|
30604
32701
|
|
|
@@ -30606,7 +32703,7 @@ declare class ApiClient {
|
|
|
30606
32703
|
|
|
30607
32704
|
### Payment
|
|
30608
32705
|
|
|
30609
|
-
Completion
|
|
32706
|
+
Completion uses the configured Stripe ACP, x402, Qashier or HitPay rail. Qashi
|
|
30610
32707
|
*
|
|
30611
32708
|
* `POST /api/embed/{deploymentId}/checkout-sessions/{operation}`
|
|
30612
32709
|
*/
|
|
@@ -30692,7 +32789,13 @@ declare class BulkClient {
|
|
|
30692
32789
|
/**
|
|
30693
32790
|
* Start Catalog Operation
|
|
30694
32791
|
*
|
|
30695
|
-
*
|
|
32792
|
+
* ### Scope
|
|
32793
|
+
|
|
32794
|
+
Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write.
|
|
32795
|
+
|
|
32796
|
+
### Consistency and progress
|
|
32797
|
+
|
|
32798
|
+
Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.
|
|
30696
32799
|
*
|
|
30697
32800
|
* `POST /api/v1/catalog/operations`
|
|
30698
32801
|
*/
|
|
@@ -30772,6 +32875,8 @@ declare class CampaignsClient {
|
|
|
30772
32875
|
*
|
|
30773
32876
|
* Read the same imported-order campaign analytics as the application. Monetary totals are partitioned by currency. Optional analyticsWindow selects one campaign window; voucher utilisation limitations are explicit.
|
|
30774
32877
|
|
|
32878
|
+
### Authorization
|
|
32879
|
+
|
|
30775
32880
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
30776
32881
|
*
|
|
30777
32882
|
* `GET /api/v1/campaigns/{campaignId}/analytics`
|
|
@@ -30782,6 +32887,8 @@ declare class CampaignsClient {
|
|
|
30782
32887
|
*
|
|
30783
32888
|
* Read the executing actor's campaign notification preference.
|
|
30784
32889
|
|
|
32890
|
+
### Authorization
|
|
32891
|
+
|
|
30785
32892
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
30786
32893
|
*
|
|
30787
32894
|
* `GET /api/v1/campaigns/{campaignId}/notifications`
|
|
@@ -30792,6 +32899,8 @@ declare class CampaignsClient {
|
|
|
30792
32899
|
*
|
|
30793
32900
|
* Set only the executing actor's campaign notification preference. Does not change campaign delivery or other members' preferences.
|
|
30794
32901
|
|
|
32902
|
+
### Authorization
|
|
32903
|
+
|
|
30795
32904
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
30796
32905
|
*
|
|
30797
32906
|
* `PUT /api/v1/campaigns/{campaignId}/notifications`
|
|
@@ -30802,6 +32911,8 @@ declare class CampaignsClient {
|
|
|
30802
32911
|
*
|
|
30803
32912
|
* Filter and page the canonical campaign plan or pending live proposal, with the same attention rules as the campaign editor.
|
|
30804
32913
|
|
|
32914
|
+
### Authorization
|
|
32915
|
+
|
|
30805
32916
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
30806
32917
|
*
|
|
30807
32918
|
* `GET /api/v1/campaigns/{campaignId}/offers`
|
|
@@ -30812,6 +32923,8 @@ declare class CampaignsClient {
|
|
|
30812
32923
|
*
|
|
30813
32924
|
* Apply one action to 1–20 reviewed targets. Approve, run, approve_and_run, end, resume, retry, approve_change, discard_change, archive, restore or delete. Requires each expectedRevision and the pending version for live-change decisions. Named-approver and current role/store checks remain enforced. Duplicates execute once; partial failures remain explicit. Starting queues durable delivery; inspect campaign executions to verify marketplace outcomes.
|
|
30814
32925
|
|
|
32926
|
+
### Authorization
|
|
32927
|
+
|
|
30815
32928
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
30816
32929
|
*
|
|
30817
32930
|
* `POST /api/v1/campaigns/actions`
|
|
@@ -30838,6 +32951,8 @@ declare class CampaignsClient {
|
|
|
30838
32951
|
*
|
|
30839
32952
|
* Import 1–10 uploaded Excel document IDs. Preview defaults to true; set preview=false to save. Re-upload one document with campaignId to update a campaign. To apply a running campaign immediately, use applyChanges=true with the reviewed expectedRevision and expectedPendingVersion (null when none); only the named approver with publish permission may apply. Changed values and qualifying SKU removals use canonical marketplace validation and durable sync. Requires documents:read in addition to promotions:write. No browser session is required.
|
|
30840
32953
|
|
|
32954
|
+
### Authorization
|
|
32955
|
+
|
|
30841
32956
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
30842
32957
|
*
|
|
30843
32958
|
* `POST /api/v1/campaigns/import`
|
|
@@ -30856,6 +32971,8 @@ declare class CampaignsClient {
|
|
|
30856
32971
|
*
|
|
30857
32972
|
* Read 1–50 eligible draft promotions as campaign offers without creating or publishing promotions. Exact organization/store ownership and existing campaign links are checked.
|
|
30858
32973
|
|
|
32974
|
+
### Authorization
|
|
32975
|
+
|
|
30859
32976
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
30860
32977
|
*
|
|
30861
32978
|
* `POST /api/v1/campaigns/promotion-options`
|
|
@@ -30866,6 +32983,8 @@ declare class CampaignsClient {
|
|
|
30866
32983
|
*
|
|
30867
32984
|
* Read-only preflight of 1–10 saved campaign IDs or proposed plans. Uses the same readiness, connected-store and offer validation as approval. shiftToNow returns a proposed shifted plan; syncMode=campaign_start selects Full sync. Neither option saves or publishes. Save the returned plan with the reviewed revision before approve_and_run. Current marketplace delivery is separate execution evidence.
|
|
30868
32985
|
|
|
32986
|
+
### Authorization
|
|
32987
|
+
|
|
30869
32988
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
30870
32989
|
*
|
|
30871
32990
|
* `POST /api/v1/campaigns/validate`
|
|
@@ -30885,10 +33004,20 @@ declare class CatalogClient {
|
|
|
30885
33004
|
* `GET /api/v1/catalog/items`
|
|
30886
33005
|
*/
|
|
30887
33006
|
listItems(request?: OperationQuery<operations["get_v1_catalog_items"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_catalog_items"]>>;
|
|
33007
|
+
/**
|
|
33008
|
+
* Get Public Product Details
|
|
33009
|
+
*
|
|
33010
|
+
* Read the same stored public product details as /catalog/{productId}, including product capabilities, FAQs, localizations, citations, variants, recorded prices, stock and marketplace offers. No account or AI generation. Missing products are explicit per-target failures.
|
|
33011
|
+
*
|
|
33012
|
+
* `GET /api/v1/catalog/products`
|
|
33013
|
+
*/
|
|
33014
|
+
listProducts(request: OperationQuery<operations["get_v1_catalog_products"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_catalog_products"]>>;
|
|
30888
33015
|
/**
|
|
30889
33016
|
* Query Catalog
|
|
30890
33017
|
*
|
|
30891
|
-
* Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match.
|
|
33018
|
+
* Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match.
|
|
33019
|
+
|
|
33020
|
+
Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
|
|
30892
33021
|
*
|
|
30893
33022
|
* `POST /api/v1/catalog/query`
|
|
30894
33023
|
*/
|
|
@@ -30945,6 +33074,18 @@ declare class CheckoutSessionsClient {
|
|
|
30945
33074
|
* `POST /api/v1/checkout-sessions/{sessionId}/complete`
|
|
30946
33075
|
*/
|
|
30947
33076
|
complete(request: OperationPath<operations["post_v1_checkout_sessions_by_sessionid_complete"]> & OperationQuery<operations["post_v1_checkout_sessions_by_sessionid_complete"]> & OperationBody<operations["post_v1_checkout_sessions_by_sessionid_complete"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_checkout_sessions_by_sessionid_complete"]>>;
|
|
33077
|
+
/**
|
|
33078
|
+
* Start payment for an approved checkout offer
|
|
33079
|
+
*
|
|
33080
|
+
* Requires checkout:write.
|
|
33081
|
+
|
|
33082
|
+
Starts seller Stripe, Qashier or HitPay hosted checkout. Buyer approval must match the current cart version, total and currency. Qashier and HitPay require a full delivery address before payment.
|
|
33083
|
+
|
|
33084
|
+
Qashier and HitPay support PayNow in Singapore when enabled for the merchant. Payment is confirmed using signed webhooks and authenticated server-side receipts. Closing the buyer page does not cancel or complete payment.
|
|
33085
|
+
*
|
|
33086
|
+
* `POST /api/v1/checkout-sessions/{sessionId}/pay`
|
|
33087
|
+
*/
|
|
33088
|
+
pay(request: OperationPath<operations["post_v1_checkout_sessions_by_sessionid_pay"]> & OperationBody<operations["post_v1_checkout_sessions_by_sessionid_pay"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_checkout_sessions_by_sessionid_pay"]>>;
|
|
30948
33089
|
}
|
|
30949
33090
|
declare class CommerceClient {
|
|
30950
33091
|
protected readonly _http: OmniHttp;
|
|
@@ -30984,7 +33125,9 @@ declare class CommerceClient {
|
|
|
30984
33125
|
/**
|
|
30985
33126
|
* Start Commerce Verification
|
|
30986
33127
|
*
|
|
30987
|
-
* Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read.
|
|
33128
|
+
* Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read.
|
|
33129
|
+
|
|
33130
|
+
Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
|
|
30988
33131
|
*
|
|
30989
33132
|
* `POST /api/v1/commerce/state/verify/jobs`
|
|
30990
33133
|
*/
|
|
@@ -31030,7 +33173,9 @@ declare class DocumentsClient {
|
|
|
31030
33173
|
/**
|
|
31031
33174
|
* Get Document
|
|
31032
33175
|
*
|
|
31033
|
-
* Read one knowledge base document and its indexing status. Requires `documents:read`.
|
|
33176
|
+
* Read one knowledge base document and its indexing status. Requires `documents:read`.
|
|
33177
|
+
|
|
33178
|
+
Set includeDownloadUrl=true for a private file URL valid for five minutes, suitable for SDK file downloads. URLs are scoped to the authenticated organization and are not returned for bank statements. Responses must not be cached.
|
|
31034
33179
|
*
|
|
31035
33180
|
* `GET /api/v1/documents/{documentId}`
|
|
31036
33181
|
*/
|
|
@@ -31060,6 +33205,54 @@ declare class FeedClient {
|
|
|
31060
33205
|
*/
|
|
31061
33206
|
getLlmsTxt(request: OperationPath<operations["get_v1_feed_by_domain_llms_txt"]> & OperationQuery<operations["get_v1_feed_by_domain_llms_txt"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_feed_by_domain_llms_txt"]>>;
|
|
31062
33207
|
}
|
|
33208
|
+
declare class FollowUpsClient {
|
|
33209
|
+
protected readonly _http: OmniHttp;
|
|
33210
|
+
constructor(_http: OmniHttp);
|
|
33211
|
+
/**
|
|
33212
|
+
* List Follow-ups
|
|
33213
|
+
*
|
|
33214
|
+
* Your follow-ups on every conversation, plus every follow-up on `threadId` (whoever left it) when you can open that conversation. Waiting follow-ups come first.
|
|
33215
|
+
|
|
33216
|
+
`state` is `waiting`, `fired`, `expired` (it waited past `expiresAt`), `canceled` or `failed` (`failure` says why: its owner lost access, or the conversation was stopped or its last run failed).
|
|
33217
|
+
|
|
33218
|
+
### Authorization
|
|
33219
|
+
|
|
33220
|
+
Requires `agents:invoke`.
|
|
33221
|
+
*
|
|
33222
|
+
* `GET /api/v1/follow-ups`
|
|
33223
|
+
*/
|
|
33224
|
+
list(request?: OperationQuery<operations["get_v1_follow_ups"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_follow_ups"]>>;
|
|
33225
|
+
/**
|
|
33226
|
+
* Create Follow-up
|
|
33227
|
+
*
|
|
33228
|
+
* Leave a one-shot follow-up on an assistant conversation you can open. Give exactly one of `at` (ISO 8601 with a timezone), `after` (a duration such as 90m, 4h, 14d or 2w) or `eventType` with an optional CEL `match` over `event` (the event's condition fields, as in AOP event triggers).
|
|
33229
|
+
|
|
33230
|
+
When it fires it continues `threadId` from `note` as you (`then=resume`, the default) or only emails you (`then=notify`). It never interrupts a run in progress: the continuation waits in the conversation's queue. A stopped conversation, or one whose last run failed, is not continued.
|
|
33231
|
+
|
|
33232
|
+
An event follow-up waits `expires` (10d by default) for its event; a timed one may be at most a year ahead.
|
|
33233
|
+
|
|
33234
|
+
### Authorization
|
|
33235
|
+
|
|
33236
|
+
Requires `agents:invoke` with a person's credential (API key or session); OAuth client credentials
|
|
33237
|
+
*
|
|
33238
|
+
* `POST /api/v1/follow-ups`
|
|
33239
|
+
*/
|
|
33240
|
+
create(request: OperationBody<operations["post_v1_follow_ups"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_follow_ups"]>>;
|
|
33241
|
+
/**
|
|
33242
|
+
* Cancel Follow-ups
|
|
33243
|
+
*
|
|
33244
|
+
* Cancel your follow-ups that have not fired, so they never fire. One that already fired, expired or was canceled reports why per id; another person's follow-up reads as not found.
|
|
33245
|
+
|
|
33246
|
+
Returns `followUpIds`, `succeededCount`, `failedCount` and ordered `results`; `ok` is true only when every id was canceled.
|
|
33247
|
+
|
|
33248
|
+
### Authorization
|
|
33249
|
+
|
|
33250
|
+
Requires `agents:invoke`.
|
|
33251
|
+
*
|
|
33252
|
+
* `POST /api/v1/follow-ups/cancel`
|
|
33253
|
+
*/
|
|
33254
|
+
cancel(request: OperationBody<operations["post_v1_follow_ups_cancel"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_follow_ups_cancel"]>>;
|
|
33255
|
+
}
|
|
31063
33256
|
declare class ImagesClient {
|
|
31064
33257
|
protected readonly _http: OmniHttp;
|
|
31065
33258
|
constructor(_http: OmniHttp);
|
|
@@ -31440,7 +33633,13 @@ declare class PriceBooksClient {
|
|
|
31440
33633
|
*
|
|
31441
33634
|
* Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.
|
|
31442
33635
|
|
|
33636
|
+
### Pricing
|
|
33637
|
+
|
|
31443
33638
|
`expression` is the buyer formula and replaces markup percent. `price` in that formula is the catalog price, not cost price. Without an expression, `marginValue` is the markup percent.
|
|
33639
|
+
|
|
33640
|
+
### Direct checkout
|
|
33641
|
+
|
|
33642
|
+
The Direct checkout channel (`agentic_checkout`) applies immediately to direct checkout and public headline prices, defaults to catalog price with zero markup when no enabled rule matches, and requires null/omitted storeId and country. Marketplace rules only price their own offers; Direct checkout rules require no marketplace sync.
|
|
31444
33643
|
*
|
|
31445
33644
|
* `POST /api/v1/price-books`
|
|
31446
33645
|
*/
|
|
@@ -31501,6 +33700,10 @@ declare class ProductsClient {
|
|
|
31501
33700
|
### Stock and variants
|
|
31502
33701
|
|
|
31503
33702
|
Rows are in `items`. Read catalog stock from `items[].stockQuantity`: parent rows already aggregate their non-deleted variants, and virtual bundles use component availability with any manual cap. Null means unknown, not zero. A row with `variantCount` above 0 has variants; fetch them from `GET /api/v1/products/{productId}`. List rows do not contain `inventoryQuantity`, `inventory.quantity`, or an embedded `variants` array.
|
|
33703
|
+
|
|
33704
|
+
### Duplicate discovery and merge
|
|
33705
|
+
|
|
33706
|
+
Use status=duplicates, duplicateType=sku and detail=full for exact-SKU candidates. Each root ro
|
|
31504
33707
|
*
|
|
31505
33708
|
* `GET /api/v1/products`
|
|
31506
33709
|
*/
|
|
@@ -31696,6 +33899,30 @@ declare class ProductsClient {
|
|
|
31696
33899
|
* `POST /api/v1/products/bulk-import/retry`
|
|
31697
33900
|
*/
|
|
31698
33901
|
retryBulkImport(request: OperationBody<operations["post_v1_products_bulk_import_retry"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_bulk_import_retry"]>>;
|
|
33902
|
+
/**
|
|
33903
|
+
* Get Bulk Product Update Options
|
|
33904
|
+
*
|
|
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.
|
|
33906
|
+
*
|
|
33907
|
+
* `GET /api/v1/products/bulk-update`
|
|
33908
|
+
*/
|
|
33909
|
+
bulkUpdateOptions(request?: OperationQuery<operations["get_v1_products_bulk_update"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_products_bulk_update"]>>;
|
|
33910
|
+
/**
|
|
33911
|
+
* Bulk Update Product Prices and Stock
|
|
33912
|
+
*
|
|
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
|
|
33914
|
+
*
|
|
33915
|
+
* `POST /api/v1/products/bulk-update`
|
|
33916
|
+
*/
|
|
33917
|
+
bulkUpdate(request: OperationBody<operations["post_v1_products_bulk_update"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_bulk_update"]>>;
|
|
33918
|
+
/**
|
|
33919
|
+
* Get Bulk Product Update Status
|
|
33920
|
+
*
|
|
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.
|
|
33922
|
+
*
|
|
33923
|
+
* `POST /api/v1/products/bulk-update/status`
|
|
33924
|
+
*/
|
|
33925
|
+
bulkUpdateStatus(request: OperationBody<operations["post_v1_products_bulk_update_status"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_bulk_update_status"]>>;
|
|
31699
33926
|
/**
|
|
31700
33927
|
* Compare Product Market Prices
|
|
31701
33928
|
*
|
|
@@ -31752,6 +33979,50 @@ declare class ProductsClient {
|
|
|
31752
33979
|
* `GET /api/v1/products/count`
|
|
31753
33980
|
*/
|
|
31754
33981
|
count(request?: OperationQuery<operations["get_v1_products_count"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_products_count"]>>;
|
|
33982
|
+
/**
|
|
33983
|
+
* Merge Duplicate Products
|
|
33984
|
+
*
|
|
33985
|
+
* Merge exact-SKU duplicate products into one master product per group. The master keeps its content, images, price and stock; the group's other products are archived into it, and orders, reviews, promotions and other catalog references move to the master.
|
|
33986
|
+
|
|
33987
|
+
All marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group. Standalone-only merges do not publish. When variants remain, variantStrategy selects keeping the master's variant set or merging compatible source variants, and the same operation automatically publishes the resulting variants to every preserved store listing. Live/draft visibility is retained; the marketplace may require a replacement listing for an incompatible variant s
|
|
33988
|
+
*
|
|
33989
|
+
* `POST /api/v1/products/duplicates/merge`
|
|
33990
|
+
*/
|
|
33991
|
+
mergeDuplicates(request: OperationBody<operations["post_v1_products_duplicates_merge"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_duplicates_merge"]>>;
|
|
33992
|
+
/**
|
|
33993
|
+
* Preview Duplicate Product Merge
|
|
33994
|
+
*
|
|
33995
|
+
* Read-only preview of merging duplicate catalog products into one master product. Uses the same contract and rules as `POST /api/v1/products/duplicates/merge` and the assistant's Fix Listing Duplicates tool.
|
|
33996
|
+
|
|
33997
|
+
Products are grouped by exact SKU. Each group shows its master (first in `productIds`), every product's marketplace listings per store with live status. A blocked group reports its `error`; nothing is changed.
|
|
33998
|
+
|
|
33999
|
+
Supports every OmniCommerce marketplace. All marketplace listings are preserved. Different listing identities in the same store block that group; the merge never delists listings.
|
|
34000
|
+
|
|
34001
|
+
Discover candidates with `GET /api/v1/products?status=duplicates&duplicateType=sku&detail=full`. Refresh the saved scan through `POST /api/v1/products/duplicates/scan` when needed. Each group's `maste
|
|
34002
|
+
*
|
|
34003
|
+
* `POST /api/v1/products/duplicates/merge-preview`
|
|
34004
|
+
*/
|
|
34005
|
+
previewDuplicateMerge(request: OperationBody<operations["post_v1_products_duplicates_merge_preview"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_duplicates_merge_preview"]>>;
|
|
34006
|
+
/**
|
|
34007
|
+
* Get Duplicate Scan
|
|
34008
|
+
*
|
|
34009
|
+
* Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read.
|
|
34010
|
+
|
|
34011
|
+
queued/running means the durable scan is still in progress; failed includes errorMessage. completed exposes computedAt and the number of duplicate products. Results are read through products.list with status=duplicates and detail=full. The shared UI scan currently examines at most the 5,000 most recently updated non-archived root products; a completed scan is not proof that a larger catalog has been fully examined.
|
|
34012
|
+
*
|
|
34013
|
+
* `GET /api/v1/products/duplicates/scan`
|
|
34014
|
+
*/
|
|
34015
|
+
getDuplicateScan(request?: OperationQuery<operations["get_v1_products_duplicates_scan"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_products_duplicates_scan"]>>;
|
|
34016
|
+
/**
|
|
34017
|
+
* Scan Duplicate Products
|
|
34018
|
+
*
|
|
34019
|
+
* Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write.
|
|
34020
|
+
|
|
34021
|
+
An already queued/running scan is reused. This only refreshes duplicate evidence; it does not merge, publish or delist products. Read completion with products.getDuplicateScan, then list status=duplicates, duplicateType=sku, detail=full and page all matching results before previewing a merge. Uses the same 5,000-candidate scan limit as the UI.
|
|
34022
|
+
*
|
|
34023
|
+
* `POST /api/v1/products/duplicates/scan`
|
|
34024
|
+
*/
|
|
34025
|
+
scanDuplicates(request: OperationBody<operations["post_v1_products_duplicates_scan"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_duplicates_scan"]>>;
|
|
31755
34026
|
/**
|
|
31756
34027
|
* Queue Product Enrichment
|
|
31757
34028
|
*
|
|
@@ -31856,6 +34127,8 @@ declare class PromotionsClient {
|
|
|
31856
34127
|
*
|
|
31857
34128
|
* Read canonical effective prices for up to 50 products, optionally scoped to an exact marketplace, store and country. Uses the same authoring permissions as the application's preview. Does not publish or change prices.
|
|
31858
34129
|
|
|
34130
|
+
### Authorization
|
|
34131
|
+
|
|
31859
34132
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31860
34133
|
*
|
|
31861
34134
|
* `POST /api/v1/promotions/{promotionId}/preview`
|
|
@@ -31880,7 +34153,9 @@ declare class PromotionsClient {
|
|
|
31880
34153
|
/**
|
|
31881
34154
|
* Assign Products to Promotion
|
|
31882
34155
|
*
|
|
31883
|
-
* Assign qualifying products and optional per-product discounts to a promotion. Active or scheduled promotions automatically queue durable marketplace delivery; drafts retain assignments for later publication.
|
|
34156
|
+
* Assign qualifying products and optional per-product discounts to a promotion. Active or scheduled promotions automatically queue durable marketplace delivery; drafts retain assignments for later publication.
|
|
34157
|
+
|
|
34158
|
+
Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.
|
|
31884
34159
|
*
|
|
31885
34160
|
* `POST /api/v1/promotions/{promotionId}/products`
|
|
31886
34161
|
*/
|
|
@@ -31900,6 +34175,8 @@ declare class PromotionsClient {
|
|
|
31900
34175
|
*
|
|
31901
34176
|
* Create 1–50 promotions using the shared flat promotion-write contract, with qualifying products and per-product discounts. Set promotion.status=draft explicitly when preparing drafts; otherwise the canonical creation flow activates promotions and requires publish permission. Saved IDs and delivery evidence are retained on partial delivery failure; retry those IDs rather than creating duplicates.
|
|
31902
34177
|
|
|
34178
|
+
### Authorization
|
|
34179
|
+
|
|
31903
34180
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31904
34181
|
*
|
|
31905
34182
|
* `POST /api/v1/promotions/batch`
|
|
@@ -31910,6 +34187,8 @@ declare class PromotionsClient {
|
|
|
31910
34187
|
*
|
|
31911
34188
|
* Search campaign options with assigned promotions in the authenticated organization.
|
|
31912
34189
|
|
|
34190
|
+
### Authorization
|
|
34191
|
+
|
|
31913
34192
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31914
34193
|
*
|
|
31915
34194
|
* `GET /api/v1/promotions/campaign-options`
|
|
@@ -31920,6 +34199,8 @@ declare class PromotionsClient {
|
|
|
31920
34199
|
*
|
|
31921
34200
|
* Report every canonical marketplace and promotion kind, including native, projected, browser-AOP and unsupported capabilities and voucher subtypes. WhatsApp's lack of promotion publishing is explicit.
|
|
31922
34201
|
|
|
34202
|
+
### Authorization
|
|
34203
|
+
|
|
31923
34204
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31924
34205
|
*
|
|
31925
34206
|
* `GET /api/v1/promotions/capabilities`
|
|
@@ -31930,6 +34211,8 @@ declare class PromotionsClient {
|
|
|
31930
34211
|
*
|
|
31931
34212
|
* Delete 1–500 promotions with the canonical marketplace cleanup flow. Requires promotions.delete permission. Ordered per-target errors and partial failures remain explicit.
|
|
31932
34213
|
|
|
34214
|
+
### Authorization
|
|
34215
|
+
|
|
31933
34216
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31934
34217
|
*
|
|
31935
34218
|
* `POST /api/v1/promotions/delete`
|
|
@@ -31940,6 +34223,8 @@ declare class PromotionsClient {
|
|
|
31940
34223
|
*
|
|
31941
34224
|
* Read exact store/assignment delivery evidence for 1–50 promotions. A saved or active promotion is not proof that marketplace delivery succeeded. Check every returned deliveryStatuses entry, including explicit unsupported or unavailable states.
|
|
31942
34225
|
|
|
34226
|
+
### Authorization
|
|
34227
|
+
|
|
31943
34228
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31944
34229
|
*
|
|
31945
34230
|
* `POST /api/v1/promotions/delivery`
|
|
@@ -31950,6 +34235,8 @@ declare class PromotionsClient {
|
|
|
31950
34235
|
*
|
|
31951
34236
|
* Search or check up to 50 product IDs using canonical promotion assignment eligibility for the selected exact stores. Draft/unlisted products can be eligible for planning; live marketplace availability is rechecked during delivery.
|
|
31952
34237
|
|
|
34238
|
+
### Authorization
|
|
34239
|
+
|
|
31953
34240
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31954
34241
|
*
|
|
31955
34242
|
* `POST /api/v1/promotions/product-options`
|
|
@@ -31960,6 +34247,8 @@ declare class PromotionsClient {
|
|
|
31960
34247
|
*
|
|
31961
34248
|
* Activate/publish, pause or archive 1–500 promotions. Activation requires promotions.publish permission. Uses the canonical status transition and durable marketplace sync/teardown flow; verify delivery separately.
|
|
31962
34249
|
|
|
34250
|
+
### Authorization
|
|
34251
|
+
|
|
31963
34252
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31964
34253
|
*
|
|
31965
34254
|
* `POST /api/v1/promotions/status`
|
|
@@ -31970,6 +34259,8 @@ declare class PromotionsClient {
|
|
|
31970
34259
|
*
|
|
31971
34260
|
* Read-only validation of 1–50 saved promotion IDs or proposed definitions and product IDs. Reports marketplace terms, connected-store targeting and qualifying-product issues per target. Publishing still revalidates current state and can encounter marketplace API rejections.
|
|
31972
34261
|
|
|
34262
|
+
### Authorization
|
|
34263
|
+
|
|
31973
34264
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31974
34265
|
*
|
|
31975
34266
|
* `POST /api/v1/promotions/validate`
|
|
@@ -32428,6 +34719,7 @@ declare class OmniGeneratedClient {
|
|
|
32428
34719
|
readonly documents: DocumentsClient;
|
|
32429
34720
|
readonly evaluate: EvaluateClient;
|
|
32430
34721
|
readonly feed: FeedClient;
|
|
34722
|
+
readonly followUps: FollowUpsClient;
|
|
32431
34723
|
readonly images: ImagesClient;
|
|
32432
34724
|
readonly inventory: InventoryClient;
|
|
32433
34725
|
readonly jobs: JobsClient;
|
|
@@ -32472,6 +34764,7 @@ type OmniResources = {
|
|
|
32472
34764
|
documents: DocumentsClient;
|
|
32473
34765
|
evaluate: EvaluateClient;
|
|
32474
34766
|
feed: FeedClient;
|
|
34767
|
+
followUps: FollowUpsClient;
|
|
32475
34768
|
images: ImagesClient;
|
|
32476
34769
|
inventory: InventoryClient;
|
|
32477
34770
|
jobs: JobsClient;
|
|
@@ -32540,7 +34833,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
|
|
|
32540
34833
|
toleranceInSeconds?: number;
|
|
32541
34834
|
}): Promise<ConstructedWebhookEvent>;
|
|
32542
34835
|
|
|
32543
|
-
declare const SDK_VERSION = "0.
|
|
34836
|
+
declare const SDK_VERSION = "0.23.0";
|
|
32544
34837
|
|
|
32545
34838
|
type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
|
|
32546
34839
|
type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];
|