@omni-commerce/cli 0.12.0 → 0.13.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 +6 -0
- package/dist/index.js +241 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -84,7 +84,7 @@ async function openBrowser(url) {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
// src/version.ts
|
|
87
|
-
var CLI_VERSION = "0.
|
|
87
|
+
var CLI_VERSION = "0.13.0";
|
|
88
88
|
|
|
89
89
|
// src/browser-login.ts
|
|
90
90
|
function loginOrigin(baseUrl) {
|
|
@@ -320,7 +320,7 @@ async function executeCommand(client, command2, request) {
|
|
|
320
320
|
method: command2.httpMethod,
|
|
321
321
|
path: interpolatePath(command2.path, pathValues),
|
|
322
322
|
query: Object.keys(query).length > 0 ? query : void 0,
|
|
323
|
-
body: command2.acceptsJsonBody && Object.keys(body).length > 0 ? body : void 0
|
|
323
|
+
body: command2.acceptsJsonBody && (command2.bodyRequired || Object.keys(body).length > 0) ? body : void 0
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
326
|
|
|
@@ -372,6 +372,7 @@ var COMMANDS = [
|
|
|
372
372
|
httpMethod: "GET",
|
|
373
373
|
path: "/api/embed/{deploymentId}/.well-known/agent-card.json",
|
|
374
374
|
summary: "Discover a published merchant agent",
|
|
375
|
+
description: "A2A 1.0 Agent Card for any configured agent published to a customer deployment. Private model settings, prompts and publisher identity are excluded.",
|
|
375
376
|
flags: [
|
|
376
377
|
{
|
|
377
378
|
name: "deploymentId",
|
|
@@ -391,6 +392,7 @@ var COMMANDS = [
|
|
|
391
392
|
httpMethod: "POST",
|
|
392
393
|
path: "/api/embed/{deploymentId}/a2a",
|
|
393
394
|
summary: "Call a merchant agent using A2A",
|
|
395
|
+
description: "Official A2A 1.0 JSON-RPC SendMessage, GetTask and CancelTask.\n\n### Authentication\n\nUses the existing customer JWT from /api/embed/{deploymentId}/session; send the same Origin when creating and using the session.\n\n### Messages\n\nSendMessage accepts text user messages with a UUID messageId and up to 4000 characters. For asynchronous execution set configuration.returnImmediately=true and retrieve the task. Every task is bound to the customer session.\n\nBot verification and storefront protection apply. Payment proofs belong in the checkout completion endpoint, outside model messages.\n\n### Signed offers and buyer agents\n\nPayable offers in purchase-offers artifacts include checkoutJwt when the platform signing key is configured. Requests may carry a Web Bot Auth signature; the verified agent origin is recorded on resulting offers and orders.",
|
|
394
396
|
flags: [
|
|
395
397
|
{
|
|
396
398
|
name: "deploymentId",
|
|
@@ -410,6 +412,7 @@ var COMMANDS = [
|
|
|
410
412
|
httpMethod: "POST",
|
|
411
413
|
path: "/api/embed/{deploymentId}/checkout-sessions/{operation}",
|
|
412
414
|
summary: "Manage customer-owned purchase offers",
|
|
415
|
+
description: "### Operations\n\ncreate: offers[] (1\u20135), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1\u201320). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe-hosted card entry.\n\n### Results and safeguards\n\nBatches return ordered per-target results, succeededCount and failedCount. At most ten unpaid offers may be held per customer. Merchant-approved currency, countries, shipping and tax terms are required. Shopify-listed products return the supported Shopify checkout handoff.\n\n### Payment\n\nCompletion reuses the existing Stripe ACP or x402 rail. 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.\n\n### Signed offers and buyer agents\n\nWhen the platform signing key is configured, payable offers include checkoutJwt: an ES256 JWT of the offer terms (merchant, cart_version, UCP line items and totals in minor units, expiry). Verify it with the /.well-known/ucp signing_keys entry named by its kid; it can serve as an AP2 checkout_jwt. Requests may carry a Web Bot Auth signature (Signature, Signature-Input and Signature-Agent headers); the verified agent origin is recorded on the offer and order.",
|
|
413
416
|
flags: [
|
|
414
417
|
{
|
|
415
418
|
name: "deploymentId",
|
|
@@ -435,6 +438,7 @@ var COMMANDS = [
|
|
|
435
438
|
httpMethod: "POST",
|
|
436
439
|
path: "/api/v1/agents/general/invoke",
|
|
437
440
|
summary: "Invoke the Omni agent",
|
|
441
|
+
description: 'Run the general Omni agent and wait until it completes, pauses for approval, or fails. Requires `agents:invoke`.\n\nA waiting call can take several minutes; raise the client timeout. Send `decisions` with the same `thread_id` to approve or reject a paused run. Omit `config.enabled_tools` to use the organization\'s agent tools. Attach images on the latest user message as `{ type: "image", url }` HTTP(S) URLs.',
|
|
438
442
|
flags: [],
|
|
439
443
|
acceptsJsonBody: true,
|
|
440
444
|
acceptsFile: false,
|
|
@@ -447,6 +451,7 @@ var COMMANDS = [
|
|
|
447
451
|
httpMethod: "POST",
|
|
448
452
|
path: "/api/v1/agents/general/runs",
|
|
449
453
|
summary: "Start an Omni agent run",
|
|
454
|
+
description: "Queue the general Omni agent and return immediately with the run in `queued` state. Poll the URL in the `Location` header (`GET /api/v1/agents/general/runs/{runId}`), honoring `Retry-After`. Requires `agents:invoke`. The request body matches invoke.",
|
|
450
455
|
flags: [],
|
|
451
456
|
acceptsJsonBody: true,
|
|
452
457
|
acceptsFile: false,
|
|
@@ -459,6 +464,7 @@ var COMMANDS = [
|
|
|
459
464
|
httpMethod: "GET",
|
|
460
465
|
path: "/api/v1/agents/general/runs/{runId}",
|
|
461
466
|
summary: "Get an Omni agent run",
|
|
467
|
+
description: "Read a queued, running, completed, paused, or failed Omni agent run. Requires `agents:invoke`.",
|
|
462
468
|
flags: [
|
|
463
469
|
{
|
|
464
470
|
name: "runId",
|
|
@@ -484,6 +490,7 @@ var COMMANDS = [
|
|
|
484
490
|
httpMethod: "GET",
|
|
485
491
|
path: "/api/v1/analytics/ads",
|
|
486
492
|
summary: "Get Ads Analytics",
|
|
493
|
+
description: "Ad spend, attributed sales, ROAS, and ACOS over the last 28 days, and per-product sales and ad metrics for today, yesterday, 7-day and 28-day averages, and the same day one and four weeks ago. Matches the Ads page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. The periods count back from the end of the range.",
|
|
487
494
|
flags: [
|
|
488
495
|
{
|
|
489
496
|
name: "organizationId",
|
|
@@ -545,6 +552,7 @@ var COMMANDS = [
|
|
|
545
552
|
httpMethod: "GET",
|
|
546
553
|
path: "/api/v1/analytics/ai-traffic",
|
|
547
554
|
summary: "Get AI Traffic Analytics",
|
|
555
|
+
description: "Visits and crawls from AI assistants and search engines: totals, a daily trend, breakdowns by source, route, country, and product, and recent events. Matches the AI Traffic page. Requires `analytics:read`.\n\nA range covers at most 365 days; a longer one is shortened to the last 365 days. Read the applied range from `data.filters`.",
|
|
548
556
|
flags: [
|
|
549
557
|
{
|
|
550
558
|
name: "organizationId",
|
|
@@ -606,6 +614,7 @@ var COMMANDS = [
|
|
|
606
614
|
httpMethod: "GET",
|
|
607
615
|
path: "/api/v1/analytics/content",
|
|
608
616
|
summary: "Get Video and LIVE Analytics",
|
|
617
|
+
description: "Views, product clicks, orders, and GMV from shoppable videos and LIVE streams, by day, by content type, and per video. Matches the Video / LIVE page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
|
|
609
618
|
flags: [
|
|
610
619
|
{
|
|
611
620
|
name: "organizationId",
|
|
@@ -667,6 +676,7 @@ var COMMANDS = [
|
|
|
667
676
|
httpMethod: "GET",
|
|
668
677
|
path: "/api/v1/analytics/orders",
|
|
669
678
|
summary: "Get Order Analytics",
|
|
679
|
+
description: "Order KPIs with their change against the previous period, a daily trend, sales by order status and by marketplace, and the top products by net sales. Repeat buyers are counted but not listed. Matches the Orders analysis page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
|
|
670
680
|
flags: [
|
|
671
681
|
{
|
|
672
682
|
name: "organizationId",
|
|
@@ -728,6 +738,7 @@ var COMMANDS = [
|
|
|
728
738
|
httpMethod: "GET",
|
|
729
739
|
path: "/api/v1/analytics/overview",
|
|
730
740
|
summary: "Get Growth Overview",
|
|
741
|
+
description: "Sales, traffic, and profit KPIs with their change against the previous period, a daily trend, the traffic funnel, sales by channel, top and lagging products, and ranked next actions. Matches the Growth Intelligence overview page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
|
|
731
742
|
flags: [
|
|
732
743
|
{
|
|
733
744
|
name: "organizationId",
|
|
@@ -789,6 +800,7 @@ var COMMANDS = [
|
|
|
789
800
|
httpMethod: "GET",
|
|
790
801
|
path: "/api/v1/analytics/pricing",
|
|
791
802
|
summary: "Get Pricing Analytics",
|
|
803
|
+
description: "Selling products with their margin, velocity, stock cover, prices, competitor median, and a pricing recommendation. Matches the Pricing page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
|
|
792
804
|
flags: [
|
|
793
805
|
{
|
|
794
806
|
name: "organizationId",
|
|
@@ -850,6 +862,7 @@ var COMMANDS = [
|
|
|
850
862
|
httpMethod: "GET",
|
|
851
863
|
path: "/api/v1/analytics/products",
|
|
852
864
|
summary: "Get Product Analytics",
|
|
865
|
+
description: "Per-product sales, traffic, price, stock, profit, and ad performance, ranked by net sales, with ranked insights. Pass `productId` for specific products, for example on a product page. Matches the Products page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
|
|
853
866
|
flags: [
|
|
854
867
|
{
|
|
855
868
|
name: "organizationId",
|
|
@@ -929,6 +942,7 @@ var COMMANDS = [
|
|
|
929
942
|
httpMethod: "GET",
|
|
930
943
|
path: "/api/v1/analytics/profit",
|
|
931
944
|
summary: "Get Profit Analytics",
|
|
945
|
+
description: "Revenue, costs, fees, and profit with a waterfall, cost breakdowns, a daily trend, the most and least profitable products, and products missing a cost price. Session members also need finance access. Matches the P&L Analysis page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
|
|
932
946
|
flags: [
|
|
933
947
|
{
|
|
934
948
|
name: "organizationId",
|
|
@@ -996,6 +1010,7 @@ var COMMANDS = [
|
|
|
996
1010
|
httpMethod: "GET",
|
|
997
1011
|
path: "/api/v1/analytics/reports",
|
|
998
1012
|
summary: "Get Business Report",
|
|
1013
|
+
description: "The management summary: headline KPIs, top products, sales by marketplace, alerts, settlement totals, and data quality. Matches the Business Reports page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
|
|
999
1014
|
flags: [
|
|
1000
1015
|
{
|
|
1001
1016
|
name: "organizationId",
|
|
@@ -1057,6 +1072,7 @@ var COMMANDS = [
|
|
|
1057
1072
|
httpMethod: "GET",
|
|
1058
1073
|
path: "/api/v1/analytics/stores",
|
|
1059
1074
|
summary: "Get Store Analytics",
|
|
1075
|
+
description: "Seller Centre shop metrics: visitors, page views, followers, the placed, paid, and confirmed buyer funnel, a daily trend, and the app and web split. Matches the Analytics (Seller Centre) page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
|
|
1060
1076
|
flags: [
|
|
1061
1077
|
{
|
|
1062
1078
|
name: "organizationId",
|
|
@@ -1118,6 +1134,7 @@ var COMMANDS = [
|
|
|
1118
1134
|
httpMethod: "GET",
|
|
1119
1135
|
path: "/api/v1/analytics/traffic",
|
|
1120
1136
|
summary: "Get Traffic Analytics",
|
|
1137
|
+
description: "Impressions, page views, visitors, add-to-cart, and conversion, with the funnel, a daily trend, products ranked by lost conversion, diagnostics, and the videos that drive traffic. Matches the Traffic page. Requires `analytics:read`.\n\nAmounts are in `data.filters.currency`. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.",
|
|
1121
1138
|
flags: [
|
|
1122
1139
|
{
|
|
1123
1140
|
name: "organizationId",
|
|
@@ -1179,6 +1196,7 @@ var COMMANDS = [
|
|
|
1179
1196
|
httpMethod: "GET",
|
|
1180
1197
|
path: "/api/v1/aop/{aopId}/config",
|
|
1181
1198
|
summary: "Get AOP configuration",
|
|
1199
|
+
description: "Retrieve prompt, agent, structured inputs/output, and notification settings. Requires `aops:read`.",
|
|
1182
1200
|
flags: [
|
|
1183
1201
|
{
|
|
1184
1202
|
name: "aopId",
|
|
@@ -1204,6 +1222,7 @@ var COMMANDS = [
|
|
|
1204
1222
|
httpMethod: "PUT",
|
|
1205
1223
|
path: "/api/v1/aop/{aopId}/config",
|
|
1206
1224
|
summary: "Overwrite AOP configuration",
|
|
1225
|
+
description: "Updates AOP configuration. Omitted fields keep their current values. Send `user_notification_configs: null` to clear notification overrides. Requires `aops:write`.",
|
|
1207
1226
|
flags: [
|
|
1208
1227
|
{
|
|
1209
1228
|
name: "aopId",
|
|
@@ -1223,6 +1242,7 @@ var COMMANDS = [
|
|
|
1223
1242
|
httpMethod: "POST",
|
|
1224
1243
|
path: "/api/v1/aop/{aopId}/execute",
|
|
1225
1244
|
summary: "Execute an AOP",
|
|
1245
|
+
description: "Start an AOP run and return immediately with a `thread_id`. Poll `GET /api/v1/threads/{thread_id}/status`. Requires `aops:write`.",
|
|
1226
1246
|
flags: [
|
|
1227
1247
|
{
|
|
1228
1248
|
name: "aopId",
|
|
@@ -1242,6 +1262,7 @@ var COMMANDS = [
|
|
|
1242
1262
|
httpMethod: "POST",
|
|
1243
1263
|
path: "/api/v1/aop/create",
|
|
1244
1264
|
summary: "Create AOP",
|
|
1265
|
+
description: "Create an organization-scoped AOP. Use `[[ placeholder ]]` in the prompt for user inputs supplied at execution time. Requires `aops:write`.",
|
|
1245
1266
|
flags: [],
|
|
1246
1267
|
acceptsJsonBody: true,
|
|
1247
1268
|
acceptsFile: false,
|
|
@@ -1254,6 +1275,7 @@ var COMMANDS = [
|
|
|
1254
1275
|
httpMethod: "POST",
|
|
1255
1276
|
path: "/api/v1/aop/retry",
|
|
1256
1277
|
summary: "Retry a failed AOP execution",
|
|
1278
|
+
description: "Looks up a failed AOP thread, then enqueues a new run. Requires `aops:write`.",
|
|
1257
1279
|
flags: [],
|
|
1258
1280
|
acceptsJsonBody: true,
|
|
1259
1281
|
acceptsFile: false,
|
|
@@ -1266,6 +1288,7 @@ var COMMANDS = [
|
|
|
1266
1288
|
httpMethod: "GET",
|
|
1267
1289
|
path: "/api/v1/brand-kits",
|
|
1268
1290
|
summary: "List Brand Kits",
|
|
1291
|
+
description: "List full brand kits and canonical image-source websites. Requires branding:read. Supports q, limit (1\u20131000), and offset. Bearer credentials resolve the organization; sessions supply organizationId.",
|
|
1269
1292
|
flags: [
|
|
1270
1293
|
{
|
|
1271
1294
|
name: "organizationId",
|
|
@@ -1303,6 +1326,7 @@ var COMMANDS = [
|
|
|
1303
1326
|
httpMethod: "POST",
|
|
1304
1327
|
path: "/api/v1/brand-kits",
|
|
1305
1328
|
summary: "Create Brand Kit",
|
|
1329
|
+
description: "Create a full brand kit with optional imageSourceUrls. Requires branding:write. All brandKit fields are supported; omitted fields receive canonical defaults.\n\nSource websites accept HTTP(S) URLs or domain/path scopes and return normalized host/path values. The kit and sources save atomically. Use public HTTP(S) URLs for logo/icons; embedded images are rejected.",
|
|
1306
1330
|
flags: [],
|
|
1307
1331
|
acceptsJsonBody: true,
|
|
1308
1332
|
acceptsFile: false,
|
|
@@ -1315,6 +1339,7 @@ var COMMANDS = [
|
|
|
1315
1339
|
httpMethod: "DELETE",
|
|
1316
1340
|
path: "/api/v1/brand-kits/{brandKitId}",
|
|
1317
1341
|
summary: "Delete Brand Kit",
|
|
1342
|
+
description: "Delete the organization-owned kit and its saved brand image-source websites. Requires branding:write. Historical job snapshots are preserved.",
|
|
1318
1343
|
flags: [
|
|
1319
1344
|
{
|
|
1320
1345
|
name: "brandKitId",
|
|
@@ -1340,6 +1365,7 @@ var COMMANDS = [
|
|
|
1340
1365
|
httpMethod: "GET",
|
|
1341
1366
|
path: "/api/v1/brand-kits/{brandKitId}",
|
|
1342
1367
|
summary: "Get Brand Kit",
|
|
1368
|
+
description: "Read the complete kit and imageSourceUrls. Requires branding:read.",
|
|
1343
1369
|
flags: [
|
|
1344
1370
|
{
|
|
1345
1371
|
name: "brandKitId",
|
|
@@ -1365,6 +1391,7 @@ var COMMANDS = [
|
|
|
1365
1391
|
httpMethod: "PATCH",
|
|
1366
1392
|
path: "/api/v1/brand-kits/{brandKitId}",
|
|
1367
1393
|
summary: "Update Brand Kit",
|
|
1394
|
+
description: "Edit name, any nested brandKit fields, and imageSourceUrls. Requires branding:write. Nested objects merge and arrays replace; omitted fields are preserved.\n\nimageSourceUrls: [] clears websites. Renaming keeps source websites attached. Parent kit IDs must belong to this organization. Existing running jobs keep their frozen source snapshot until explicitly retried with brandKitIds.",
|
|
1368
1395
|
flags: [
|
|
1369
1396
|
{
|
|
1370
1397
|
name: "brandKitId",
|
|
@@ -1384,6 +1411,7 @@ var COMMANDS = [
|
|
|
1384
1411
|
httpMethod: "POST",
|
|
1385
1412
|
path: "/api/v1/brandsgateway/import",
|
|
1386
1413
|
summary: "Import BrandsGateway Products",
|
|
1414
|
+
description: "Requires catalog:write and a connected BrandsGateway account. Uses the same parameters and import service as the import_brandsgateway_products tool.\n\n### Selection\n\nChoose catalogProductIds or importAllMatching with filters. maxProducts limits new imports to 1\u201350 across pages (default 50); already imported products are skipped. Numeric brandIds, vendorIds (supplier warehouses), categoryIds, and conditionIds arrays match any value within each field and all supplied fields together. Omit a field for no restriction; empty arrays and legacy singular/string filters are rejected. Brands accept at most 500 IDs; other filter arrays accept at most 50 each. Broad combinations may exceed the supplier request budget and return a failure asking you to narrow the filters.\n\n### Updated dates and enrichment\n\nupdatedAtMin and updatedAtMax map to the supplier updated_at_min and updated_at_max filters; dates use midnight UTC. There is no creation-date sorting. Products import as drafts. Connected marketplace selections and country apply to the entire import. Enrichment and taxonomy are queued according to the organization's BrandsGateway preferences; any AI usage is billed to that organization. This endpoint does not publish listings.\n\n### Result\n\nReturns HTTP 200 when the import attempt finishes, including partial failures. Inspect ok, data.success, counts, results, and data.error; failed or partial imports have ok=false and status=failed. Enrichment may still be running when data.enrichmentQueued=true.",
|
|
1387
1415
|
flags: [],
|
|
1388
1416
|
acceptsJsonBody: true,
|
|
1389
1417
|
acceptsFile: false,
|
|
@@ -1396,6 +1424,7 @@ var COMMANDS = [
|
|
|
1396
1424
|
httpMethod: "GET",
|
|
1397
1425
|
path: "/api/v1/campaigns",
|
|
1398
1426
|
summary: "List Campaigns",
|
|
1427
|
+
description: "List campaigns for the authenticated organization. `stage=all` is the workspace working set: draft and running. Requires `promotions:read`.",
|
|
1399
1428
|
flags: [
|
|
1400
1429
|
{
|
|
1401
1430
|
name: "organizationId",
|
|
@@ -1463,6 +1492,7 @@ var COMMANDS = [
|
|
|
1463
1492
|
httpMethod: "POST",
|
|
1464
1493
|
path: "/api/v1/campaigns",
|
|
1465
1494
|
summary: "Create Campaign",
|
|
1495
|
+
description: "Create a draft campaign. `ownerId` and `approverId` must be members of the organization, and every store must already be connected. Requires `promotions:write`.",
|
|
1466
1496
|
flags: [],
|
|
1467
1497
|
acceptsJsonBody: true,
|
|
1468
1498
|
acceptsFile: false,
|
|
@@ -1475,6 +1505,7 @@ var COMMANDS = [
|
|
|
1475
1505
|
httpMethod: "GET",
|
|
1476
1506
|
path: "/api/v1/campaigns/{campaignId}",
|
|
1477
1507
|
summary: "Get Campaign",
|
|
1508
|
+
description: "Read one campaign, including its plan, executions, audit, schedule, and progress. Requires `promotions:read`.",
|
|
1478
1509
|
flags: [
|
|
1479
1510
|
{
|
|
1480
1511
|
name: "campaignId",
|
|
@@ -1500,6 +1531,7 @@ var COMMANDS = [
|
|
|
1500
1531
|
httpMethod: "PATCH",
|
|
1501
1532
|
path: "/api/v1/campaigns/{campaignId}",
|
|
1502
1533
|
summary: "Change Campaign Details",
|
|
1534
|
+
description: "Partially edit the brief, upsert windows and promotion offers by stable id, or explicitly remove offer/window IDs. Omitted fields and children stay unchanged. Uses the campaign editor's canonical merger and marketplace validation.\n\nRunning edits build on the pending proposal and require named-approver approval before delivery. Send expectedRevision; expectedPendingVersion can guard a reviewed proposal (null for none). Requires promotions:write.",
|
|
1503
1535
|
flags: [
|
|
1504
1536
|
{
|
|
1505
1537
|
name: "campaignId",
|
|
@@ -1519,6 +1551,7 @@ var COMMANDS = [
|
|
|
1519
1551
|
httpMethod: "PUT",
|
|
1520
1552
|
path: "/api/v1/campaigns/{campaignId}",
|
|
1521
1553
|
summary: "Update Campaign",
|
|
1554
|
+
description: "Replace a draft or approved plan, or propose one change to a running plan. Send `expectedRevision` from the last read. Requires `promotions:write`.",
|
|
1522
1555
|
flags: [
|
|
1523
1556
|
{
|
|
1524
1557
|
name: "campaignId",
|
|
@@ -1538,6 +1571,7 @@ var COMMANDS = [
|
|
|
1538
1571
|
httpMethod: "POST",
|
|
1539
1572
|
path: "/api/v1/campaigns/{campaignId}/actions",
|
|
1540
1573
|
summary: "Act on Campaign",
|
|
1574
|
+
description: "Approve, start, end, resume, retry, or decide a proposed live change. Approve, run, resume, and approving a change must be called by the named approver. Requires `promotions:write`.",
|
|
1541
1575
|
flags: [
|
|
1542
1576
|
{
|
|
1543
1577
|
name: "campaignId",
|
|
@@ -1557,6 +1591,7 @@ var COMMANDS = [
|
|
|
1557
1591
|
httpMethod: "GET",
|
|
1558
1592
|
path: "/api/v1/campaigns/{campaignId}/analytics",
|
|
1559
1593
|
summary: "Get Campaign Analytics",
|
|
1594
|
+
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.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
1560
1595
|
flags: [
|
|
1561
1596
|
{
|
|
1562
1597
|
name: "campaignId",
|
|
@@ -1588,6 +1623,7 @@ var COMMANDS = [
|
|
|
1588
1623
|
httpMethod: "GET",
|
|
1589
1624
|
path: "/api/v1/campaigns/{campaignId}/notifications",
|
|
1590
1625
|
summary: "Get Campaign Notifications",
|
|
1626
|
+
description: "Read the executing actor's campaign notification preference.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
1591
1627
|
flags: [
|
|
1592
1628
|
{
|
|
1593
1629
|
name: "campaignId",
|
|
@@ -1613,6 +1649,7 @@ var COMMANDS = [
|
|
|
1613
1649
|
httpMethod: "PUT",
|
|
1614
1650
|
path: "/api/v1/campaigns/{campaignId}/notifications",
|
|
1615
1651
|
summary: "Set Campaign Notifications",
|
|
1652
|
+
description: "Set only the executing actor's campaign notification preference. Does not change campaign delivery or other members' preferences.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
1616
1653
|
flags: [
|
|
1617
1654
|
{
|
|
1618
1655
|
name: "campaignId",
|
|
@@ -1632,6 +1669,7 @@ var COMMANDS = [
|
|
|
1632
1669
|
httpMethod: "GET",
|
|
1633
1670
|
path: "/api/v1/campaigns/{campaignId}/offers",
|
|
1634
1671
|
summary: "List Campaign Offers",
|
|
1672
|
+
description: "Filter and page the canonical campaign plan or pending live proposal, with the same attention rules as the campaign editor.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
1635
1673
|
flags: [
|
|
1636
1674
|
{
|
|
1637
1675
|
name: "campaignId",
|
|
@@ -1687,6 +1725,7 @@ var COMMANDS = [
|
|
|
1687
1725
|
httpMethod: "POST",
|
|
1688
1726
|
path: "/api/v1/campaigns/actions",
|
|
1689
1727
|
summary: "Act on Campaigns",
|
|
1728
|
+
description: "Apply one action to 1\u201320 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.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
1690
1729
|
flags: [],
|
|
1691
1730
|
acceptsJsonBody: true,
|
|
1692
1731
|
acceptsFile: false,
|
|
@@ -1699,6 +1738,7 @@ var COMMANDS = [
|
|
|
1699
1738
|
httpMethod: "POST",
|
|
1700
1739
|
path: "/api/v1/campaigns/archive",
|
|
1701
1740
|
summary: "Archive Campaigns",
|
|
1741
|
+
description: "Archive campaigns, or restore archived campaigns by id or by the current archived list filters. Requires `promotions:write`.",
|
|
1702
1742
|
flags: [],
|
|
1703
1743
|
acceptsJsonBody: true,
|
|
1704
1744
|
acceptsFile: false,
|
|
@@ -1711,6 +1751,7 @@ var COMMANDS = [
|
|
|
1711
1751
|
httpMethod: "POST",
|
|
1712
1752
|
path: "/api/v1/campaigns/delete",
|
|
1713
1753
|
summary: "Delete Campaigns",
|
|
1754
|
+
description: "Permanently delete archived campaigns by explicit id or by archived list filters. Requires `promotions:write`.",
|
|
1714
1755
|
flags: [],
|
|
1715
1756
|
acceptsJsonBody: true,
|
|
1716
1757
|
acceptsFile: false,
|
|
@@ -1723,6 +1764,7 @@ var COMMANDS = [
|
|
|
1723
1764
|
httpMethod: "POST",
|
|
1724
1765
|
path: "/api/v1/campaigns/import",
|
|
1725
1766
|
summary: "Import Campaign Workbooks",
|
|
1767
|
+
description: "Import 1\u201310 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.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
1726
1768
|
flags: [],
|
|
1727
1769
|
acceptsJsonBody: true,
|
|
1728
1770
|
acceptsFile: false,
|
|
@@ -1735,6 +1777,7 @@ var COMMANDS = [
|
|
|
1735
1777
|
httpMethod: "GET",
|
|
1736
1778
|
path: "/api/v1/campaigns/options",
|
|
1737
1779
|
summary: "Get Campaign Options",
|
|
1780
|
+
description: "List the organization members and connected stores a campaign plan can name. Use a member `id` for `ownerId` and `approverId`. Requires `promotions:write`.",
|
|
1738
1781
|
flags: [
|
|
1739
1782
|
{
|
|
1740
1783
|
name: "organizationId",
|
|
@@ -1754,6 +1797,7 @@ var COMMANDS = [
|
|
|
1754
1797
|
httpMethod: "POST",
|
|
1755
1798
|
path: "/api/v1/campaigns/promotion-options",
|
|
1756
1799
|
summary: "Resolve Campaign Promotion Selection",
|
|
1800
|
+
description: "Read 1\u201350 eligible draft promotions as campaign offers without creating or publishing promotions. Exact organization/store ownership and existing campaign links are checked.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
1757
1801
|
flags: [],
|
|
1758
1802
|
acceptsJsonBody: true,
|
|
1759
1803
|
acceptsFile: false,
|
|
@@ -1766,6 +1810,7 @@ var COMMANDS = [
|
|
|
1766
1810
|
httpMethod: "POST",
|
|
1767
1811
|
path: "/api/v1/campaigns/validate",
|
|
1768
1812
|
summary: "Validate Campaigns",
|
|
1813
|
+
description: "Read-only preflight of 1\u201310 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.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
1769
1814
|
flags: [],
|
|
1770
1815
|
acceptsJsonBody: true,
|
|
1771
1816
|
acceptsFile: false,
|
|
@@ -1778,6 +1823,7 @@ var COMMANDS = [
|
|
|
1778
1823
|
httpMethod: "GET",
|
|
1779
1824
|
path: "/api/v1/catalog/items",
|
|
1780
1825
|
summary: "Export Catalog Items",
|
|
1826
|
+
description: "Cursor-page the authenticated organization's product and variant catalog for pricing systems. Requires `catalog:read`.\n\nEach item includes product-family identity, SKU/UPC, cost, current, sale, compare-at, MAP, and MSRP prices, inventory, active promotion context, and exact marketplace identifiers. Set `format=csv` for a flat catalog-intake CSV shape.",
|
|
1781
1827
|
flags: [
|
|
1782
1828
|
{
|
|
1783
1829
|
name: "organizationId",
|
|
@@ -1821,6 +1867,7 @@ var COMMANDS = [
|
|
|
1821
1867
|
httpMethod: "GET",
|
|
1822
1868
|
path: "/api/v1/catalog/operations",
|
|
1823
1869
|
summary: "List Catalog Operations for Session",
|
|
1870
|
+
description: "Read the latest 20 compact catalog-operation summaries linked to an authorized session. Requires catalog:read; product data scope is rechecked.",
|
|
1824
1871
|
flags: [
|
|
1825
1872
|
{
|
|
1826
1873
|
name: "organizationId",
|
|
@@ -1846,6 +1893,7 @@ var COMMANDS = [
|
|
|
1846
1893
|
httpMethod: "POST",
|
|
1847
1894
|
path: "/api/v1/catalog/operations",
|
|
1848
1895
|
summary: "Start Catalog Operation",
|
|
1896
|
+
description: "Durable bulk price/cost updates for 1\u20132000 products or variants. Requires catalog:write. 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.",
|
|
1849
1897
|
flags: [],
|
|
1850
1898
|
acceptsJsonBody: true,
|
|
1851
1899
|
acceptsFile: false,
|
|
@@ -1858,6 +1906,7 @@ var COMMANDS = [
|
|
|
1858
1906
|
httpMethod: "POST",
|
|
1859
1907
|
path: "/api/v1/catalog/operations/results",
|
|
1860
1908
|
summary: "Get Catalog Operation Results",
|
|
1909
|
+
description: "Read ordered per-product receipts and verification evidence for up to 50 operationIds. Filter status=failed to inspect failures directly. At most 100 rows across the requested operations per page. Requires catalog:read.",
|
|
1861
1910
|
flags: [],
|
|
1862
1911
|
acceptsJsonBody: true,
|
|
1863
1912
|
acceptsFile: false,
|
|
@@ -1870,6 +1919,7 @@ var COMMANDS = [
|
|
|
1870
1919
|
httpMethod: "POST",
|
|
1871
1920
|
path: "/api/v1/catalog/operations/status",
|
|
1872
1921
|
summary: "Get Catalog Operation Status",
|
|
1922
|
+
description: "Read compact progress for up to 50 operationIds in first-requested order. Pending is incomplete, and partial failures remain explicit. Requires catalog:read. Detailed receipts are returned only by the paginated report API.",
|
|
1873
1923
|
flags: [],
|
|
1874
1924
|
acceptsJsonBody: true,
|
|
1875
1925
|
acceptsFile: false,
|
|
@@ -1882,6 +1932,7 @@ var COMMANDS = [
|
|
|
1882
1932
|
httpMethod: "POST",
|
|
1883
1933
|
path: "/api/v1/catalog/query",
|
|
1884
1934
|
summary: "Query Catalog",
|
|
1935
|
+
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. Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.",
|
|
1885
1936
|
flags: [],
|
|
1886
1937
|
acceptsJsonBody: true,
|
|
1887
1938
|
acceptsFile: false,
|
|
@@ -1894,6 +1945,7 @@ var COMMANDS = [
|
|
|
1894
1945
|
httpMethod: "POST",
|
|
1895
1946
|
path: "/api/v1/checkout-sessions",
|
|
1896
1947
|
summary: "Create Agentic Checkout Session",
|
|
1948
|
+
description: "Create a merchant-fulfilled checkout session, reserve inventory, and return rail-specific payment requirements. Requires an OAuth client token with `checkout:write`.",
|
|
1897
1949
|
flags: [],
|
|
1898
1950
|
acceptsJsonBody: true,
|
|
1899
1951
|
acceptsFile: false,
|
|
@@ -1906,6 +1958,7 @@ var COMMANDS = [
|
|
|
1906
1958
|
httpMethod: "GET",
|
|
1907
1959
|
path: "/api/v1/checkout-sessions/{sessionId}",
|
|
1908
1960
|
summary: "Get Agentic Checkout Session",
|
|
1961
|
+
description: "Fetch the current checkout session, cart items, totals, payment requirements, and linked order when completed.",
|
|
1909
1962
|
flags: [
|
|
1910
1963
|
{
|
|
1911
1964
|
name: "sessionId",
|
|
@@ -1931,6 +1984,7 @@ var COMMANDS = [
|
|
|
1931
1984
|
httpMethod: "PATCH",
|
|
1932
1985
|
path: "/api/v1/checkout-sessions/{sessionId}",
|
|
1933
1986
|
summary: "Update Agentic Checkout Session",
|
|
1987
|
+
description: "Update cart/contact fields, recompute totals, and refresh inventory reservations before payment. Requires `checkout:write`.",
|
|
1934
1988
|
flags: [
|
|
1935
1989
|
{
|
|
1936
1990
|
name: "sessionId",
|
|
@@ -1956,6 +2010,7 @@ var COMMANDS = [
|
|
|
1956
2010
|
httpMethod: "PUT",
|
|
1957
2011
|
path: "/api/v1/checkout-sessions/{sessionId}",
|
|
1958
2012
|
summary: "Replace Agentic Checkout Session Fields",
|
|
2013
|
+
description: "UCP-compatible update method for cart/contact fields. The current implementation applies provided fields and leaves omitted fields unchanged. Requires `checkout:write`.",
|
|
1959
2014
|
flags: [
|
|
1960
2015
|
{
|
|
1961
2016
|
name: "sessionId",
|
|
@@ -1981,6 +2036,7 @@ var COMMANDS = [
|
|
|
1981
2036
|
httpMethod: "POST",
|
|
1982
2037
|
path: "/api/v1/checkout-sessions/{sessionId}/cancel",
|
|
1983
2038
|
summary: "Cancel Agentic Checkout Session",
|
|
2039
|
+
description: "Cancel a ready-for-payment checkout session and release reserved inventory. This operation is exposed for UCP REST clients and requires `checkout:write`.",
|
|
1984
2040
|
flags: [
|
|
1985
2041
|
{
|
|
1986
2042
|
name: "sessionId",
|
|
@@ -2006,6 +2062,7 @@ var COMMANDS = [
|
|
|
2006
2062
|
httpMethod: "POST",
|
|
2007
2063
|
path: "/api/v1/checkout-sessions/{sessionId}/complete",
|
|
2008
2064
|
summary: "Complete Agentic Checkout Session",
|
|
2065
|
+
description: "Settle the selected rail and create a native `agentic` order. Definitive settlement failures return 402. Pending confirmation locks the offer in `payment_pending`; durable recovery resumes the same attempt.",
|
|
2009
2066
|
flags: [
|
|
2010
2067
|
{
|
|
2011
2068
|
name: "sessionId",
|
|
@@ -2031,6 +2088,7 @@ var COMMANDS = [
|
|
|
2031
2088
|
httpMethod: "POST",
|
|
2032
2089
|
path: "/api/v1/commerce/jobs/await",
|
|
2033
2090
|
summary: "Await Commerce Jobs",
|
|
2091
|
+
description: "Wait for a mixed batch of returned commerce correlations: inventory_job, price_event, price_book_sync, publish_job, delist_batch, store_switch, omni_delete, zalora_import, enrichment_batch, order_action and return_action.\n\n### Request limits and access\n\nMaximum 50000 entries; IDs are trimmed and duplicates collapse by kind/id in first-requested order. timeoutMs=0 reads once; bounded waits allow up to 120000ms. Catalog jobs require catalog:read; order/return jobs require orders:read; mixed batches require both. Session callers include organizationId.\n\n### Result interpretation\n\nEvery job retains its target identity, status, errors and available label artifacts. Missing or inaccessible fulfillment jobs fail explicitly. needs_review is an uncertain outcome, never automatic success or authorization to resubmit. data.success describes completion; use state verification before claiming a marketplace effect. Scheduled future actions are verified after execution, not when scheduled.",
|
|
2034
2092
|
flags: [],
|
|
2035
2093
|
acceptsJsonBody: true,
|
|
2036
2094
|
acceptsFile: false,
|
|
@@ -2043,6 +2101,7 @@ var COMMANDS = [
|
|
|
2043
2101
|
httpMethod: "POST",
|
|
2044
2102
|
path: "/api/v1/commerce/state/verify",
|
|
2045
2103
|
summary: "Verify Commerce State",
|
|
2104
|
+
description: "Perform fresh marketplace verification using the canonical services for every supported marketplace.\n\n### Targets and access\n\nFor products provide productIds plus expected, or targets[{productId,expected}] for mixed values. For order, return and price-book operations provide their returned order_action/return_action/price_book_sync correlations; product and fulfillment checks may share one request. Maximum 50000 entries per target array, with bounded concurrency. Catalog verification requires catalog:read; fulfillment verification requires orders:read; mixed batches require both. Session callers include organizationId.\n\n### Verification results\n\nMissing, unauthorized, unsupported and unconfirmed targets fail explicitly. A return decision can be confirmed while later lifecycle steps remain pending. Labels confirm generated artifacts, not physical printing. Provider acceptance alone does not establish a changed state; tracking omitted by the provider remains unconfirmed. This read never resubmits a marketplace action.",
|
|
2046
2105
|
flags: [],
|
|
2047
2106
|
acceptsJsonBody: true,
|
|
2048
2107
|
acceptsFile: false,
|
|
@@ -2055,6 +2114,7 @@ var COMMANDS = [
|
|
|
2055
2114
|
httpMethod: "POST",
|
|
2056
2115
|
path: "/api/v1/commerce/state/verify/jobs",
|
|
2057
2116
|
summary: "Start Commerce Verification",
|
|
2117
|
+
description: "Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read. Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.",
|
|
2058
2118
|
flags: [],
|
|
2059
2119
|
acceptsJsonBody: true,
|
|
2060
2120
|
acceptsFile: false,
|
|
@@ -2067,6 +2127,7 @@ var COMMANDS = [
|
|
|
2067
2127
|
httpMethod: "GET",
|
|
2068
2128
|
path: "/api/v1/compare",
|
|
2069
2129
|
summary: "Compare Public Products",
|
|
2130
|
+
description: "Compare 2 to 10 public products side-by-side across price, ACO readiness, marketplace coverage, and inventory.",
|
|
2070
2131
|
flags: [
|
|
2071
2132
|
{
|
|
2072
2133
|
name: "products",
|
|
@@ -2092,6 +2153,7 @@ var COMMANDS = [
|
|
|
2092
2153
|
httpMethod: "GET",
|
|
2093
2154
|
path: "/api/v1/directory",
|
|
2094
2155
|
summary: "List Public Merchants",
|
|
2156
|
+
description: "Discover merchants with public products available through OmniCommerce's public agent APIs.",
|
|
2095
2157
|
flags: [],
|
|
2096
2158
|
acceptsJsonBody: false,
|
|
2097
2159
|
acceptsFile: false,
|
|
@@ -2104,6 +2166,7 @@ var COMMANDS = [
|
|
|
2104
2166
|
httpMethod: "POST",
|
|
2105
2167
|
path: "/api/v1/documents",
|
|
2106
2168
|
summary: "Upload Document",
|
|
2169
|
+
description: "Upload one file to the knowledge base as multipart/form-data. Requires `documents:write`.\n\nAccepted: PDF up to 20 MB, Word (.docx) and PowerPoint (.pptx) up to 20 MB, Excel (.xlsx/.xlsm) up to 10 MB, images up to 8 MB, CSV and Markdown up to 2 MB. PDFs, Word, PowerPoint, Markdown, and images are indexed in the background; poll `GET /api/v1/documents/{documentId}` until `status` is `completed`. CSV and Excel are stored for agents to read but are not indexed.",
|
|
2107
2170
|
flags: [],
|
|
2108
2171
|
acceptsJsonBody: true,
|
|
2109
2172
|
acceptsFile: true,
|
|
@@ -2116,6 +2179,7 @@ var COMMANDS = [
|
|
|
2116
2179
|
httpMethod: "GET",
|
|
2117
2180
|
path: "/api/v1/documents/{documentId}",
|
|
2118
2181
|
summary: "Get Document",
|
|
2182
|
+
description: "Read one knowledge base document and its indexing status. Requires `documents:read`. 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.",
|
|
2119
2183
|
flags: [
|
|
2120
2184
|
{
|
|
2121
2185
|
name: "documentId",
|
|
@@ -2147,6 +2211,7 @@ var COMMANDS = [
|
|
|
2147
2211
|
httpMethod: "POST",
|
|
2148
2212
|
path: "/api/v1/evaluate",
|
|
2149
2213
|
summary: "Evaluate SKU Readiness",
|
|
2214
|
+
description: "Score a persisted product or inline SKU payload for agentic commerce readiness, engine eligibility, and recommended fixes.",
|
|
2150
2215
|
flags: [],
|
|
2151
2216
|
acceptsJsonBody: true,
|
|
2152
2217
|
acceptsFile: false,
|
|
@@ -2159,6 +2224,7 @@ var COMMANDS = [
|
|
|
2159
2224
|
httpMethod: "GET",
|
|
2160
2225
|
path: "/api/v1/feed/{domain}/llms.txt",
|
|
2161
2226
|
summary: "Get Merchant LLM Feed",
|
|
2227
|
+
description: "Return a plain-text, LLM-optimized merchant feed keyed by website domain.",
|
|
2162
2228
|
flags: [
|
|
2163
2229
|
{
|
|
2164
2230
|
name: "domain",
|
|
@@ -2184,6 +2250,7 @@ var COMMANDS = [
|
|
|
2184
2250
|
httpMethod: "POST",
|
|
2185
2251
|
path: "/api/v1/images/ghost-mannequin",
|
|
2186
2252
|
summary: "Generate Ghost Mannequin Image",
|
|
2253
|
+
description: "Remove the visible mannequin from a product photo and return the generated image URL. The source image must be an HTTP(S) URL; data URIs are rejected. Authenticate with an OmniCommerce API key that has the `catalog:enrich` scope.",
|
|
2187
2254
|
flags: [],
|
|
2188
2255
|
acceptsJsonBody: true,
|
|
2189
2256
|
acceptsFile: false,
|
|
@@ -2196,6 +2263,7 @@ var COMMANDS = [
|
|
|
2196
2263
|
httpMethod: "GET",
|
|
2197
2264
|
path: "/api/v1/inventory",
|
|
2198
2265
|
summary: "List Inventory Groups",
|
|
2266
|
+
description: "Read active inventory using the same canonical quantities, filters and grouping as the inventory assistant. Requires catalog:read and inventory.read permission. Organization scope comes only from the credential.\n\n### Stock and listing absence\n\nstatus=in_stock means positive available stock (on hand minus locked), with variants rolled up for product groups. unlistedMarketplaces checks every organization store and the entire saved catalog, including product/variant identities, exact catalog SKUs, and historical listings. Source marketplace/country/storeIds filters do not restrict absence evidence. All supported marketplaces are accepted.\n\nlistingPresence reports saved-catalog evidence and unknown missing-SKU families. It does not establish fresh live marketplace absence. Stock quantities from duplicate SKU records must not be added as independent physical inventory.\n\n### Pagination\n\nGroups are one page, maximum 30. totalGroups is the full matching count. Continue with nextOffset and identical filters until hasMore=false.",
|
|
2199
2267
|
flags: [
|
|
2200
2268
|
{
|
|
2201
2269
|
name: "productIds",
|
|
@@ -2269,6 +2337,7 @@ var COMMANDS = [
|
|
|
2269
2337
|
httpMethod: "GET",
|
|
2270
2338
|
path: "/api/v1/jobs/{jobId}",
|
|
2271
2339
|
summary: "Get Developer Job Status",
|
|
2340
|
+
description: "Fetch shared async status for developer-platform operations, including product workflow jobs, bulk CSV import jobs, Look generation jobs, import jobs, enrichment jobs, price comparison jobs, and sync jobs.\n\nPrice comparison jobs expose partial progress in data.results and their final batch result in data.result; completed means processing finished, so inspect data.result.success for comparison failures.",
|
|
2272
2341
|
flags: [
|
|
2273
2342
|
{
|
|
2274
2343
|
name: "jobId",
|
|
@@ -2294,6 +2363,7 @@ var COMMANDS = [
|
|
|
2294
2363
|
httpMethod: "POST",
|
|
2295
2364
|
path: "/api/v1/jobs/{jobId}/cancel",
|
|
2296
2365
|
summary: "Cancel Developer Job",
|
|
2366
|
+
description: "Request cancellation for a running or pending developer job.\n\nSupported jobs:\n\n- Product workflows returned by `POST /api/v1/products`\n\n- Bulk CSV imports returned by `POST /api/v1/products/bulk-import`\n\n- Look generation returned by `POST /api/v1/looks`\n\nCompleted or failed jobs cannot be cancelled and are returned with their current terminal status.",
|
|
2297
2367
|
flags: [
|
|
2298
2368
|
{
|
|
2299
2369
|
name: "jobId",
|
|
@@ -2313,6 +2383,7 @@ var COMMANDS = [
|
|
|
2313
2383
|
httpMethod: "GET",
|
|
2314
2384
|
path: "/api/v1/looks",
|
|
2315
2385
|
summary: "List Looks",
|
|
2386
|
+
description: "List AI-styled product Looks for the authenticated organization, newest first. Use query parameters for search, status filtering, and pagination.",
|
|
2316
2387
|
flags: [
|
|
2317
2388
|
{
|
|
2318
2389
|
name: "q",
|
|
@@ -2350,6 +2421,7 @@ var COMMANDS = [
|
|
|
2350
2421
|
httpMethod: "POST",
|
|
2351
2422
|
path: "/api/v1/looks",
|
|
2352
2423
|
summary: "Create Look",
|
|
2424
|
+
description: "Create a Look from existing catalog products and queue AI image generation for a fast preview. The response is asynchronous: poll `GET /api/v1/jobs/{jobId}?organizationId={organizationId}` until the `look_...` job completes, then fetch the generated Look with `GET /api/v1/looks/{lookId}`.",
|
|
2353
2425
|
flags: [],
|
|
2354
2426
|
acceptsJsonBody: true,
|
|
2355
2427
|
acceptsFile: false,
|
|
@@ -2362,6 +2434,7 @@ var COMMANDS = [
|
|
|
2362
2434
|
httpMethod: "GET",
|
|
2363
2435
|
path: "/api/v1/looks/{lookId}",
|
|
2364
2436
|
summary: "Get Look",
|
|
2437
|
+
description: "Fetch a single Look by ID, including the generated hero image URL and the shoppable product cards used in the Look.",
|
|
2365
2438
|
flags: [
|
|
2366
2439
|
{
|
|
2367
2440
|
name: "lookId",
|
|
@@ -2381,6 +2454,7 @@ var COMMANDS = [
|
|
|
2381
2454
|
httpMethod: "POST",
|
|
2382
2455
|
path: "/api/v1/manage-product-category/recommend",
|
|
2383
2456
|
summary: "Recommend Marketplace Product Categories",
|
|
2457
|
+
description: "Suggest best-fit marketplace categories and category attribute values for a persisted product using semantic taxonomy search. Authenticate with an OmniCommerce API key as `Authorization: Bearer omni_sk_...`.",
|
|
2384
2458
|
flags: [],
|
|
2385
2459
|
acceptsJsonBody: true,
|
|
2386
2460
|
acceptsFile: false,
|
|
@@ -2393,6 +2467,7 @@ var COMMANDS = [
|
|
|
2393
2467
|
httpMethod: "GET",
|
|
2394
2468
|
path: "/api/v1/marketplaces/connected",
|
|
2395
2469
|
summary: "List Connected Marketplaces",
|
|
2470
|
+
description: "List connected marketplace stores for the authenticated organization. Results are scoped to the API key organization unless `organizationId` is supplied for session-authenticated calls.",
|
|
2396
2471
|
flags: [
|
|
2397
2472
|
{
|
|
2398
2473
|
name: "organizationId",
|
|
@@ -2424,6 +2499,7 @@ var COMMANDS = [
|
|
|
2424
2499
|
httpMethod: "GET",
|
|
2425
2500
|
path: "/api/v1/merchants/{merchantId}/manifest",
|
|
2426
2501
|
summary: "Get Public Merchant Manifest",
|
|
2502
|
+
description: "Return machine-readable capability and endpoint metadata for a single public merchant.",
|
|
2427
2503
|
flags: [
|
|
2428
2504
|
{
|
|
2429
2505
|
name: "merchantId",
|
|
@@ -2443,6 +2519,7 @@ var COMMANDS = [
|
|
|
2443
2519
|
httpMethod: "GET",
|
|
2444
2520
|
path: "/api/v1/merchants/{merchantId}/products",
|
|
2445
2521
|
summary: "List Public Merchant Products",
|
|
2522
|
+
description: "Browse a single merchant's public product feed with optional marketplace and localization filters.",
|
|
2446
2523
|
flags: [
|
|
2447
2524
|
{
|
|
2448
2525
|
name: "merchantId",
|
|
@@ -2492,6 +2569,7 @@ var COMMANDS = [
|
|
|
2492
2569
|
httpMethod: "GET",
|
|
2493
2570
|
path: "/api/v1/merchants/{merchantId}/search",
|
|
2494
2571
|
summary: "Search Within Public Merchant Catalog",
|
|
2572
|
+
description: "Search within a single merchant's public product feed using the same filter model as the cross-merchant search API.",
|
|
2495
2573
|
flags: [
|
|
2496
2574
|
{
|
|
2497
2575
|
name: "merchantId",
|
|
@@ -2619,6 +2697,7 @@ var COMMANDS = [
|
|
|
2619
2697
|
httpMethod: "POST",
|
|
2620
2698
|
path: "/api/v1/monitor",
|
|
2621
2699
|
summary: "Run AI Shelf Share Monitor",
|
|
2700
|
+
description: "Queue AI Shelf Share replay/monitoring for a product, query, or organization catalog.",
|
|
2622
2701
|
flags: [],
|
|
2623
2702
|
acceptsJsonBody: true,
|
|
2624
2703
|
acceptsFile: false,
|
|
@@ -2631,6 +2710,7 @@ var COMMANDS = [
|
|
|
2631
2710
|
httpMethod: "POST",
|
|
2632
2711
|
path: "/api/v1/oauth/revoke",
|
|
2633
2712
|
summary: "Revoke Access Token",
|
|
2713
|
+
description: "Revoke an OAuth bearer access token using client_secret_post authentication.",
|
|
2634
2714
|
flags: [],
|
|
2635
2715
|
acceptsJsonBody: true,
|
|
2636
2716
|
acceptsFile: false,
|
|
@@ -2643,6 +2723,7 @@ var COMMANDS = [
|
|
|
2643
2723
|
httpMethod: "POST",
|
|
2644
2724
|
path: "/api/v1/oauth/token",
|
|
2645
2725
|
summary: "Get Access Token",
|
|
2726
|
+
description: "Exchange client credentials for an access token using OAuth 2.0 client_credentials grant. Tokens are valid for 1 hour.",
|
|
2646
2727
|
flags: [],
|
|
2647
2728
|
acceptsJsonBody: true,
|
|
2648
2729
|
acceptsFile: false,
|
|
@@ -2655,6 +2736,7 @@ var COMMANDS = [
|
|
|
2655
2736
|
httpMethod: "GET",
|
|
2656
2737
|
path: "/api/v1/orders",
|
|
2657
2738
|
summary: "List Orders",
|
|
2739
|
+
description: "List orders for the authenticated organization using the same filters, sorting, and pagination semantics as the workspace Orders listing page. Requires `orders:read`.",
|
|
2658
2740
|
flags: [
|
|
2659
2741
|
{
|
|
2660
2742
|
name: "organizationId",
|
|
@@ -2740,6 +2822,7 @@ var COMMANDS = [
|
|
|
2740
2822
|
httpMethod: "POST",
|
|
2741
2823
|
path: "/api/v1/orders",
|
|
2742
2824
|
summary: "Create Order",
|
|
2825
|
+
description: "Create a native `agentic` order with line items. This operation uses the same upsert path as agentic checkout completion.\n\n### Authentication\n\nRequires `orders:write`.\n\n### Upsert behavior\n\n- Reusing an `externalOrderId` updates the existing order instead of creating a duplicate.\n- For one-row-per-SKU integrations, use the marketplace order ID as `externalOrderId` and the row ID as `items[].externalOrderItemId`.\n- When `totalAmount` is omitted, OmniCommerce recomputes it from all order lines after the upsert.\n\n### Pricing and catalog defaults\n\n- Each line can provide `price`, `unitPrice`, `paidPrice`, and `costPrice`.\n- When `productId` is provided, missing price or currency values may resolve from the product catalog.\n- An explicit `costPrice` updates `product_data.costPrice` and is snapshotted on the order line. Omitting it never clears an existing product cost.\n\n### Country resolution\n\nWhen `country` is empty, OmniCommerce may derive it from an unambiguous order currency, such as PHP for the Philippines. USD is not used to infer a country.",
|
|
2743
2826
|
flags: [],
|
|
2744
2827
|
acceptsJsonBody: true,
|
|
2745
2828
|
acceptsFile: false,
|
|
@@ -2752,6 +2835,7 @@ var COMMANDS = [
|
|
|
2752
2835
|
httpMethod: "GET",
|
|
2753
2836
|
path: "/api/v1/orders/{orderId}",
|
|
2754
2837
|
summary: "Get Order",
|
|
2838
|
+
description: "Get one order by its OmniCommerce UUID for the authenticated organization.\n\n### Authentication\n\nRequires `orders:read`.\n\n### Response\n\nThe organization-scoped detail includes:\n\n- Line items and normalized status\n- Buyer and contact fields\n- Shipping and billing addresses\n- Return context\n- Finance breakdown\n- Settlement projection, when available\n\nOrders outside the authenticated organization are not exposed and return `404 Not Found`.",
|
|
2755
2839
|
flags: [
|
|
2756
2840
|
{
|
|
2757
2841
|
name: "orderId",
|
|
@@ -2777,6 +2861,7 @@ var COMMANDS = [
|
|
|
2777
2861
|
httpMethod: "PATCH",
|
|
2778
2862
|
path: "/api/v1/orders/{orderId}",
|
|
2779
2863
|
summary: "Update Order",
|
|
2864
|
+
description: "Update a native **agentic** order.\n\n### Authentication\n\nRequires `orders:write`.\n\n### Supported changes\n\n- External order identifiers, status, currency, and country\n- `totalAmount`, `shippingFee`, and `discountAmount`\n- Metadata and `orderCreatedAt`\n- Line identifiers, prices, COGS, currency, status, and quantity\n\n### Line upserts\n\n- A matching `externalOrderItemId` updates the existing line.\n- A new `externalOrderItemId` with `productName` and `quantity` appends a line.\n- When lines change and `totalAmount` is omitted, OmniCommerce recomputes the total from all lines.\n\n### Country resolution\n\nWhen `country` is omitted and the stored country is empty, OmniCommerce may derive it from an unambiguous resulting order currency.\n\n### Restrictions and events\n\nMarketplace-owned orders from Shopee, Lazada, TikTok, and Shopify are rejected with `409 Conflict`. A status change emits `order.status.changed`; other changes emit `order.updated`.",
|
|
2780
2865
|
flags: [
|
|
2781
2866
|
{
|
|
2782
2867
|
name: "orderId",
|
|
@@ -2796,6 +2881,7 @@ var COMMANDS = [
|
|
|
2796
2881
|
httpMethod: "GET",
|
|
2797
2882
|
path: "/api/v1/orders/{orderId}/action-options",
|
|
2798
2883
|
summary: "Get Order Action Options",
|
|
2884
|
+
description: "Ask the marketplace which choices an action needs, such as pickup or drop-off for `ship`. Requires `orders:write`.\n\nSend the chosen choice's `payload` with `POST /api/v1/orders/{orderId}/actions`.",
|
|
2799
2885
|
flags: [
|
|
2800
2886
|
{
|
|
2801
2887
|
name: "orderId",
|
|
@@ -2827,6 +2913,7 @@ var COMMANDS = [
|
|
|
2827
2913
|
httpMethod: "GET",
|
|
2828
2914
|
path: "/api/v1/orders/{orderId}/actions",
|
|
2829
2915
|
summary: "List Order Actions",
|
|
2916
|
+
description: "The order's 20 most recent action jobs, newest first, plus its latest successful label job. Requires `orders:read`.\n\nPoll this after queueing an action. A succeeded `labels` job lists its label files in `labels`.",
|
|
2830
2917
|
flags: [
|
|
2831
2918
|
{
|
|
2832
2919
|
name: "orderId",
|
|
@@ -2852,6 +2939,7 @@ var COMMANDS = [
|
|
|
2852
2939
|
httpMethod: "POST",
|
|
2853
2940
|
path: "/api/v1/orders/{orderId}/actions",
|
|
2854
2941
|
summary: "Queue Order Action",
|
|
2942
|
+
description: "Ship, cancel, generate shipping labels for, or update tracking on a marketplace order. Requires `orders:write`.\n\nThe marketplace call runs in the background: the response is `202` with `jobId`; poll `GET /api/v1/orders/{orderId}/actions`. A repeated `idempotencyKey` returns `200` with the original job.",
|
|
2855
2943
|
flags: [
|
|
2856
2944
|
{
|
|
2857
2945
|
name: "orderId",
|
|
@@ -2871,6 +2959,7 @@ var COMMANDS = [
|
|
|
2871
2959
|
httpMethod: "GET",
|
|
2872
2960
|
path: "/api/v1/orders/actions",
|
|
2873
2961
|
summary: "Check Order Action Options",
|
|
2962
|
+
description: "### Authorization\n\nRequires orders:write.\n\n### Choices\n\nRead current marketplace choices for ship, cancel, labels or update_tracking for 1\u201350 order UUIDs using repeated orderIds query parameters. The shared order service checks status, store connection and marketplace capability. Results preserve first-requested order, with explicit per-order errors. Use the exact choice payload and supply any fields marked requiresInput. An unsupported marketplace operation is an explicit failure, not a silently skipped order. Ship arranges shipment; labels generates printable files. Fulfillment behavior is identical to the existing single-order API and workspace UI.",
|
|
2874
2963
|
flags: [
|
|
2875
2964
|
{
|
|
2876
2965
|
name: "orderIds",
|
|
@@ -2902,6 +2991,7 @@ var COMMANDS = [
|
|
|
2902
2991
|
httpMethod: "POST",
|
|
2903
2992
|
path: "/api/v1/orders/actions",
|
|
2904
2993
|
summary: "Process Order Actions",
|
|
2994
|
+
description: "### Authorization\n\nRequires orders:write.\n\n### Batch submission\n\nQueue 1\u201350 distinct order operations with a UUID requestId. Each operation has orderId, action (ship, cancel, labels or update_tracking), and optional payload. Use exact marketplace choices from GET /api/v1/orders/actions and supply required carrier, tracking, pickup/drop-off or cancellation details. One operation per order is allowed in a batch; later stages such as labels after shipment require another submission. All targets are authorized before any enqueue. Per-order failures are isolated; results retain request order and include every accepted jobId. data.success means all submissions were accepted, not that marketplace processing finished.\n\n### Recovery and completion\n\nRetain requestId and unchanged operations for retries; a changed operation with a reused key fails that target. Follow links.poll or GET /api/v1/orders/actions/jobs with every returned jobId (orders:read). The durable worker rechecks initiating permissions before marketplace writes. Label jobs return download URLs after success; the API does not control a physical printer. Completed jobs and partial failures remain explicit.",
|
|
2905
2995
|
flags: [],
|
|
2906
2996
|
acceptsJsonBody: true,
|
|
2907
2997
|
acceptsFile: false,
|
|
@@ -2914,6 +3004,7 @@ var COMMANDS = [
|
|
|
2914
3004
|
httpMethod: "GET",
|
|
2915
3005
|
path: "/api/v1/orders/actions/jobs",
|
|
2916
3006
|
summary: "Get Order Action Jobs",
|
|
3007
|
+
description: "### Authorization\n\nRequires orders:read.\n\n### Outcomes and labels\n\nRead every requested order action job in one batch of 1\u201350 UUIDs using repeated jobIds parameters. Results preserve first-requested order. data.success is true only when every requested job succeeded; failedCount includes failed and not_supported, while pendingCount includes queued and running. Successful label jobs contain downloadable files in labels[]. A missing or cross-organization job returns 404; current store restrictions apply to all targets. The top-level completed status describes the lookup, not job completion. No raw provider acknowledgements are exposed.",
|
|
2917
3008
|
flags: [
|
|
2918
3009
|
{
|
|
2919
3010
|
name: "jobIds",
|
|
@@ -2939,6 +3030,7 @@ var COMMANDS = [
|
|
|
2939
3030
|
httpMethod: "POST",
|
|
2940
3031
|
path: "/api/v1/orders/picking-list",
|
|
2941
3032
|
summary: "Create Picking List",
|
|
3033
|
+
description: "### Authorization\n\nRequires orders:read. API keys resolve organization scope from their credential; session callers include organizationId.\n\n### PDF output\n\nCreate a private PDF picking list for 1\u2013500 order UUIDs, trimmed and deduplicated in first-requested order. Missing or inaccessible orders fail the complete selection without creating a partial document. The same grouping, product quantities, SKU/variation and currency-labeled prices as the workspace Orders page are used. timeZone accepts an IANA time zone; omitted API requests use UTC. This does not arrange shipment or change orders.\n\nThe result contains structured list data, every orderId, a saved documentId and a signed HTTPS downloadUrl valid until expiresAt (five minutes). Generate a fresh list for a new download URL. Download the PDF and send it to your own printer; the API does not control local printers. PDF rendering may take up to 120 seconds.",
|
|
2942
3034
|
flags: [],
|
|
2943
3035
|
acceptsJsonBody: true,
|
|
2944
3036
|
acceptsFile: false,
|
|
@@ -2951,6 +3043,7 @@ var COMMANDS = [
|
|
|
2951
3043
|
httpMethod: "POST",
|
|
2952
3044
|
path: "/api/v1/organizations",
|
|
2953
3045
|
summary: "Create Organization",
|
|
3046
|
+
description: "Create a new organization for the signed-in user. This endpoint uses first-party session authentication because API keys are scoped to an existing organization.",
|
|
2954
3047
|
flags: [],
|
|
2955
3048
|
acceptsJsonBody: true,
|
|
2956
3049
|
acceptsFile: false,
|
|
@@ -2963,6 +3056,7 @@ var COMMANDS = [
|
|
|
2963
3056
|
httpMethod: "GET",
|
|
2964
3057
|
path: "/api/v1/price-books",
|
|
2965
3058
|
summary: "List Price Book Rules",
|
|
3059
|
+
description: "List marketplace price book rules for the authenticated organization. A rule applies either a buyer formula or a markup percent to the catalog price at publish time, by platform and optional store/country. Requires `price_books:read`.",
|
|
2966
3060
|
flags: [
|
|
2967
3061
|
{
|
|
2968
3062
|
name: "organizationId",
|
|
@@ -2994,6 +3088,7 @@ var COMMANDS = [
|
|
|
2994
3088
|
httpMethod: "POST",
|
|
2995
3089
|
path: "/api/v1/price-books",
|
|
2996
3090
|
summary: "Create Price Book Rule",
|
|
3091
|
+
description: "Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.\n\n`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.",
|
|
2997
3092
|
flags: [],
|
|
2998
3093
|
acceptsJsonBody: true,
|
|
2999
3094
|
acceptsFile: false,
|
|
@@ -3006,6 +3101,7 @@ var COMMANDS = [
|
|
|
3006
3101
|
httpMethod: "DELETE",
|
|
3007
3102
|
path: "/api/v1/price-books/{ruleId}",
|
|
3008
3103
|
summary: "Delete Price Book Rule",
|
|
3104
|
+
description: "Delete a marketplace price book rule by ID. Requires `price_books:write`.",
|
|
3009
3105
|
flags: [
|
|
3010
3106
|
{
|
|
3011
3107
|
name: "ruleId",
|
|
@@ -3031,6 +3127,7 @@ var COMMANDS = [
|
|
|
3031
3127
|
httpMethod: "GET",
|
|
3032
3128
|
path: "/api/v1/price-books/{ruleId}",
|
|
3033
3129
|
summary: "Get Price Book Rule",
|
|
3130
|
+
description: "Fetch one marketplace price book rule by ID. Requires `price_books:read`.",
|
|
3034
3131
|
flags: [
|
|
3035
3132
|
{
|
|
3036
3133
|
name: "ruleId",
|
|
@@ -3056,6 +3153,7 @@ var COMMANDS = [
|
|
|
3056
3153
|
httpMethod: "PATCH",
|
|
3057
3154
|
path: "/api/v1/price-books/{ruleId}",
|
|
3058
3155
|
summary: "Update Price Book Rule",
|
|
3156
|
+
description: "Update store, country, markup, buyer formula, rounding, currency, or enabled flag for a price book rule. Platform cannot be changed; create a new rule instead. Requires `price_books:write`.",
|
|
3059
3157
|
flags: [
|
|
3060
3158
|
{
|
|
3061
3159
|
name: "ruleId",
|
|
@@ -3081,6 +3179,7 @@ var COMMANDS = [
|
|
|
3081
3179
|
httpMethod: "POST",
|
|
3082
3180
|
path: "/api/v1/price-books/preview",
|
|
3083
3181
|
summary: "Preview Channel List Price",
|
|
3182
|
+
description: "Compute channel list price from a canonical list price using matching enabled rules (or a forced ruleId). Requires `price_books:read`.",
|
|
3084
3183
|
flags: [],
|
|
3085
3184
|
acceptsJsonBody: true,
|
|
3086
3185
|
acceptsFile: false,
|
|
@@ -3093,6 +3192,7 @@ var COMMANDS = [
|
|
|
3093
3192
|
httpMethod: "GET",
|
|
3094
3193
|
path: "/api/v1/products",
|
|
3095
3194
|
summary: "List Products",
|
|
3195
|
+
description: "List products for the authenticated organization with optional filters and pagination. Authenticate with an API key or OAuth bearer token. The organization is taken from that credential; do not send `organizationId`.\n\n### Stock and variants\n\nRows 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.\n\n### Duplicate discovery and merge\n\nUse 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\u201320 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.",
|
|
3096
3196
|
flags: [
|
|
3097
3197
|
{
|
|
3098
3198
|
name: "status",
|
|
@@ -3256,6 +3356,7 @@ var COMMANDS = [
|
|
|
3256
3356
|
httpMethod: "POST",
|
|
3257
3357
|
path: "/api/v1/products",
|
|
3258
3358
|
summary: "Create Product",
|
|
3359
|
+
description: "Queue a single-product create workflow for the authenticated organization. Product enrichment is disabled by default; set `workflow.enrich` to `true` to enable it.\n\n### Request behavior\n\n- `product` contains developer-supplied fields. Unknown fields are preserved as enrichment context.\n- SKU is the unique product upsert identifier.\n- Externally hosted HTTP(S) images are copied to managed R2 storage.\n- `targetMarketplaces` and `targetCountries` are optional; enrichment can run without publishing targets.\n\n### Asynchronous result\n\nThe API returns a job ID. Poll `GET /api/v1/jobs/{jobId}` for completion. Product creation, image ingestion, enrichment, and taxonomy assignment run in the same product workflow job. ACO generation runs separately when enabled; poll `result.geoJobId` for its completion.",
|
|
3259
3360
|
flags: [],
|
|
3260
3361
|
acceptsJsonBody: true,
|
|
3261
3362
|
acceptsFile: false,
|
|
@@ -3268,6 +3369,7 @@ var COMMANDS = [
|
|
|
3268
3369
|
httpMethod: "DELETE",
|
|
3269
3370
|
path: "/api/v1/products/{productId}",
|
|
3270
3371
|
summary: "Delete Product",
|
|
3372
|
+
description: "Soft-delete a product by ID. The product will be marked as deleted but not permanently removed. Call again on a deleted product to permanently delete it. Supports API key Bearer token authentication.",
|
|
3271
3373
|
flags: [
|
|
3272
3374
|
{
|
|
3273
3375
|
name: "productId",
|
|
@@ -3287,6 +3389,7 @@ var COMMANDS = [
|
|
|
3287
3389
|
httpMethod: "GET",
|
|
3288
3390
|
path: "/api/v1/products/{productId}",
|
|
3289
3391
|
summary: "Get Product",
|
|
3392
|
+
description: "Retrieve a single product by ID for the authenticated organization.\n\nAuthenticate with an API key using Bearer token authentication.\n\nWhen available, the response includes generated Agentic Commerce Optimization (ACO) data:\n\n- Profile metadata and FAQs\n- Localization content and cultural notes\n- Intent queries and signals\n- Sources and claims\n\nA parent product returns its variants in `variants`, with each variant's option values, price, stock, image, and marketplace listings.",
|
|
3290
3393
|
flags: [
|
|
3291
3394
|
{
|
|
3292
3395
|
name: "productId",
|
|
@@ -3306,6 +3409,7 @@ var COMMANDS = [
|
|
|
3306
3409
|
httpMethod: "PATCH",
|
|
3307
3410
|
path: "/api/v1/products/{productId}",
|
|
3308
3411
|
summary: "Update Product",
|
|
3412
|
+
description: "Update an existing product by ID. Only provided fields will be updated. Supports API key Bearer token authentication.",
|
|
3309
3413
|
flags: [
|
|
3310
3414
|
{
|
|
3311
3415
|
name: "productId",
|
|
@@ -3325,6 +3429,7 @@ var COMMANDS = [
|
|
|
3325
3429
|
httpMethod: "PATCH",
|
|
3326
3430
|
path: "/api/v1/products/{productId}/cost",
|
|
3327
3431
|
summary: "Update Product Cost",
|
|
3432
|
+
description: "Set catalog cost for one simple product or variant UUID. Cost is Omni-only and never syncs to marketplaces. Prefer `POST /api/v1/products/cost` for Windmill or other bulk jobs.\n\nRequires `catalog:write`. When `costPriceCurrency` differs from the product selling currency and `costPriceFxRate` is omitted, Omni stores an FX quote on the product.",
|
|
3328
3433
|
flags: [
|
|
3329
3434
|
{
|
|
3330
3435
|
name: "productId",
|
|
@@ -3344,6 +3449,7 @@ var COMMANDS = [
|
|
|
3344
3449
|
httpMethod: "POST",
|
|
3345
3450
|
path: "/api/v1/products/{productId}/delist",
|
|
3346
3451
|
summary: "Delist Product",
|
|
3452
|
+
description: "Queue delist for one product on the marketplaces you name. `marketplaces` accepts one or more of shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, and ebay. Each named marketplace must already have a listing; other channels are left untouched. Omit `marketplaces` to delist every existing listing. This does not delete the OmniCommerce product.\n\nPoll GET /api/v1/jobs/{jobId} until data.status is succeeded, partial, or failed. Accepted means the job was queued, not that the marketplace has removed the listing.",
|
|
3347
3453
|
flags: [
|
|
3348
3454
|
{
|
|
3349
3455
|
name: "productId",
|
|
@@ -3363,6 +3469,7 @@ var COMMANDS = [
|
|
|
3363
3469
|
httpMethod: "POST",
|
|
3364
3470
|
path: "/api/v1/products/{productId}/images",
|
|
3365
3471
|
summary: "Upload Product Image",
|
|
3472
|
+
description: "Upload one image to a product's or variant's gallery as multipart/form-data. Requires `catalog:write`.\n\nJPEG, PNG, WebP, AVIF, or HEIC up to 8 MB; WebP, AVIF, and HEIC are stored as JPEG. The image is added at `position`, or at the end. Publish the product to send the new gallery to marketplaces.",
|
|
3366
3473
|
flags: [
|
|
3367
3474
|
{
|
|
3368
3475
|
name: "productId",
|
|
@@ -3382,6 +3489,7 @@ var COMMANDS = [
|
|
|
3382
3489
|
httpMethod: "PATCH",
|
|
3383
3490
|
path: "/api/v1/products/{productId}/inventory",
|
|
3384
3491
|
summary: "Update Product Inventory",
|
|
3492
|
+
description: "Update canonical on-hand inventory for a simple product or variant UUID. Multi-variant parent products must be updated through their variant IDs. A successful quantity change emits `product.inventory.changed` to matching developer webhook subscriptions.\n\n### Authorization\n\nRequires an API credential with `catalog:write`. OmniCommerce derives `organizationId` from that credential; the request body cannot select or override an organization. ERP-managed and multi-source inventory keeps its existing ownership protections.\n\n### Marketplace sync\n\nThe update is Omni-only by default. Set `syncToMarketplaces` to `true` to create one durable inventory outbox job per marketplace account. Omit `targets` to sync every enabled, published account for the product, or provide exact `{ platform, accountId }` targets. Every explicit target is validated before inventory changes. The response contains each job ID and immediate target status; use `GET /api/v1/jobs/{jobId}` for progress.",
|
|
3385
3493
|
flags: [
|
|
3386
3494
|
{
|
|
3387
3495
|
name: "productId",
|
|
@@ -3401,6 +3509,7 @@ var COMMANDS = [
|
|
|
3401
3509
|
httpMethod: "GET",
|
|
3402
3510
|
path: "/api/v1/products/{productId}/listings",
|
|
3403
3511
|
summary: "Get Product Listings",
|
|
3512
|
+
description: "Where a product is listed: each marketplace's store, live or delisted state, item id, buyer-facing URL, and the latest publish attempt with any rejection details. Requires `catalog:read`.\n\nPoll after `POST /api/v1/products/{productId}/publish`.",
|
|
3404
3513
|
flags: [
|
|
3405
3514
|
{
|
|
3406
3515
|
name: "productId",
|
|
@@ -3426,6 +3535,7 @@ var COMMANDS = [
|
|
|
3426
3535
|
httpMethod: "PATCH",
|
|
3427
3536
|
path: "/api/v1/products/{productId}/price",
|
|
3428
3537
|
summary: "Update Product Price",
|
|
3538
|
+
description: "Update the canonical catalog price for a simple product or variant UUID. Multi-variant parent products must be updated through their variant IDs. A successful change emits `product.price.changed` to matching developer webhook subscriptions.\n\n### Authorization\n\nRequires an API credential with `catalog:write`. OmniCommerce derives `organizationId` from that credential; the request body cannot select or override an organization.\n\n### Marketplace sync\n\nThe update is Omni-only by default. Set `syncToMarketplaces` to `true` to queue durable marketplace work. Omit `targets` to sync every enabled, published account for the product, or provide exact `{ platform, accountId }` targets. Every explicit target is validated before the catalog changes. The response contains pollable job IDs and immediate per-target queue status; use `GET /api/v1/jobs/{jobId}` for progress.\n\nAn explicit marketplace push also refreshes matching catalog prices without recording a catalog change. For this unchanged-price refresh, send `Idempotency-Key` to reuse its saved job and exact targets on retries. Use a new key for a new refresh.",
|
|
3429
3539
|
flags: [
|
|
3430
3540
|
{
|
|
3431
3541
|
name: "productId",
|
|
@@ -3445,6 +3555,7 @@ var COMMANDS = [
|
|
|
3445
3555
|
httpMethod: "POST",
|
|
3446
3556
|
path: "/api/v1/products/{productId}/publish",
|
|
3447
3557
|
summary: "Publish Product",
|
|
3558
|
+
description: "### Publishing\n\nQueue durable marketplace publish/update jobs for a product. Omit marketplaces to use every enabled or already listed marketplace, or name the marketplaces to target. Omit updateFields for a full publish with live/draft visibility. Set updateFields to update only saved values for those fields on existing listings with assigned stores; other fields and listing visibility stay unchanged. No new listing is created by a selected-field update.\n\n### Marketplace capabilities\n\nSEO is Shopify-only; highlights support Lazada, TikTok and Amazon; attributes exclude WhatsApp. Category-only updates require a full publish on TikTok and Amazon. Unsupported combinations and missing listings/stores return explicit per-marketplace failures while valid targets continue.\n\n### Completion\n\nAccepted means queued; inspect every result and await every jobId and inventory correlation with jobs.wait, then verify the listings.",
|
|
3448
3559
|
flags: [
|
|
3449
3560
|
{
|
|
3450
3561
|
name: "productId",
|
|
@@ -3464,6 +3575,7 @@ var COMMANDS = [
|
|
|
3464
3575
|
httpMethod: "POST",
|
|
3465
3576
|
path: "/api/v1/products/bulk-import",
|
|
3466
3577
|
summary: "Bulk Import Products from JSON or CSV",
|
|
3578
|
+
description: "Queue a bulk product import for the authenticated organization.\n\nSupply explicit SKU options in each row's `variationAttributes` and native marketplace attributes in `marketplaceAttributes`. Enrichment never infers SKU options. At Zalora publish time, a missing required Size defaults to One Size only when valid for the selected category and supplied size system. Supplied sizes are preserved; missing or incompatible size systems and other required options block publishing. Each row remains a standalone product; no child variants are created for the default.\n\n### Input options\n\n- Upload a CSV (2 MiB) or JSON products file (8 MiB) using `multipart/form-data`.\n- Send JSON with a `products` array of 1\u20135,000 flat product objects (8 MiB request maximum).\n- Send JSON with inline `csvText`.\n- Send JSON referencing a stored `documentId`.\n\n### Asynchronous result\n\nThe API creates import rows, then queues draft creation and AI Review through Inngest. Completed import jobs expose `reviewBatchIds`, `reviewUrls`, and `reviewWarnings`. Set workflow.autoApplyHighConfidence=true with independent workflow.enrichmentAutoApplyThreshold and workflow.taxonomyAutoApplyThreshold (0.62\u20131) to apply qualifying proposals; image changes still require visual approval. autoApproveThreshold is a separate import-row setting, not a Review threshold. Set workflow.publish=true to queue publication to saved stores after every required scope for a product is approved and applied. Both automatic and manual approval resume publishing. Pending, rejected, failed and cancelled scopes block that product while eligible products continue. Poll GET /api/v1/jobs/{jobId}; publishing includes ordered per-product/store receipts and verified publish-job status. Import completed does not mean published.\n\nCancel an in-flight import with `POST /api/v1/jobs/{jobId}/cancel`.",
|
|
3467
3579
|
flags: [],
|
|
3468
3580
|
acceptsJsonBody: true,
|
|
3469
3581
|
acceptsFile: false,
|
|
@@ -3476,6 +3588,7 @@ var COMMANDS = [
|
|
|
3476
3588
|
httpMethod: "GET",
|
|
3477
3589
|
path: "/api/v1/products/bulk-import/retries/{retryJobId}",
|
|
3478
3590
|
summary: "Get Import Retry Progress",
|
|
3591
|
+
description: "Read actual row and review generation progress using an importretry_... handle. Requires catalog:read. success is null while running, true only for successful completion, and false for missing targets, dispatch failure, or stage failures.\n\nRow IDs, review request IDs, errors, and per-stage counts remain available. The same handle works with GET /api/v1/jobs/{jobId} and SDK jobs.wait.",
|
|
3479
3592
|
flags: [
|
|
3480
3593
|
{
|
|
3481
3594
|
name: "retryJobId",
|
|
@@ -3501,6 +3614,7 @@ var COMMANDS = [
|
|
|
3501
3614
|
httpMethod: "POST",
|
|
3502
3615
|
path: "/api/v1/products/bulk-import/retry",
|
|
3503
3616
|
summary: "Retry Failed Import or Review Jobs",
|
|
3617
|
+
description: "Retry 1\u201320 jobs with durable background execution. Requires catalog:write.\n\n### Targets\n\njobIds accepts import UUIDs, bulk_... developer job handles, or review_<batch UUID> for a Review job (including jobs created in the app). Inputs are trimmed, bounded, and deduplicated in first-requested order.\n\n### Retry scope\n\nstages=all retries failed source rows and linked review stages; stages=images retries failed review images only. Completed work, applied products, cancelled stages, and active work are preserved. Optional brandKitIds replaces image-source selection using the kits' current organization-owned websites. Omit it to keep frozen sources. To resume interrupted dispatch, pass an importretry_... handle without overrides; the saved target plan is reused.\n\n### Results\n\nUse the returned ordered results and retryJobIds; partial enqueue failures remain explicit. HTTP 202 means accepted, not successful generation. Read every retry handle with getBulkImportRetry or jobs.wait. Newly imported rows enter the normal Review pipeline.",
|
|
3504
3618
|
flags: [],
|
|
3505
3619
|
acceptsJsonBody: true,
|
|
3506
3620
|
acceptsFile: false,
|
|
@@ -3513,6 +3627,7 @@ var COMMANDS = [
|
|
|
3513
3627
|
httpMethod: "POST",
|
|
3514
3628
|
path: "/api/v1/products/compare-prices",
|
|
3515
3629
|
summary: "Compare Product Market Prices",
|
|
3630
|
+
description: "Research market offers for a batch of OmniCommerce simple product or variant UUIDs using the same BigGo API and Serper Shopping fallback as pricing strategy. Read-only; no prices are changed.\n\n### Authorization\n\nRequires catalog:read. API keys resolve organizationId from the credential; session callers must provide an authorized organizationId.\n\n### Durable batches\n\nAccepts 1\u201350 input entries, trimmed and deduplicated in first-requested order. Returns HTTP 202 and a durable jobId. Retrieve progress and results from GET /api/v1/products/compare-prices/jobs/{jobId} or await jobs.wait in the SDK with a suitable timeout. A client timeout does not cancel the job. Use variant IDs for products with variants. Each listing market has its own durable search step; searches use bounded concurrency and retry failed providers once. Final result.success is true only when every requested product and listing market succeeds. Partial failures remain explicit.\n\nOmit country/gl to compare every recorded listing market. Global Zalora compares its exact country prices in SG, MY, ID, PH, HK, and TW as present on the listing; variant offers use exact SKU/variant identity. An India Shopify store selling in SGD is researched in Singapore because market selection follows selling currency, not the store address. gl overrides country and restricts research to that market. Unsupported currencies and missing country prices are reported without silently skipping listings or converting currencies.\n\nresults[].markets contains separate platform/store/country prices and shopping statistics. Prices come from persisted marketplace snapshots or acknowledged marketplace writes; priceSource and priceAsOf identify the evidence. Published listings without exact price evidence may return catalog research but success is false, with an explicit verification error. Unlisted products use their catalog price/currency. Research does not refresh the connected marketplace listing; refresh stale listing data before comparing.\n\nMarket comparison measures recorded listing list price minus market median (p50), with percentage relative to the median. Catalog fallback comparisons use the explicitly named catalog_price_vs_market_median metric. The product-level currentPrice/currency remain catalog fields; product-level research/comparison are available only for a single market with compatible currency. For multiple markets, consume markets[]. These differences are not recommended selling prices; monetary values are never combined across currencies.\n\nShopping search coverage depends on the provider index; individual marketplaces and listings are not verified.\n\nOffers may refer to different variants, pack sizes, bundles, or similar products. Verify the offer before using its price.\n\nPricing strategy excludes offers from ebay and walmart.",
|
|
3516
3631
|
flags: [],
|
|
3517
3632
|
acceptsJsonBody: true,
|
|
3518
3633
|
acceptsFile: false,
|
|
@@ -3525,6 +3640,7 @@ var COMMANDS = [
|
|
|
3525
3640
|
httpMethod: "GET",
|
|
3526
3641
|
path: "/api/v1/products/compare-prices/jobs/{jobId}",
|
|
3527
3642
|
summary: "Get Product Price Comparison",
|
|
3643
|
+
description: "Read durable batch progress and ordered per-product results. Requires catalog:read and the job's organization.\n\ncompleted means every target was processed; inspect result.success, succeededCount, failedCount, and each result for partial failures. Session callers must supply organizationId.",
|
|
3528
3644
|
flags: [
|
|
3529
3645
|
{
|
|
3530
3646
|
name: "jobId",
|
|
@@ -3550,6 +3666,7 @@ var COMMANDS = [
|
|
|
3550
3666
|
httpMethod: "POST",
|
|
3551
3667
|
path: "/api/v1/products/cost",
|
|
3552
3668
|
summary: "Batch Update Product Cost",
|
|
3669
|
+
description: "Set catalog cost price and currency for one or more products. Cost is Omni-only and never syncs to marketplaces.\n\nEach update targets `productId` or `sku` (Omni `products.sku`). Provide `costPrice` with `costPriceCurrency` when the source amount is not in the product selling currency. If `costPriceFxRate` is omitted and the currencies differ, Omni quotes FX via the canonical FX service and stores the rate on the product.\n\n### Authorization\n\nRequires `catalog:write`. `organizationId` comes from the credential; the body cannot select an organization.\n\n### Limits\n\n`updates` is required, 1\u2013200 items. Duplicate product IDs fail after the first occurrence. `costPrice: null` clears cost and FX.",
|
|
3553
3670
|
flags: [],
|
|
3554
3671
|
acceptsJsonBody: true,
|
|
3555
3672
|
acceptsFile: false,
|
|
@@ -3562,6 +3679,7 @@ var COMMANDS = [
|
|
|
3562
3679
|
httpMethod: "GET",
|
|
3563
3680
|
path: "/api/v1/products/count",
|
|
3564
3681
|
summary: "Count Products",
|
|
3682
|
+
description: "Count matching catalog parent products using the Products page's canonical filters and authorization, without loading rows, pricing, or location data.\n\nProducts are counted once even when multiple listings match. This does not count variants or verify live marketplace status. status is the catalog lifecycle/derived view. All marketplaces are supported. Use storeKeys for exact marketplace/country/account identity.\n\nAuthenticate with a read-only catalog credential; organization comes only from that credential.",
|
|
3565
3683
|
flags: [
|
|
3566
3684
|
{
|
|
3567
3685
|
name: "status",
|
|
@@ -3682,6 +3800,65 @@ var COMMANDS = [
|
|
|
3682
3800
|
acceptsFile: false,
|
|
3683
3801
|
bodyRequired: false
|
|
3684
3802
|
},
|
|
3803
|
+
{
|
|
3804
|
+
trail: ["products", "merge-duplicates"],
|
|
3805
|
+
resourcePath: ["products"],
|
|
3806
|
+
methodName: "mergeDuplicates",
|
|
3807
|
+
httpMethod: "POST",
|
|
3808
|
+
path: "/api/v1/products/duplicates/merge",
|
|
3809
|
+
summary: "Merge Duplicate Products",
|
|
3810
|
+
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.\n\nAll 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. No marketplace listing is delisted, rewritten or republished.\n\nEach 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.\n\nSupports every OmniCommerce marketplace. Variant families, 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.\n\n### Authorization\n\nRequires `catalog:write`. This is a catalog operation with no remote marketplace writes.\n\n### Limits\n\n2\u201320 products and up to 10 groups per request. Pin a reviewed preview with `expectedGroups` to refuse groups that changed since.\n\nSet 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.",
|
|
3811
|
+
flags: [],
|
|
3812
|
+
acceptsJsonBody: true,
|
|
3813
|
+
acceptsFile: false,
|
|
3814
|
+
bodyRequired: true
|
|
3815
|
+
},
|
|
3816
|
+
{
|
|
3817
|
+
trail: ["products", "preview-duplicate-merge"],
|
|
3818
|
+
resourcePath: ["products"],
|
|
3819
|
+
methodName: "previewDuplicateMerge",
|
|
3820
|
+
httpMethod: "POST",
|
|
3821
|
+
path: "/api/v1/products/duplicates/merge-preview",
|
|
3822
|
+
summary: "Preview Duplicate Product Merge",
|
|
3823
|
+
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.\n\nProducts 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.\n\nSupports every OmniCommerce marketplace. All marketplace listings are preserved. Different listing identities in the same store block that group; the merge never delists listings.\n\nDiscover 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.\n\nA 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.\n\n### Authorization\n\nRequires `catalog:read`.",
|
|
3824
|
+
flags: [],
|
|
3825
|
+
acceptsJsonBody: true,
|
|
3826
|
+
acceptsFile: false,
|
|
3827
|
+
bodyRequired: true
|
|
3828
|
+
},
|
|
3829
|
+
{
|
|
3830
|
+
trail: ["products", "get-duplicate-scan"],
|
|
3831
|
+
resourcePath: ["products"],
|
|
3832
|
+
methodName: "getDuplicateScan",
|
|
3833
|
+
httpMethod: "GET",
|
|
3834
|
+
path: "/api/v1/products/duplicates/scan",
|
|
3835
|
+
summary: "Get Duplicate Scan",
|
|
3836
|
+
description: "Read the same organization-scoped duplicate scan status as Products \u2192 Check duplicates. Requires catalog:read. 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.",
|
|
3837
|
+
flags: [
|
|
3838
|
+
{
|
|
3839
|
+
name: "organizationId",
|
|
3840
|
+
flag: "organization-id",
|
|
3841
|
+
required: false,
|
|
3842
|
+
source: "query"
|
|
3843
|
+
}
|
|
3844
|
+
],
|
|
3845
|
+
acceptsJsonBody: false,
|
|
3846
|
+
acceptsFile: false,
|
|
3847
|
+
bodyRequired: false
|
|
3848
|
+
},
|
|
3849
|
+
{
|
|
3850
|
+
trail: ["products", "scan-duplicates"],
|
|
3851
|
+
resourcePath: ["products"],
|
|
3852
|
+
methodName: "scanDuplicates",
|
|
3853
|
+
httpMethod: "POST",
|
|
3854
|
+
path: "/api/v1/products/duplicates/scan",
|
|
3855
|
+
summary: "Scan Duplicate Products",
|
|
3856
|
+
description: "Start the existing durable organization duplicate scan, equivalent to Products \u2192 Check duplicates. Requires catalog:write. 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.",
|
|
3857
|
+
flags: [],
|
|
3858
|
+
acceptsJsonBody: true,
|
|
3859
|
+
acceptsFile: false,
|
|
3860
|
+
bodyRequired: true
|
|
3861
|
+
},
|
|
3685
3862
|
{
|
|
3686
3863
|
trail: ["products", "enrich"],
|
|
3687
3864
|
resourcePath: ["products"],
|
|
@@ -3689,6 +3866,7 @@ var COMMANDS = [
|
|
|
3689
3866
|
httpMethod: "POST",
|
|
3690
3867
|
path: "/api/v1/products/enrich",
|
|
3691
3868
|
summary: "Queue Product Enrichment",
|
|
3869
|
+
description: "Requires catalog:enrich. Queue content enrichment for 1\u20131,000 existing Omni product IDs across all supported marketplaces. Returns 202 after queue submission without awaiting AI completion or publication.\n\n### Enrichment options\n\nFields, instructions and auto-apply settings use the canonical enrichment service. Exclude name from selectedFields to preserve titles. Weight and dimensions are always included; images are not queued here. Optional marketplaceStoreSelections maps each marketplace to an array of connected store IDs. Multiple stores on one marketplace get independent category and attribute reviews in the same review group. Set includeListingCopy=false for taxonomy only. Store countries come from the authenticated organization connections.\n\nautoApplyHighConfidence defaults to false. Independent enrichmentAutoApplyThreshold and taxonomyAutoApplyThreshold accept 0.62\u20131; omitted thresholds use organization settings. Low-confidence or blocked proposals remain in Review. AI usage is billed to the authenticated organization.\n\n### Publishing after approval\n\nSet publish=true (default false) to queue publishing after every required Review scope is approved and applied. This additionally requires catalog:write. Automatic and manual approvals use the same durable continuation. Selected stores are captured at queue time; without explicit destinations the product's saved marketplace assignments are used. Pending, rejected, failed or cancelled scopes block that product while eligible products continue. Accepted publish jobs are distinct from successful marketplace publication. Open links.review to inspect reviews and per-store publishing receipts.",
|
|
3692
3870
|
flags: [],
|
|
3693
3871
|
acceptsJsonBody: true,
|
|
3694
3872
|
acceptsFile: false,
|
|
@@ -3701,6 +3879,7 @@ var COMMANDS = [
|
|
|
3701
3879
|
httpMethod: "GET",
|
|
3702
3880
|
path: "/api/v1/promotions",
|
|
3703
3881
|
summary: "List Promotions",
|
|
3882
|
+
description: "List central promotions for the authenticated organization with filters and offset pagination matching the workspace Promotions listing. Requires `promotions:read`.",
|
|
3704
3883
|
flags: [
|
|
3705
3884
|
{
|
|
3706
3885
|
name: "organizationId",
|
|
@@ -3774,6 +3953,7 @@ var COMMANDS = [
|
|
|
3774
3953
|
httpMethod: "POST",
|
|
3775
3954
|
path: "/api/v1/promotions",
|
|
3776
3955
|
summary: "Create Promotion",
|
|
3956
|
+
description: "Create a central promotion targeting connected stores. Requires `promotions:write`. Fixed-amount discounts resolve currency from the selected store countries.",
|
|
3777
3957
|
flags: [],
|
|
3778
3958
|
acceptsJsonBody: true,
|
|
3779
3959
|
acceptsFile: false,
|
|
@@ -3786,6 +3966,7 @@ var COMMANDS = [
|
|
|
3786
3966
|
httpMethod: "DELETE",
|
|
3787
3967
|
path: "/api/v1/promotions/{promotionId}",
|
|
3788
3968
|
summary: "Delete Promotion",
|
|
3969
|
+
description: "Delete a promotion by ID. Requires `promotions:write`.",
|
|
3789
3970
|
flags: [
|
|
3790
3971
|
{
|
|
3791
3972
|
name: "promotionId",
|
|
@@ -3811,6 +3992,7 @@ var COMMANDS = [
|
|
|
3811
3992
|
httpMethod: "GET",
|
|
3812
3993
|
path: "/api/v1/promotions/{promotionId}",
|
|
3813
3994
|
summary: "Get Promotion",
|
|
3995
|
+
description: "Fetch one promotion by ID, including effective status. Requires `promotions:read`.",
|
|
3814
3996
|
flags: [
|
|
3815
3997
|
{
|
|
3816
3998
|
name: "promotionId",
|
|
@@ -3836,6 +4018,7 @@ var COMMANDS = [
|
|
|
3836
4018
|
httpMethod: "PATCH",
|
|
3837
4019
|
path: "/api/v1/promotions/{promotionId}",
|
|
3838
4020
|
summary: "Update Promotion",
|
|
4021
|
+
description: "Update promotion fields (name, discount, schedule, status, stores). Requires `promotions:write`.",
|
|
3839
4022
|
flags: [
|
|
3840
4023
|
{
|
|
3841
4024
|
name: "promotionId",
|
|
@@ -3861,6 +4044,7 @@ var COMMANDS = [
|
|
|
3861
4044
|
httpMethod: "POST",
|
|
3862
4045
|
path: "/api/v1/promotions/{promotionId}/preview",
|
|
3863
4046
|
summary: "Preview Promotion Prices",
|
|
4047
|
+
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.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
3864
4048
|
flags: [
|
|
3865
4049
|
{
|
|
3866
4050
|
name: "promotionId",
|
|
@@ -3880,6 +4064,7 @@ var COMMANDS = [
|
|
|
3880
4064
|
httpMethod: "DELETE",
|
|
3881
4065
|
path: "/api/v1/promotions/{promotionId}/products",
|
|
3882
4066
|
summary: "Unassign Products from Promotion",
|
|
4067
|
+
description: "Remove product assignments and queue marketplace teardown. Requires `promotions:write`.",
|
|
3883
4068
|
flags: [
|
|
3884
4069
|
{
|
|
3885
4070
|
name: "promotionId",
|
|
@@ -3905,6 +4090,7 @@ var COMMANDS = [
|
|
|
3905
4090
|
httpMethod: "GET",
|
|
3906
4091
|
path: "/api/v1/promotions/{promotionId}/products",
|
|
3907
4092
|
summary: "List Promotion Assignments",
|
|
4093
|
+
description: "List products assigned to a promotion. Requires `promotions:read`.",
|
|
3908
4094
|
flags: [
|
|
3909
4095
|
{
|
|
3910
4096
|
name: "promotionId",
|
|
@@ -3930,6 +4116,7 @@ var COMMANDS = [
|
|
|
3930
4116
|
httpMethod: "POST",
|
|
3931
4117
|
path: "/api/v1/promotions/{promotionId}/products",
|
|
3932
4118
|
summary: "Assign Products to Promotion",
|
|
4119
|
+
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. Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.",
|
|
3933
4120
|
flags: [
|
|
3934
4121
|
{
|
|
3935
4122
|
name: "promotionId",
|
|
@@ -3955,6 +4142,7 @@ var COMMANDS = [
|
|
|
3955
4142
|
httpMethod: "POST",
|
|
3956
4143
|
path: "/api/v1/promotions/{promotionId}/retry",
|
|
3957
4144
|
summary: "Retry Marketplace Delivery",
|
|
4145
|
+
description: "Run marketplace delivery again after a failure, for example once a store is reconnected. Requires `promotions:write`.\n\nYou do not need this to publish a promotion: creating or activating it, editing it while active or scheduled, and assigning products already deliver it, and pausing, ending, or archiving removes it. A retry brings each marketplace back in line with the promotion's current status.",
|
|
3958
4146
|
flags: [
|
|
3959
4147
|
{
|
|
3960
4148
|
name: "promotionId",
|
|
@@ -3980,6 +4168,7 @@ var COMMANDS = [
|
|
|
3980
4168
|
httpMethod: "POST",
|
|
3981
4169
|
path: "/api/v1/promotions/batch",
|
|
3982
4170
|
summary: "Create Promotions with Products",
|
|
4171
|
+
description: "Create 1\u201350 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.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
3983
4172
|
flags: [],
|
|
3984
4173
|
acceptsJsonBody: true,
|
|
3985
4174
|
acceptsFile: false,
|
|
@@ -3992,6 +4181,7 @@ var COMMANDS = [
|
|
|
3992
4181
|
httpMethod: "GET",
|
|
3993
4182
|
path: "/api/v1/promotions/campaign-options",
|
|
3994
4183
|
summary: "Find Promotion Campaigns",
|
|
4184
|
+
description: "Search campaign options with assigned promotions in the authenticated organization.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
3995
4185
|
flags: [
|
|
3996
4186
|
{
|
|
3997
4187
|
name: "organizationId",
|
|
@@ -4017,6 +4207,7 @@ var COMMANDS = [
|
|
|
4017
4207
|
httpMethod: "GET",
|
|
4018
4208
|
path: "/api/v1/promotions/capabilities",
|
|
4019
4209
|
summary: "Get Promotion Marketplace Capabilities",
|
|
4210
|
+
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.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
4020
4211
|
flags: [
|
|
4021
4212
|
{
|
|
4022
4213
|
name: "organizationId",
|
|
@@ -4036,6 +4227,7 @@ var COMMANDS = [
|
|
|
4036
4227
|
httpMethod: "POST",
|
|
4037
4228
|
path: "/api/v1/promotions/delete",
|
|
4038
4229
|
summary: "Delete Promotions",
|
|
4230
|
+
description: "Delete 1\u2013500 promotions with the canonical marketplace cleanup flow. Requires promotions.delete permission. Ordered per-target errors and partial failures remain explicit.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
4039
4231
|
flags: [],
|
|
4040
4232
|
acceptsJsonBody: true,
|
|
4041
4233
|
acceptsFile: false,
|
|
@@ -4048,6 +4240,7 @@ var COMMANDS = [
|
|
|
4048
4240
|
httpMethod: "POST",
|
|
4049
4241
|
path: "/api/v1/promotions/delivery",
|
|
4050
4242
|
summary: "Read Promotion Delivery",
|
|
4243
|
+
description: "Read exact store/assignment delivery evidence for 1\u201350 promotions. A saved or active promotion is not proof that marketplace delivery succeeded. Check every returned deliveryStatuses entry, including explicit unsupported or unavailable states.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
4051
4244
|
flags: [],
|
|
4052
4245
|
acceptsJsonBody: true,
|
|
4053
4246
|
acceptsFile: false,
|
|
@@ -4060,6 +4253,7 @@ var COMMANDS = [
|
|
|
4060
4253
|
httpMethod: "POST",
|
|
4061
4254
|
path: "/api/v1/promotions/product-options",
|
|
4062
4255
|
summary: "Find Eligible Promotion Products",
|
|
4256
|
+
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.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
4063
4257
|
flags: [],
|
|
4064
4258
|
acceptsJsonBody: true,
|
|
4065
4259
|
acceptsFile: false,
|
|
@@ -4072,6 +4266,7 @@ var COMMANDS = [
|
|
|
4072
4266
|
httpMethod: "POST",
|
|
4073
4267
|
path: "/api/v1/promotions/status",
|
|
4074
4268
|
summary: "Set Promotion Statuses",
|
|
4269
|
+
description: "Activate/publish, pause or archive 1\u2013500 promotions. Activation requires promotions.publish permission. Uses the canonical status transition and durable marketplace sync/teardown flow; verify delivery separately.\n\nRequires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
4075
4270
|
flags: [],
|
|
4076
4271
|
acceptsJsonBody: true,
|
|
4077
4272
|
acceptsFile: false,
|
|
@@ -4084,6 +4279,7 @@ var COMMANDS = [
|
|
|
4084
4279
|
httpMethod: "POST",
|
|
4085
4280
|
path: "/api/v1/promotions/validate",
|
|
4086
4281
|
summary: "Validate Promotions",
|
|
4282
|
+
description: "Read-only validation of 1\u201350 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.\n\nRequires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.",
|
|
4087
4283
|
flags: [],
|
|
4088
4284
|
acceptsJsonBody: true,
|
|
4089
4285
|
acceptsFile: false,
|
|
@@ -4096,6 +4292,7 @@ var COMMANDS = [
|
|
|
4096
4292
|
httpMethod: "GET",
|
|
4097
4293
|
path: "/api/v1/returns",
|
|
4098
4294
|
summary: "List Returns",
|
|
4295
|
+
description: "List normalized, PII-free marketplace returns with SKU-level lines. Requires `returns:read`. Use updatedSince and cursor for bootstrap/recovery alongside return webhooks.",
|
|
4099
4296
|
flags: [
|
|
4100
4297
|
{
|
|
4101
4298
|
name: "organizationId",
|
|
@@ -4151,6 +4348,7 @@ var COMMANDS = [
|
|
|
4151
4348
|
httpMethod: "GET",
|
|
4152
4349
|
path: "/api/v1/returns/{returnId}",
|
|
4153
4350
|
summary: "Get Return",
|
|
4351
|
+
description: "Get one normalized, PII-free return by OmniCommerce UUID. Requires `returns:read`; another organization's return returns 404.",
|
|
4154
4352
|
flags: [
|
|
4155
4353
|
{
|
|
4156
4354
|
name: "returnId",
|
|
@@ -4176,6 +4374,7 @@ var COMMANDS = [
|
|
|
4176
4374
|
httpMethod: "GET",
|
|
4177
4375
|
path: "/api/v1/returns/actions",
|
|
4178
4376
|
summary: "Check Return Actions",
|
|
4377
|
+
description: "### Authorization\n\nRequires orders:write.\n\n### Eligibility\n\nRead live marketplace decisions for 1\u201350 OmniCommerce return UUIDs using repeated returnIds query parameters. Refreshes the saved return state through the same service as the order UI. All targets are organization- and store-scoped before marketplace access. Results preserve first-requested order; one provider failure does not block another store. data.success describes eligibility checks, not whether an action is available. Completed, cancelled and other terminal returns have no actions. Check actions.length and limitation; never infer eligibility from status alone. Amazon and WhatsApp currently return explicit processing limitations. Other marketplaces expose only decisions supported by their current API state. No buyer remarks, shipping evidence or raw provider payloads are returned. Pass each chosen action id and version unchanged to POST /api/v1/returns/actions.",
|
|
4179
4378
|
flags: [
|
|
4180
4379
|
{
|
|
4181
4380
|
name: "returnIds",
|
|
@@ -4201,6 +4400,7 @@ var COMMANDS = [
|
|
|
4201
4400
|
httpMethod: "POST",
|
|
4202
4401
|
path: "/api/v1/returns/actions",
|
|
4203
4402
|
summary: "Process Returns",
|
|
4403
|
+
description: "### Authorization\n\nRequires orders:write.\n\n### Submit decisions\n\nQueue 1\u201350 selected return decisions, including a one-element batch for a single return. Use only actionId/version pairs from a fresh eligibility check. Identical duplicate return operations are deduplicated in first-requested order; conflicting duplicates are rejected. requestId is a UUID idempotency key: retry the same key and unchanged operations after a transport failure. An active matching decision is reused; conflicting active decisions return 409. Returns HTTP 202 with every returnId and jobId. The durable worker rechecks current permissions, store identity, eligibility and version immediately before writing, then verifies the marketplace result. Follow links.poll or GET /api/v1/returns/actions/jobs with every jobIds entry; requires orders:read. data.success is true only when all jobs succeeded, so newly queued work has success=false and pendingCount>0. failed and needs_review are terminal failures; needs_review means the marketplace outcome is uncertain and must be checked before another action. Client disconnection does not cancel queued work.",
|
|
4204
4404
|
flags: [],
|
|
4205
4405
|
acceptsJsonBody: true,
|
|
4206
4406
|
acceptsFile: false,
|
|
@@ -4213,6 +4413,7 @@ var COMMANDS = [
|
|
|
4213
4413
|
httpMethod: "GET",
|
|
4214
4414
|
path: "/api/v1/returns/actions/jobs",
|
|
4215
4415
|
summary: "Get Return Action Jobs",
|
|
4416
|
+
description: "### Authorization\n\nRequires orders:read.\n\n### Job outcomes\n\nRead the current state of 1\u201350 return-processing job UUIDs in one request using repeated jobIds parameters. Use every job ID returned by submission. Results preserve first-requested order. pendingCount counts queued, running and submitting; succeededCount counts succeeded; failedCount includes failed and needs_review. data.success is true only if every requested job succeeded. The top-level completed status refers to this lookup, not to the jobs. Missing or cross-organization jobs return 404; jobs outside assigned stores are forbidden. Evidence contains accepted/verified flags and before/after marketplace statuses, without raw provider payloads.",
|
|
4216
4417
|
flags: [
|
|
4217
4418
|
{
|
|
4218
4419
|
name: "jobIds",
|
|
@@ -4238,6 +4439,7 @@ var COMMANDS = [
|
|
|
4238
4439
|
httpMethod: "GET",
|
|
4239
4440
|
path: "/api/v1/returns/orders",
|
|
4240
4441
|
summary: "Get Order Returns",
|
|
4442
|
+
description: "Requires orders:read. Read stored return requests for 1\u201350 order UUIDs using repeated orderIds query parameters.\n\n### Return identity\n\nResults preserve first-requested order and include distinct active and historical return requests. processingEligible is a local candidate flag, not live eligibility. Pass returnId values to GET /api/v1/returns/actions before choosing a decision. Every order is authorized before reading returns, including store restrictions; no buyer data is exposed.",
|
|
4241
4443
|
flags: [
|
|
4242
4444
|
{
|
|
4243
4445
|
name: "orderIds",
|
|
@@ -4263,6 +4465,7 @@ var COMMANDS = [
|
|
|
4263
4465
|
httpMethod: "GET",
|
|
4264
4466
|
path: "/api/v1/reviews",
|
|
4265
4467
|
summary: "List Reviews",
|
|
4468
|
+
description: "List marketplace product reviews, newest first unless `sortBy` says otherwise. Requires `reviews:read`.\n\nUse `priority=unreplied` for a reply queue. `replyRestriction` is null when a reply will be accepted.",
|
|
4266
4469
|
flags: [
|
|
4267
4470
|
{
|
|
4268
4471
|
name: "organizationId",
|
|
@@ -4336,6 +4539,7 @@ var COMMANDS = [
|
|
|
4336
4539
|
httpMethod: "GET",
|
|
4337
4540
|
path: "/api/v1/reviews/{reviewId}",
|
|
4338
4541
|
summary: "Get Review",
|
|
4542
|
+
description: "Read one review by its OmniCommerce UUID. Requires `reviews:read`.",
|
|
4339
4543
|
flags: [
|
|
4340
4544
|
{
|
|
4341
4545
|
name: "reviewId",
|
|
@@ -4361,6 +4565,7 @@ var COMMANDS = [
|
|
|
4361
4565
|
httpMethod: "POST",
|
|
4362
4566
|
path: "/api/v1/reviews/{reviewId}/reply",
|
|
4363
4567
|
summary: "Reply to Review",
|
|
4568
|
+
description: "Reply to one review identified by its OmniCommerce UUID in the URL. Requires `reviews:write`. Supply `reply` or set `generateWithAi: true`. `submit` defaults to true; set false with AI generation to return a draft without posting. Optional `instructions` guide AI writing. AI generation uses organization AI credits.\n\nRead `data.submitted` for confirmed marketplace submission. Generated text is retained when submission fails. Unsupported marketplaces return their capability limitation. Check review state before retrying an unconfirmed submission. Amazon review requests are separate.",
|
|
4364
4569
|
flags: [
|
|
4365
4570
|
{
|
|
4366
4571
|
name: "reviewId",
|
|
@@ -4380,6 +4585,7 @@ var COMMANDS = [
|
|
|
4380
4585
|
httpMethod: "GET",
|
|
4381
4586
|
path: "/api/v1/scripts",
|
|
4382
4587
|
summary: "List Organization Scripts",
|
|
4588
|
+
description: "Discover custom Windmill scripts and their script__ tool names. Uses the same search and active/draft/archived filters as the app. Requires scripts:read. Default all excludes archived scripts; use status=archived to see archives.",
|
|
4383
4589
|
flags: [
|
|
4384
4590
|
{
|
|
4385
4591
|
name: "organizationId",
|
|
@@ -4411,6 +4617,7 @@ var COMMANDS = [
|
|
|
4411
4617
|
httpMethod: "POST",
|
|
4412
4618
|
path: "/api/v1/scripts",
|
|
4413
4619
|
summary: "Create Script",
|
|
4620
|
+
description: "Create an inactive TypeScript script. Optional source uses the canonical parser and 64 KiB UTF-8 limit; omitted source uses the starter. Requires scripts:write. Deploy explicitly before execution.",
|
|
4414
4621
|
flags: [],
|
|
4415
4622
|
acceptsJsonBody: true,
|
|
4416
4623
|
acceptsFile: false,
|
|
@@ -4423,6 +4630,7 @@ var COMMANDS = [
|
|
|
4423
4630
|
httpMethod: "DELETE",
|
|
4424
4631
|
path: "/api/v1/scripts/{scriptId}",
|
|
4425
4632
|
summary: "Archive Script",
|
|
4633
|
+
description: "Archive and deactivate an organization script, retaining version and run history. Requires scripts:write and the automations.delete capability for user credentials.",
|
|
4426
4634
|
flags: [
|
|
4427
4635
|
{
|
|
4428
4636
|
name: "scriptId",
|
|
@@ -4448,6 +4656,7 @@ var COMMANDS = [
|
|
|
4448
4656
|
httpMethod: "GET",
|
|
4449
4657
|
path: "/api/v1/scripts/{scriptId}",
|
|
4450
4658
|
summary: "Get Script",
|
|
4659
|
+
description: "Read script metadata, tool name, and all immutable versions with argument/output JSON schemas. Requires scripts:read. The activeVersionId identifies the current execution schema.",
|
|
4451
4660
|
flags: [
|
|
4452
4661
|
{
|
|
4453
4662
|
name: "scriptId",
|
|
@@ -4473,6 +4682,7 @@ var COMMANDS = [
|
|
|
4473
4682
|
httpMethod: "PATCH",
|
|
4474
4683
|
path: "/api/v1/scripts/{scriptId}",
|
|
4475
4684
|
summary: "Update Script",
|
|
4685
|
+
description: "Update metadata, approval mode, or draft source. Saving source does not change the active immutable deployment. Requires scripts:write.",
|
|
4476
4686
|
flags: [
|
|
4477
4687
|
{
|
|
4478
4688
|
name: "scriptId",
|
|
@@ -4492,6 +4702,7 @@ var COMMANDS = [
|
|
|
4492
4702
|
httpMethod: "POST",
|
|
4493
4703
|
path: "/api/v1/scripts/{scriptId}/activate",
|
|
4494
4704
|
summary: "Activate Script Version",
|
|
4705
|
+
description: "Switch to a previously accepted immutable version belonging to this script, including rollback. Draft/failed versions cannot be activated. Requires scripts:write.",
|
|
4495
4706
|
flags: [
|
|
4496
4707
|
{
|
|
4497
4708
|
name: "scriptId",
|
|
@@ -4511,6 +4722,7 @@ var COMMANDS = [
|
|
|
4511
4722
|
httpMethod: "POST",
|
|
4512
4723
|
path: "/api/v1/scripts/{scriptId}/deploy",
|
|
4513
4724
|
summary: "Deploy Script",
|
|
4725
|
+
description: "Validate TypeScript source and create an immutable Windmill version. activate defaults to true. activate=false saves a draft version; it cannot execute until redeployed and accepted. Requires scripts:write. Does not enable the tool for agents automatically.",
|
|
4514
4726
|
flags: [
|
|
4515
4727
|
{
|
|
4516
4728
|
name: "scriptId",
|
|
@@ -4530,6 +4742,7 @@ var COMMANDS = [
|
|
|
4530
4742
|
httpMethod: "GET",
|
|
4531
4743
|
path: "/api/v1/scripts/{scriptId}/runs",
|
|
4532
4744
|
summary: "List Script Runs",
|
|
4745
|
+
description: "Read recent runs and result/error references through the canonical run service. Requires scripts:read.",
|
|
4533
4746
|
flags: [
|
|
4534
4747
|
{
|
|
4535
4748
|
name: "scriptId",
|
|
@@ -4561,6 +4774,7 @@ var COMMANDS = [
|
|
|
4561
4774
|
httpMethod: "POST",
|
|
4562
4775
|
path: "/api/v1/scripts/{scriptId}/runs",
|
|
4563
4776
|
summary: "Execute Script",
|
|
4777
|
+
description: "Submit a durable run of the active or explicitly pinned accepted version. Requires scripts:execute. Arguments must match its schema and fit 256 KiB.\n\nOptional idempotencyKey identifies one invocation within this organization: reuse only for the same version and arguments.\n\nHTTP 202 retains the run record and does not establish execution success; pass every run.id to scripts.awaitRuns and inspect resultRef/errorRef. Runs use immutable hashes and existing durable reconciliation.",
|
|
4564
4778
|
flags: [
|
|
4565
4779
|
{
|
|
4566
4780
|
name: "scriptId",
|
|
@@ -4580,6 +4794,7 @@ var COMMANDS = [
|
|
|
4580
4794
|
httpMethod: "GET",
|
|
4581
4795
|
path: "/api/v1/scripts/{scriptId}/source",
|
|
4582
4796
|
summary: "Get Script Source",
|
|
4797
|
+
description: "Read current draft source from the organization's Windmill workspace. This may differ from the active version. Requires scripts:read.",
|
|
4583
4798
|
flags: [
|
|
4584
4799
|
{
|
|
4585
4800
|
name: "scriptId",
|
|
@@ -4605,6 +4820,7 @@ var COMMANDS = [
|
|
|
4605
4820
|
httpMethod: "POST",
|
|
4606
4821
|
path: "/api/v1/scripts/jobs/await",
|
|
4607
4822
|
summary: "Read Script Run Results",
|
|
4823
|
+
description: "Refresh 1\u2013100 script run IDs in first-requested order, trimming and deduplicating IDs. Requires scripts:read.\n\nThis is a status snapshot and may return pending jobs; it never submits customer code again. success is true only when all requested runs succeeded. Results retain explicit per-target not_found/unavailable failures.\n\nUse script run IDs with this endpoint; the generic developer jobs API does not resolve them.",
|
|
4608
4824
|
flags: [],
|
|
4609
4825
|
acceptsJsonBody: true,
|
|
4610
4826
|
acceptsFile: false,
|
|
@@ -4617,6 +4833,7 @@ var COMMANDS = [
|
|
|
4617
4833
|
httpMethod: "POST",
|
|
4618
4834
|
path: "/api/v1/scripts/jobs/cancel",
|
|
4619
4835
|
summary: "Cancel Script Runs",
|
|
4836
|
+
description: "Request cancellation for 1\u2013100 run IDs, trimmed and deduplicated in first-requested order. Requires scripts:execute. Check each requested/confirmed/status; request acceptance does not confirm cancellation or roll back prior side effects. success requires every cancellation to be confirmed.",
|
|
4620
4837
|
flags: [],
|
|
4621
4838
|
acceptsJsonBody: true,
|
|
4622
4839
|
acceptsFile: false,
|
|
@@ -4629,6 +4846,7 @@ var COMMANDS = [
|
|
|
4629
4846
|
httpMethod: "GET",
|
|
4630
4847
|
path: "/api/v1/search",
|
|
4631
4848
|
summary: "Search Public Merchant Products",
|
|
4849
|
+
description: "Search across all public merchants and products with optional merchant, pricing, stock, marketplace, and localization filters.",
|
|
4632
4850
|
flags: [
|
|
4633
4851
|
{
|
|
4634
4852
|
name: "currency",
|
|
@@ -4756,6 +4974,7 @@ var COMMANDS = [
|
|
|
4756
4974
|
httpMethod: "POST",
|
|
4757
4975
|
path: "/api/v1/search",
|
|
4758
4976
|
summary: "Search Public Merchant Products",
|
|
4977
|
+
description: "Search across all public merchants and products with optional merchant, pricing, stock, marketplace, and localization filters.",
|
|
4759
4978
|
flags: [
|
|
4760
4979
|
{
|
|
4761
4980
|
name: "currency",
|
|
@@ -4883,6 +5102,7 @@ var COMMANDS = [
|
|
|
4883
5102
|
httpMethod: "GET",
|
|
4884
5103
|
path: "/api/v1/settlements",
|
|
4885
5104
|
summary: "List Settlements",
|
|
5105
|
+
description: "List the latest normalized order-settlement snapshots created by finance ingestion. Requires `settlements:read`. Use updatedSince and cursor for recovery; money remains partitioned by currency.",
|
|
4886
5106
|
flags: [
|
|
4887
5107
|
{
|
|
4888
5108
|
name: "organizationId",
|
|
@@ -4944,6 +5164,7 @@ var COMMANDS = [
|
|
|
4944
5164
|
httpMethod: "POST",
|
|
4945
5165
|
path: "/api/v1/settlements",
|
|
4946
5166
|
summary: "Apply Settlements",
|
|
5167
|
+
description: "Apply marketplace-agnostic settlement lines to existing orders.\n\n### Authentication\n\nRequires `orders:write`.\n\n### What this endpoint does\n\n- Stores every submitted line as marketplace financial evidence.\n- Projects **settled** rows into the order finance ledger.\n- Keeps pending, reversed, and voided rows as evidence only, removing any earlier developer API ledger projection for the same `sourceEventKey`.\n- Recomputes Payment received when a marketplace-specific formula exists. Zalora is currently supported.\n\n### Order matching\n\nOrders are matched by organization, marketplace platform, and exact `externalOrderId`. Include `externalOrderItemId` when an order has multiple lines.\n\n- `accountId` is an exact store match, never a wildcard.\n- `marketplace=zalora` can match Zalora Seller Center orders (`platform=zalora`) and reconciliation-era agentic carts.\n- If the same `externalOrderId` exists in both groups, the line is ambiguous. Pass `accountId` to disambiguate it.\n- Ledger rows retain the platform of the matched order.\n\n### Zalora ITR parity\n\n- Send one `lines[]` entry per report row. `transactionType` can represent Commission, Item Price Credit, ZAP Commitments, Payment Gateway Fee, shipping, penalties, or credits.\n- `settlementStatus=settled` is paid; `pending` is not.\n- Payment received is calculated from Item Price Credit \u2212 ZAP \u2212 Commission ledger entries. Payment gateway, shipping, and penalty entries still post to P&L when settled but are excluded from that formula.\n- Item Price Credit updates Payment received without changing line `paidPrice` or `unitPrice`. Use `PATCH /api/v1/orders/{orderId}` when displayed prices must also change.\n\n### Important limitations\n\nThis is not an order-price API. Selling prices, COGS, and returns belong on `POST /api/v1/orders` or `PATCH /api/v1/orders/{orderId}`. Do not send `paymentReceived`.\n\nThis endpoint does not replace ITR apply for:\n\n- Spreadsheet parsing\n- Updating `paidPrice` or `unitPrice`\n- Automatically marking returned or cancelled lines and restoring return inventory\n- SKU fallback matching\n- Rewriting order currency or totals\n- Rebasing COGS currency\n- Undo or redo\n\nDo not apply the same fee lines through both this API and the Zalora Item Transaction Report tool. Their `source_event_key` namespaces differ (`developer_api:\u2026` and `zalora_report:\u2026`), so Payment received would be counted twice.",
|
|
4947
5168
|
flags: [],
|
|
4948
5169
|
acceptsJsonBody: true,
|
|
4949
5170
|
acceptsFile: false,
|
|
@@ -4956,6 +5177,7 @@ var COMMANDS = [
|
|
|
4956
5177
|
httpMethod: "GET",
|
|
4957
5178
|
path: "/api/v1/settlements/{settlementId}",
|
|
4958
5179
|
summary: "Get Settlement",
|
|
5180
|
+
description: "Get the latest normalized settlement snapshot by stable settlement ID. Requires `settlements:read`.",
|
|
4959
5181
|
flags: [
|
|
4960
5182
|
{
|
|
4961
5183
|
name: "settlementId",
|
|
@@ -4981,6 +5203,7 @@ var COMMANDS = [
|
|
|
4981
5203
|
httpMethod: "POST",
|
|
4982
5204
|
path: "/api/v1/sync",
|
|
4983
5205
|
summary: "Sync Product Commercial Fields",
|
|
5206
|
+
description: "Update price, sale price, or stock quantity in OmniCommerce and queue marketplace sync workers where applicable.",
|
|
4984
5207
|
flags: [],
|
|
4985
5208
|
acceptsJsonBody: true,
|
|
4986
5209
|
acceptsFile: false,
|
|
@@ -4993,6 +5216,7 @@ var COMMANDS = [
|
|
|
4993
5216
|
httpMethod: "GET",
|
|
4994
5217
|
path: "/api/v1/threads/{thread_id}/status",
|
|
4995
5218
|
summary: "Get Thread Status",
|
|
5219
|
+
description: "Poll an AOP execution started by `POST /api/v1/aop/{aopId}/execute`. Requires `aops:read`. Status values are `running`, `completed`, or `failed`.",
|
|
4996
5220
|
flags: [
|
|
4997
5221
|
{
|
|
4998
5222
|
name: "thread_id",
|
|
@@ -5024,6 +5248,7 @@ var COMMANDS = [
|
|
|
5024
5248
|
httpMethod: "GET",
|
|
5025
5249
|
path: "/api/v1/webhook-events",
|
|
5026
5250
|
summary: "List Webhook Events",
|
|
5251
|
+
description: "Pull immutable webhook events for recovery or scheduled reconciliation. Requires `webhooks:manage`. Results are organization-scoped and ordered oldest first; continue with the opaque cursor. This is the pull fallback for a receiver that missed push deliveries.",
|
|
5027
5252
|
flags: [
|
|
5028
5253
|
{
|
|
5029
5254
|
name: "organizationId",
|
|
@@ -5067,6 +5292,7 @@ var COMMANDS = [
|
|
|
5067
5292
|
httpMethod: "GET",
|
|
5068
5293
|
path: "/api/v1/webhooks",
|
|
5069
5294
|
summary: "List Developer Webhooks",
|
|
5295
|
+
description: "List configured developer webhook subscriptions for the authenticated organization.",
|
|
5070
5296
|
flags: [],
|
|
5071
5297
|
acceptsJsonBody: false,
|
|
5072
5298
|
acceptsFile: false,
|
|
@@ -5079,6 +5305,7 @@ var COMMANDS = [
|
|
|
5079
5305
|
httpMethod: "POST",
|
|
5080
5306
|
path: "/api/v1/webhooks",
|
|
5081
5307
|
summary: "Create Developer Webhook",
|
|
5308
|
+
description: "Create a developer webhook subscription for the authenticated organization. The signing secret is returned only once.",
|
|
5082
5309
|
flags: [],
|
|
5083
5310
|
acceptsJsonBody: true,
|
|
5084
5311
|
acceptsFile: false,
|
|
@@ -5091,6 +5318,7 @@ var COMMANDS = [
|
|
|
5091
5318
|
httpMethod: "GET",
|
|
5092
5319
|
path: "/api/v1/zalora/import",
|
|
5093
5320
|
summary: "Get Selected Zalora Import Status",
|
|
5321
|
+
description: "Requires catalog:read. Follow the unchanged links.job URL returned by POST. Reads current state once without waiting.\n\n### Completion\n\ndata.status is pending, running, success, or error; data.terminal and data.success identify completion. data.productIds contains mapped Omni IDs for the supplied product sets. Failed imports remain explicit, including missingExternalIds. The top-level completed status describes this status request, not the import.\n\nKeep the original target IDs: the status lookup resolves those targets and does not prove that a modified selection was part of this job.",
|
|
5094
5322
|
flags: [
|
|
5095
5323
|
{
|
|
5096
5324
|
name: "organizationId",
|
|
@@ -5128,6 +5356,7 @@ var COMMANDS = [
|
|
|
5128
5356
|
httpMethod: "POST",
|
|
5129
5357
|
path: "/api/v1/zalora/import",
|
|
5130
5358
|
summary: "Import Selected Zalora Products",
|
|
5359
|
+
description: "Requires catalog:write. Queue an exact import of 1\u201325 Zalora productSetIds from a connected store. Omit storeId only when one store or one default store is unambiguous.\n\nReturns 202 with links.job for optional status checks and retrieval of Omni product IDs. Only one import may run per store at a time. This endpoint does not invoke an AOP, enrich products, or publish listings.",
|
|
5131
5360
|
flags: [],
|
|
5132
5361
|
acceptsJsonBody: true,
|
|
5133
5362
|
acceptsFile: false,
|
|
@@ -5140,6 +5369,7 @@ var COMMANDS = [
|
|
|
5140
5369
|
httpMethod: "POST",
|
|
5141
5370
|
path: "/ucp/v1/checkout-sessions",
|
|
5142
5371
|
summary: "Create UCP Checkout Session",
|
|
5372
|
+
description: "Create a UCP shopping checkout session against the authenticated organization. The facade translates UCP line items to native agentic checkout sessions, reserves inventory, and returns a UCP checkout resource. Requires `UCP-Agent` and OAuth `checkout:write`.",
|
|
5143
5373
|
flags: [],
|
|
5144
5374
|
acceptsJsonBody: true,
|
|
5145
5375
|
acceptsFile: false,
|
|
@@ -5152,6 +5382,7 @@ var COMMANDS = [
|
|
|
5152
5382
|
httpMethod: "GET",
|
|
5153
5383
|
path: "/ucp/v1/checkout-sessions/{sessionId}",
|
|
5154
5384
|
summary: "Get UCP Checkout Session",
|
|
5385
|
+
description: "Fetch the current UCP checkout resource for a native agentic checkout session. Requires `UCP-Agent` and bearer authentication.",
|
|
5155
5386
|
flags: [
|
|
5156
5387
|
{
|
|
5157
5388
|
name: "sessionId",
|
|
@@ -5177,6 +5408,7 @@ var COMMANDS = [
|
|
|
5177
5408
|
httpMethod: "PATCH",
|
|
5178
5409
|
path: "/ucp/v1/checkout-sessions/{sessionId}",
|
|
5179
5410
|
summary: "Update UCP Checkout Session",
|
|
5411
|
+
description: "Update UCP cart, buyer, fulfillment, or payment rail fields. Provided fields are applied to the native checkout session and inventory reservations are refreshed when line items change. Requires `UCP-Agent` and OAuth `checkout:write`.",
|
|
5180
5412
|
flags: [
|
|
5181
5413
|
{
|
|
5182
5414
|
name: "sessionId",
|
|
@@ -5202,6 +5434,7 @@ var COMMANDS = [
|
|
|
5202
5434
|
httpMethod: "PUT",
|
|
5203
5435
|
path: "/ucp/v1/checkout-sessions/{sessionId}",
|
|
5204
5436
|
summary: "Replace UCP Checkout Session Fields",
|
|
5437
|
+
description: "UCP-compatible update method. Current behavior matches PATCH: provided fields are applied and omitted fields remain unchanged. Requires `UCP-Agent` and OAuth `checkout:write`.",
|
|
5205
5438
|
flags: [
|
|
5206
5439
|
{
|
|
5207
5440
|
name: "sessionId",
|
|
@@ -5227,6 +5460,7 @@ var COMMANDS = [
|
|
|
5227
5460
|
httpMethod: "POST",
|
|
5228
5461
|
path: "/ucp/v1/checkout-sessions/{sessionId}/cancel",
|
|
5229
5462
|
summary: "Cancel UCP Checkout Session",
|
|
5463
|
+
description: "Cancel a ready-for-payment UCP checkout session and release reserved inventory. Requires `UCP-Agent` and OAuth `checkout:write`.",
|
|
5230
5464
|
flags: [
|
|
5231
5465
|
{
|
|
5232
5466
|
name: "sessionId",
|
|
@@ -5252,6 +5486,7 @@ var COMMANDS = [
|
|
|
5252
5486
|
httpMethod: "POST",
|
|
5253
5487
|
path: "/ucp/v1/checkout-sessions/{sessionId}/complete",
|
|
5254
5488
|
summary: "Complete UCP Checkout Session",
|
|
5489
|
+
description: "Settle the selected rail and create a native `agentic` order. Settlement failures return HTTP 402 with the checkout still ready for payment. Requires `UCP-Agent` and OAuth `checkout:write`.",
|
|
5255
5490
|
flags: [
|
|
5256
5491
|
{
|
|
5257
5492
|
name: "sessionId",
|
|
@@ -5277,6 +5512,7 @@ var COMMANDS = [
|
|
|
5277
5512
|
httpMethod: "GET",
|
|
5278
5513
|
path: "/ucp/v1/orders/{orderId}",
|
|
5279
5514
|
summary: "Get UCP Order",
|
|
5515
|
+
description: "Fetch the native OmniCommerce order created by a completed UCP checkout session. Only `agentic` orders are exposed through this facade.",
|
|
5280
5516
|
flags: [
|
|
5281
5517
|
{
|
|
5282
5518
|
name: "orderId",
|
|
@@ -6429,6 +6665,9 @@ function printCommandHelp(command2) {
|
|
|
6429
6665
|
return `omni ${command2.trail.join(" ")}
|
|
6430
6666
|
|
|
6431
6667
|
${command2.summary}
|
|
6668
|
+
${command2.description ? `
|
|
6669
|
+
${command2.description}
|
|
6670
|
+
` : ""}
|
|
6432
6671
|
|
|
6433
6672
|
${command2.httpMethod} ${command2.path}
|
|
6434
6673
|
|