@omni-commerce/sdk 0.22.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/index.cjs +350 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1845 -74
- package/dist/index.d.ts +1845 -74
- package/dist/index.js +350 -57
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -158,7 +158,7 @@ interface paths {
|
|
|
158
158
|
* Manage customer-owned purchase offers
|
|
159
159
|
* @description ### Operations
|
|
160
160
|
*
|
|
161
|
-
* create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe
|
|
161
|
+
* create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe, Qashier or HitPay hosted payment.
|
|
162
162
|
*
|
|
163
163
|
* ### Results and safeguards
|
|
164
164
|
*
|
|
@@ -166,7 +166,7 @@ interface paths {
|
|
|
166
166
|
*
|
|
167
167
|
* ### Payment
|
|
168
168
|
*
|
|
169
|
-
* Completion
|
|
169
|
+
* Completion uses the configured Stripe ACP, x402, Qashier or HitPay rail. Qashier uses authenticated server-side receipts and signed webhooks with a durable expiry deadline. PayNow is available through Qashier or HitPay when enabled in the merchant account; no bank statement import is required. Qashier and HitPay require a full delivery address before payment. Hosted card checkout requires this organization's seller Stripe key and a public HTTPS webhook destination; signed Stripe events and a one-shot durable deadline use the same completion service. The page collects an address within the quoted country. Indeterminate confirmation remains payment_pending and blocks a new payment; x402 uncertainty requires merchant reconciliation. Direct creation honors configured bot verification. Payment completion does not book a carrier or establish delivery.
|
|
170
170
|
*
|
|
171
171
|
* ### Signed offers and buyer agents
|
|
172
172
|
*
|
|
@@ -179,6 +179,55 @@ interface paths {
|
|
|
179
179
|
patch?: never;
|
|
180
180
|
trace?: never;
|
|
181
181
|
};
|
|
182
|
+
"/api/v1/agents/{agentId}/messages": {
|
|
183
|
+
parameters: {
|
|
184
|
+
query?: never;
|
|
185
|
+
header?: never;
|
|
186
|
+
path?: never;
|
|
187
|
+
cookie?: never;
|
|
188
|
+
};
|
|
189
|
+
get?: never;
|
|
190
|
+
put?: never;
|
|
191
|
+
/**
|
|
192
|
+
* Send a message to an agent
|
|
193
|
+
* @description Message the exact built-in or custom agent in the URL, using its saved model, instructions, tools, permissions and Programmatic starting mode.
|
|
194
|
+
*
|
|
195
|
+
* ### Authentication
|
|
196
|
+
* Requires an API key with `agents:invoke`, or a sign-in session. Organization-owned keys use their recorded creator's current membership and agent access; keys without a valid owner are refused. API keys identify their organization; session requests include `organizationId`.
|
|
197
|
+
*
|
|
198
|
+
* ### Conversation and execution
|
|
199
|
+
* - The same caller, agent and `clientThreadKey` continue one conversation. Different callers, agents and organizations are isolated.
|
|
200
|
+
* - No model, prompt or tool overrides are accepted.
|
|
201
|
+
* - `wait=false` queues durable work and returns 202; `wait=true` returns the final reply or pending approvals.
|
|
202
|
+
* - Send `decisions` with the same `clientThreadKey` to approve or reject a paused run.
|
|
203
|
+
*/
|
|
204
|
+
post: operations["post_v1_agents_by_agentid_messages"];
|
|
205
|
+
delete?: never;
|
|
206
|
+
options?: never;
|
|
207
|
+
head?: never;
|
|
208
|
+
patch?: never;
|
|
209
|
+
trace?: never;
|
|
210
|
+
};
|
|
211
|
+
"/api/v1/agents/{agentId}/runs/{runId}": {
|
|
212
|
+
parameters: {
|
|
213
|
+
query?: never;
|
|
214
|
+
header?: never;
|
|
215
|
+
path?: never;
|
|
216
|
+
cookie?: never;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* Get an agent message run
|
|
220
|
+
* @description Read an agent message run belonging to the authenticated caller and the exact agent in the URL. Current organization membership and agent sharing are checked again. Requires agents:invoke.
|
|
221
|
+
*/
|
|
222
|
+
get: operations["get_v1_agents_by_agentid_runs_by_runid"];
|
|
223
|
+
put?: never;
|
|
224
|
+
post?: never;
|
|
225
|
+
delete?: never;
|
|
226
|
+
options?: never;
|
|
227
|
+
head?: never;
|
|
228
|
+
patch?: never;
|
|
229
|
+
trace?: never;
|
|
230
|
+
};
|
|
182
231
|
"/api/v1/agents/general/invoke": {
|
|
183
232
|
parameters: {
|
|
184
233
|
query?: never;
|
|
@@ -740,6 +789,8 @@ interface paths {
|
|
|
740
789
|
* Get Campaign Analytics
|
|
741
790
|
* @description Read the same imported-order campaign analytics as the application. Monetary totals are partitioned by currency. Optional analyticsWindow selects one campaign window; voucher utilisation limitations are explicit.
|
|
742
791
|
*
|
|
792
|
+
* ### Authorization
|
|
793
|
+
*
|
|
743
794
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
744
795
|
*/
|
|
745
796
|
get: operations["get_v1_campaigns_by_campaignid_analytics"];
|
|
@@ -762,6 +813,8 @@ interface paths {
|
|
|
762
813
|
* Get Campaign Notifications
|
|
763
814
|
* @description Read the executing actor's campaign notification preference.
|
|
764
815
|
*
|
|
816
|
+
* ### Authorization
|
|
817
|
+
*
|
|
765
818
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
766
819
|
*/
|
|
767
820
|
get: operations["get_v1_campaigns_by_campaignid_notifications"];
|
|
@@ -769,6 +822,8 @@ interface paths {
|
|
|
769
822
|
* Set Campaign Notifications
|
|
770
823
|
* @description Set only the executing actor's campaign notification preference. Does not change campaign delivery or other members' preferences.
|
|
771
824
|
*
|
|
825
|
+
* ### Authorization
|
|
826
|
+
*
|
|
772
827
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
773
828
|
*/
|
|
774
829
|
put: operations["put_v1_campaigns_by_campaignid_notifications"];
|
|
@@ -790,6 +845,8 @@ interface paths {
|
|
|
790
845
|
* List Campaign Offers
|
|
791
846
|
* @description Filter and page the canonical campaign plan or pending live proposal, with the same attention rules as the campaign editor.
|
|
792
847
|
*
|
|
848
|
+
* ### Authorization
|
|
849
|
+
*
|
|
793
850
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
794
851
|
*/
|
|
795
852
|
get: operations["get_v1_campaigns_by_campaignid_offers"];
|
|
@@ -814,6 +871,8 @@ interface paths {
|
|
|
814
871
|
* Act on Campaigns
|
|
815
872
|
* @description Apply one action to 1–20 reviewed targets. Approve, run, approve_and_run, end, resume, retry, approve_change, discard_change, archive, restore or delete. Requires each expectedRevision and the pending version for live-change decisions. Named-approver and current role/store checks remain enforced. Duplicates execute once; partial failures remain explicit. Starting queues durable delivery; inspect campaign executions to verify marketplace outcomes.
|
|
816
873
|
*
|
|
874
|
+
* ### Authorization
|
|
875
|
+
*
|
|
817
876
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
818
877
|
*/
|
|
819
878
|
post: operations["post_v1_campaigns_actions"];
|
|
@@ -876,6 +935,8 @@ interface paths {
|
|
|
876
935
|
* Import Campaign Workbooks
|
|
877
936
|
* @description Import 1–10 uploaded Excel document IDs. Preview defaults to true; set preview=false to save. Re-upload one document with campaignId to update a campaign. To apply a running campaign immediately, use applyChanges=true with the reviewed expectedRevision and expectedPendingVersion (null when none); only the named approver with publish permission may apply. Changed values and qualifying SKU removals use canonical marketplace validation and durable sync. Requires documents:read in addition to promotions:write. No browser session is required.
|
|
878
937
|
*
|
|
938
|
+
* ### Authorization
|
|
939
|
+
*
|
|
879
940
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
880
941
|
*/
|
|
881
942
|
post: operations["post_v1_campaigns_import"];
|
|
@@ -918,6 +979,8 @@ interface paths {
|
|
|
918
979
|
* Resolve Campaign Promotion Selection
|
|
919
980
|
* @description Read 1–50 eligible draft promotions as campaign offers without creating or publishing promotions. Exact organization/store ownership and existing campaign links are checked.
|
|
920
981
|
*
|
|
982
|
+
* ### Authorization
|
|
983
|
+
*
|
|
921
984
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
922
985
|
*/
|
|
923
986
|
post: operations["post_v1_campaigns_promotion_options"];
|
|
@@ -940,6 +1003,8 @@ interface paths {
|
|
|
940
1003
|
* Validate Campaigns
|
|
941
1004
|
* @description Read-only preflight of 1–10 saved campaign IDs or proposed plans. Uses the same readiness, connected-store and offer validation as approval. shiftToNow returns a proposed shifted plan; syncMode=campaign_start selects Full sync. Neither option saves or publishes. Save the returned plan with the reviewed revision before approve_and_run. Current marketplace delivery is separate execution evidence.
|
|
942
1005
|
*
|
|
1006
|
+
* ### Authorization
|
|
1007
|
+
*
|
|
943
1008
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
944
1009
|
*/
|
|
945
1010
|
post: operations["post_v1_campaigns_validate"];
|
|
@@ -986,7 +1051,13 @@ interface paths {
|
|
|
986
1051
|
put?: never;
|
|
987
1052
|
/**
|
|
988
1053
|
* Start Catalog Operation
|
|
989
|
-
* @description
|
|
1054
|
+
* @description ### Scope
|
|
1055
|
+
*
|
|
1056
|
+
* Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write.
|
|
1057
|
+
*
|
|
1058
|
+
* ### Consistency and progress
|
|
1059
|
+
*
|
|
1060
|
+
* Identical duplicates collapse in requested order; conflicting duplicates fail. An idempotencyKey freezes the original targets and versions. Reusing it with changed input returns 409. expectedUpdatedAt guards reviewed values. Catalog cost never syncs to marketplaces. syncToMarketplaces queues existing canonical marketplace services for every applicable connected listing. A failed target does not stop other targets. The operation continues after the caller disconnects. Read aggregate status, then page failures through bulk.results. Optional sessionId links progress to the initiating user's existing session.
|
|
990
1061
|
*/
|
|
991
1062
|
post: operations["post_v1_catalog_operations"];
|
|
992
1063
|
delete?: never;
|
|
@@ -1035,6 +1106,26 @@ interface paths {
|
|
|
1035
1106
|
patch?: never;
|
|
1036
1107
|
trace?: never;
|
|
1037
1108
|
};
|
|
1109
|
+
"/api/v1/catalog/products": {
|
|
1110
|
+
parameters: {
|
|
1111
|
+
query?: never;
|
|
1112
|
+
header?: never;
|
|
1113
|
+
path?: never;
|
|
1114
|
+
cookie?: never;
|
|
1115
|
+
};
|
|
1116
|
+
/**
|
|
1117
|
+
* Get Public Product Details
|
|
1118
|
+
* @description Read the same stored public product details as /catalog/{productId}, including product capabilities, FAQs, localizations, citations, variants, recorded prices, stock and marketplace offers. No account or AI generation. Missing products are explicit per-target failures.
|
|
1119
|
+
*/
|
|
1120
|
+
get: operations["get_v1_catalog_products"];
|
|
1121
|
+
put?: never;
|
|
1122
|
+
post?: never;
|
|
1123
|
+
delete?: never;
|
|
1124
|
+
options?: never;
|
|
1125
|
+
head?: never;
|
|
1126
|
+
patch?: never;
|
|
1127
|
+
trace?: never;
|
|
1128
|
+
};
|
|
1038
1129
|
"/api/v1/catalog/query": {
|
|
1039
1130
|
parameters: {
|
|
1040
1131
|
query?: never;
|
|
@@ -1046,7 +1137,9 @@ interface paths {
|
|
|
1046
1137
|
put?: never;
|
|
1047
1138
|
/**
|
|
1048
1139
|
* Query Catalog
|
|
1049
|
-
* @description Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match.
|
|
1140
|
+
* @description Filter and project simple products and variants on the server. Requires catalog:read. Defaults to active sellable SKUs, excluding parent containers. costComparison=above_price compares known cost in each product's catalog currency using valid recorded conversions; unknown costs or unavailable conversions do not match.
|
|
1141
|
+
*
|
|
1142
|
+
* Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
|
|
1050
1143
|
*/
|
|
1051
1144
|
post: operations["post_v1_catalog_query"];
|
|
1052
1145
|
delete?: never;
|
|
@@ -1143,6 +1236,30 @@ interface paths {
|
|
|
1143
1236
|
patch?: never;
|
|
1144
1237
|
trace?: never;
|
|
1145
1238
|
};
|
|
1239
|
+
"/api/v1/checkout-sessions/{sessionId}/pay": {
|
|
1240
|
+
parameters: {
|
|
1241
|
+
query?: never;
|
|
1242
|
+
header?: never;
|
|
1243
|
+
path?: never;
|
|
1244
|
+
cookie?: never;
|
|
1245
|
+
};
|
|
1246
|
+
get?: never;
|
|
1247
|
+
put?: never;
|
|
1248
|
+
/**
|
|
1249
|
+
* Start payment for an approved checkout offer
|
|
1250
|
+
* @description Requires checkout:write.
|
|
1251
|
+
*
|
|
1252
|
+
* Starts seller Stripe, Qashier or HitPay hosted checkout. Buyer approval must match the current cart version, total and currency. Qashier and HitPay require a full delivery address before payment.
|
|
1253
|
+
*
|
|
1254
|
+
* Qashier and HitPay support PayNow in Singapore when enabled for the merchant. Payment is confirmed using signed webhooks and authenticated server-side receipts. Closing the buyer page does not cancel or complete payment.
|
|
1255
|
+
*/
|
|
1256
|
+
post: operations["post_v1_checkout_sessions_by_sessionid_pay"];
|
|
1257
|
+
delete?: never;
|
|
1258
|
+
options?: never;
|
|
1259
|
+
head?: never;
|
|
1260
|
+
patch?: never;
|
|
1261
|
+
trace?: never;
|
|
1262
|
+
};
|
|
1146
1263
|
"/api/v1/commerce/jobs/await": {
|
|
1147
1264
|
parameters: {
|
|
1148
1265
|
query?: never;
|
|
@@ -1210,7 +1327,9 @@ interface paths {
|
|
|
1210
1327
|
put?: never;
|
|
1211
1328
|
/**
|
|
1212
1329
|
* Start Commerce Verification
|
|
1213
|
-
* @description Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read.
|
|
1330
|
+
* @description Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read.
|
|
1331
|
+
*
|
|
1332
|
+
* Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
|
|
1214
1333
|
*/
|
|
1215
1334
|
post: operations["post_v1_commerce_state_verify_jobs"];
|
|
1216
1335
|
delete?: never;
|
|
@@ -1290,7 +1409,9 @@ interface paths {
|
|
|
1290
1409
|
};
|
|
1291
1410
|
/**
|
|
1292
1411
|
* Get Document
|
|
1293
|
-
* @description Read one knowledge base document and its indexing status. Requires `documents:read`.
|
|
1412
|
+
* @description Read one knowledge base document and its indexing status. Requires `documents:read`.
|
|
1413
|
+
*
|
|
1414
|
+
* Set includeDownloadUrl=true for a private file URL valid for five minutes, suitable for SDK file downloads. URLs are scoped to the authenticated organization and are not returned for bank statements. Responses must not be cached.
|
|
1294
1415
|
*/
|
|
1295
1416
|
get: operations["get_v1_documents_by_documentid"];
|
|
1296
1417
|
put?: never;
|
|
@@ -1341,6 +1462,70 @@ interface paths {
|
|
|
1341
1462
|
patch?: never;
|
|
1342
1463
|
trace?: never;
|
|
1343
1464
|
};
|
|
1465
|
+
"/api/v1/follow-ups": {
|
|
1466
|
+
parameters: {
|
|
1467
|
+
query?: never;
|
|
1468
|
+
header?: never;
|
|
1469
|
+
path?: never;
|
|
1470
|
+
cookie?: never;
|
|
1471
|
+
};
|
|
1472
|
+
/**
|
|
1473
|
+
* List Follow-ups
|
|
1474
|
+
* @description Your follow-ups on every conversation, plus every follow-up on `threadId` (whoever left it) when you can open that conversation. Waiting follow-ups come first.
|
|
1475
|
+
*
|
|
1476
|
+
* `state` is `waiting`, `fired`, `expired` (it waited past `expiresAt`), `canceled` or `failed` (`failure` says why: its owner lost access, or the conversation was stopped or its last run failed).
|
|
1477
|
+
*
|
|
1478
|
+
* ### Authorization
|
|
1479
|
+
*
|
|
1480
|
+
* Requires `agents:invoke`.
|
|
1481
|
+
*/
|
|
1482
|
+
get: operations["get_v1_follow_ups"];
|
|
1483
|
+
put?: never;
|
|
1484
|
+
/**
|
|
1485
|
+
* Create Follow-up
|
|
1486
|
+
* @description Leave a one-shot follow-up on an assistant conversation you can open. Give exactly one of `at` (ISO 8601 with a timezone), `after` (a duration such as 90m, 4h, 14d or 2w) or `eventType` with an optional CEL `match` over `event` (the event's condition fields, as in AOP event triggers).
|
|
1487
|
+
*
|
|
1488
|
+
* When it fires it continues `threadId` from `note` as you (`then=resume`, the default) or only emails you (`then=notify`). It never interrupts a run in progress: the continuation waits in the conversation's queue. A stopped conversation, or one whose last run failed, is not continued.
|
|
1489
|
+
*
|
|
1490
|
+
* An event follow-up waits `expires` (10d by default) for its event; a timed one may be at most a year ahead.
|
|
1491
|
+
*
|
|
1492
|
+
* ### Authorization
|
|
1493
|
+
*
|
|
1494
|
+
* Requires `agents:invoke` with a person's credential (API key or session); OAuth client credentials act for no one and are refused. The follow-up runs as that person.
|
|
1495
|
+
*/
|
|
1496
|
+
post: operations["post_v1_follow_ups"];
|
|
1497
|
+
delete?: never;
|
|
1498
|
+
options?: never;
|
|
1499
|
+
head?: never;
|
|
1500
|
+
patch?: never;
|
|
1501
|
+
trace?: never;
|
|
1502
|
+
};
|
|
1503
|
+
"/api/v1/follow-ups/cancel": {
|
|
1504
|
+
parameters: {
|
|
1505
|
+
query?: never;
|
|
1506
|
+
header?: never;
|
|
1507
|
+
path?: never;
|
|
1508
|
+
cookie?: never;
|
|
1509
|
+
};
|
|
1510
|
+
get?: never;
|
|
1511
|
+
put?: never;
|
|
1512
|
+
/**
|
|
1513
|
+
* Cancel Follow-ups
|
|
1514
|
+
* @description Cancel your follow-ups that have not fired, so they never fire. One that already fired, expired or was canceled reports why per id; another person's follow-up reads as not found.
|
|
1515
|
+
*
|
|
1516
|
+
* Returns `followUpIds`, `succeededCount`, `failedCount` and ordered `results`; `ok` is true only when every id was canceled.
|
|
1517
|
+
*
|
|
1518
|
+
* ### Authorization
|
|
1519
|
+
*
|
|
1520
|
+
* Requires `agents:invoke`.
|
|
1521
|
+
*/
|
|
1522
|
+
post: operations["post_v1_follow_ups_cancel"];
|
|
1523
|
+
delete?: never;
|
|
1524
|
+
options?: never;
|
|
1525
|
+
head?: never;
|
|
1526
|
+
patch?: never;
|
|
1527
|
+
trace?: never;
|
|
1528
|
+
};
|
|
1344
1529
|
"/api/v1/images/ghost-mannequin": {
|
|
1345
1530
|
parameters: {
|
|
1346
1531
|
query?: never;
|
|
@@ -1766,9 +1951,9 @@ interface paths {
|
|
|
1766
1951
|
};
|
|
1767
1952
|
/**
|
|
1768
1953
|
* Get Order Action Options
|
|
1769
|
-
* @description
|
|
1954
|
+
* @description Read marketplace choices for this order, including seller cancellation reasons for `action=cancel`. Eligible orders can include orders awaiting carrier collection. Requires `orders:write`.
|
|
1770
1955
|
*
|
|
1771
|
-
*
|
|
1956
|
+
* Review the selected reason or fulfillment choice and send its exact `payload` with `POST /api/v1/orders/{orderId}/actions`.
|
|
1772
1957
|
*/
|
|
1773
1958
|
get: operations["get_v1_orders_by_orderid_action_options"];
|
|
1774
1959
|
put?: never;
|
|
@@ -1790,7 +1975,7 @@ interface paths {
|
|
|
1790
1975
|
* List Order Actions
|
|
1791
1976
|
* @description The order's 20 most recent action jobs, newest first, plus its latest successful label job. Requires `orders:read`.
|
|
1792
1977
|
*
|
|
1793
|
-
*
|
|
1978
|
+
* After submission, find the returned job ID here. Read its status for the marketplace outcome and `errorMessage` for failures. A succeeded `labels` job lists its label files in `labels`.
|
|
1794
1979
|
*/
|
|
1795
1980
|
get: operations["get_v1_orders_by_orderid_actions"];
|
|
1796
1981
|
put?: never;
|
|
@@ -1798,7 +1983,7 @@ interface paths {
|
|
|
1798
1983
|
* Queue Order Action
|
|
1799
1984
|
* @description Ship, cancel, generate shipping labels for, or update tracking on a marketplace order. Requires `orders:write`.
|
|
1800
1985
|
*
|
|
1801
|
-
* The marketplace call runs in the background
|
|
1986
|
+
* For `cancel`, send the exact payload of a reviewed cancellation reason from the action options endpoint. The marketplace call runs in the background. The `202` response provides a `jobId`. Poll `GET /api/v1/orders/{orderId}/actions` for its outcome. A repeated `idempotencyKey` with the same request returns `200` with the original job.
|
|
1802
1987
|
*/
|
|
1803
1988
|
post: operations["post_v1_orders_by_orderid_actions"];
|
|
1804
1989
|
delete?: never;
|
|
@@ -1822,7 +2007,7 @@ interface paths {
|
|
|
1822
2007
|
*
|
|
1823
2008
|
* ### Choices
|
|
1824
2009
|
*
|
|
1825
|
-
* Read
|
|
2010
|
+
* Read marketplace choices for `ship`, `cancel`, `labels`, or `update_tracking` for 1–50 UUIDs using repeated `orderIds` parameters. Results preserve first-requested order and report any per-order eligibility or capability errors. For `cancel`, review an available reason for each order and use its exact `payload`. Orders awaiting collection can be eligible when the marketplace permits it. For other actions, supply any fields marked `requiresInput`.
|
|
1826
2011
|
*/
|
|
1827
2012
|
get: operations["get_v1_orders_actions"];
|
|
1828
2013
|
put?: never;
|
|
@@ -1834,11 +2019,9 @@ interface paths {
|
|
|
1834
2019
|
*
|
|
1835
2020
|
* ### Batch submission
|
|
1836
2021
|
*
|
|
1837
|
-
* Queue 1–50 distinct
|
|
2022
|
+
* Queue 1–50 distinct orders with a UUID `requestId` and one operation per order. Each operation carries an `orderId`, `action`, and any marketplace inputs in `payload`. For `cancel`, send the reviewed reason's exact payload from GET /api/v1/orders/actions. All targets are authorized before enqueue. Per-order results preserve request order and report acceptance or errors.
|
|
1838
2023
|
*
|
|
1839
|
-
*
|
|
1840
|
-
*
|
|
1841
|
-
* Retain requestId and unchanged operations for retries; a changed operation with a reused key fails that target. Follow links.poll or GET /api/v1/orders/actions/jobs with every returned jobId (orders:read). The durable worker rechecks initiating permissions before marketplace writes. Label jobs return download URLs after success; the API does not control a physical printer. Completed jobs and partial failures remain explicit.
|
|
2024
|
+
* Retain `requestId` and unchanged operations for retries. Follow `links.poll` with every returned job ID to check the marketplace outcomes. The worker rechecks permissions before each marketplace write.
|
|
1842
2025
|
*/
|
|
1843
2026
|
post: operations["post_v1_orders_actions"];
|
|
1844
2027
|
delete?: never;
|
|
@@ -1862,7 +2045,7 @@ interface paths {
|
|
|
1862
2045
|
*
|
|
1863
2046
|
* ### Outcomes and labels
|
|
1864
2047
|
*
|
|
1865
|
-
* Read
|
|
2048
|
+
* Read 1–50 jobs using repeated `jobIds` parameters. Results preserve first-requested order. `data.success` requires every job to succeed. `pendingCount` includes queued and running jobs. `failedCount` includes failed and unsupported jobs. Amazon cancellations can stay running while its feed is processed. Successful label jobs return download links. A missing or cross-organization job returns 404. Current store restrictions apply.
|
|
1866
2049
|
*/
|
|
1867
2050
|
get: operations["get_v1_orders_actions_jobs"];
|
|
1868
2051
|
put?: never;
|
|
@@ -1938,7 +2121,13 @@ interface paths {
|
|
|
1938
2121
|
* Create Price Book Rule
|
|
1939
2122
|
* @description Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.
|
|
1940
2123
|
*
|
|
2124
|
+
* ### Pricing
|
|
2125
|
+
*
|
|
1941
2126
|
* `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.
|
|
2127
|
+
*
|
|
2128
|
+
* ### Direct checkout
|
|
2129
|
+
*
|
|
2130
|
+
* The Direct checkout channel (`agentic_checkout`) applies immediately to direct checkout and public headline prices, defaults to catalog price with zero markup when no enabled rule matches, and requires null/omitted storeId and country. Marketplace rules only price their own offers; Direct checkout rules require no marketplace sync.
|
|
1942
2131
|
*/
|
|
1943
2132
|
post: operations["post_v1_price_books"];
|
|
1944
2133
|
delete?: never;
|
|
@@ -2342,6 +2531,62 @@ interface paths {
|
|
|
2342
2531
|
patch?: never;
|
|
2343
2532
|
trace?: never;
|
|
2344
2533
|
};
|
|
2534
|
+
"/api/v1/products/bulk-update": {
|
|
2535
|
+
parameters: {
|
|
2536
|
+
query?: never;
|
|
2537
|
+
header?: never;
|
|
2538
|
+
path?: never;
|
|
2539
|
+
cookie?: never;
|
|
2540
|
+
};
|
|
2541
|
+
/**
|
|
2542
|
+
* Get Bulk Product Update Options
|
|
2543
|
+
* @description List active stock-file sources used by Omni Bulk Update, including manual warehouses and supported CSV sources. Requires catalog:read and inventory.read.
|
|
2544
|
+
*
|
|
2545
|
+
* Use an eligible sourceId before starting inventory updates. Ask the seller to choose when multiple sources are eligible.
|
|
2546
|
+
*/
|
|
2547
|
+
get: operations["get_v1_products_bulk_update"];
|
|
2548
|
+
put?: never;
|
|
2549
|
+
/**
|
|
2550
|
+
* Bulk Update Product Prices and Stock
|
|
2551
|
+
* @description Update existing catalog SKUs from 1–10 uploaded CSV or Excel documentIds, with up to 10,000 rows per file. Requires catalog:write and the corresponding product or inventory capabilities.
|
|
2552
|
+
*
|
|
2553
|
+
* ### File and source selection
|
|
2554
|
+
*
|
|
2555
|
+
* Exact SKU matching preserves zero values and rejects duplicate, ambiguous, or unknown SKUs. Inventory needs an authorized manual or CSV sourceId or locationId. Explicit column names override detection. syncToMarketplaces defaults to true. Use marketplaces to limit which existing listings are synced.
|
|
2556
|
+
*
|
|
2557
|
+
* ### Track the results
|
|
2558
|
+
*
|
|
2559
|
+
* Pass every saved import reference to products.bulkUpdateStatus. Results preserve document order. The workflow runs after the request returns. Applied inventory means source balances were saved and listing sync was queued.
|
|
2560
|
+
*/
|
|
2561
|
+
post: operations["post_v1_products_bulk_update"];
|
|
2562
|
+
delete?: never;
|
|
2563
|
+
options?: never;
|
|
2564
|
+
head?: never;
|
|
2565
|
+
patch?: never;
|
|
2566
|
+
trace?: never;
|
|
2567
|
+
};
|
|
2568
|
+
"/api/v1/products/bulk-update/status": {
|
|
2569
|
+
parameters: {
|
|
2570
|
+
query?: never;
|
|
2571
|
+
header?: never;
|
|
2572
|
+
path?: never;
|
|
2573
|
+
cookie?: never;
|
|
2574
|
+
};
|
|
2575
|
+
get?: never;
|
|
2576
|
+
put?: never;
|
|
2577
|
+
/**
|
|
2578
|
+
* Get Bulk Product Update Status
|
|
2579
|
+
* @description Read up to 20 saved imports in request order. Requires catalog:read and the corresponding product or inventory read capabilities. Imports are deduplicated by kind and importId.
|
|
2580
|
+
*
|
|
2581
|
+
* Pending imports are incomplete. Results report invalid or unknown rows and missing organization-scoped imports. Use includeRows with rowOffset and rowLimit for up to 100 rows per import. The result describes saved catalog stock.
|
|
2582
|
+
*/
|
|
2583
|
+
post: operations["post_v1_products_bulk_update_status"];
|
|
2584
|
+
delete?: never;
|
|
2585
|
+
options?: never;
|
|
2586
|
+
head?: never;
|
|
2587
|
+
patch?: never;
|
|
2588
|
+
trace?: never;
|
|
2589
|
+
};
|
|
2345
2590
|
"/api/v1/products/compare-prices": {
|
|
2346
2591
|
parameters: {
|
|
2347
2592
|
query?: never;
|
|
@@ -2471,15 +2716,15 @@ interface paths {
|
|
|
2471
2716
|
* Merge Duplicate Products
|
|
2472
2717
|
* @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.
|
|
2473
2718
|
*
|
|
2474
|
-
* All marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group.
|
|
2719
|
+
* All marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group. Standalone-only merges do not publish. When variants remain, variantStrategy selects keeping the master's variant set or merging compatible source variants, and the same operation automatically publishes the resulting variants to every preserved store listing. Live/draft visibility is retained; the marketplace may require a replacement listing for an incompatible variant structure.
|
|
2475
2720
|
*
|
|
2476
2721
|
* Each group commits independently; the response lists every group's outcome. Sources with inventory history or immutable order composition snapshots must be reconciled before archiving so returns and stock replays keep their targets.
|
|
2477
2722
|
*
|
|
2478
|
-
* Supports every OmniCommerce marketplace. Variant
|
|
2723
|
+
* Supports every OmniCommerce marketplace. Variant merging requires an existing variant master, unambiguous SKU/option mappings and compatible dimensions. Bundles and products in different currencies cannot be merged. A stock-connected product may be kept as master; it cannot be archived into another product. Use preview masterSelections to choose an allowed master. Variant groups contain at most 200 child products.
|
|
2479
2724
|
*
|
|
2480
2725
|
* ### Authorization
|
|
2481
2726
|
*
|
|
2482
|
-
* Requires `catalog:write`.
|
|
2727
|
+
* Requires `catalog:write`. Variant merging also rechecks products.publish authorization before committing and before each store dispatch. Publishing uses the canonical durable marketplace jobs. Inspect groups[].publishResults and await every returned publish_job correlation together before reporting marketplace completion. Queue acceptance is not completion. Retry the same merge to resume failed store dispatches without repeating the catalog merge; a publishing failure does not roll back an already committed merge.
|
|
2483
2728
|
*
|
|
2484
2729
|
* ### Limits
|
|
2485
2730
|
*
|
|
@@ -2535,13 +2780,17 @@ interface paths {
|
|
|
2535
2780
|
};
|
|
2536
2781
|
/**
|
|
2537
2782
|
* Get Duplicate Scan
|
|
2538
|
-
* @description Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read.
|
|
2783
|
+
* @description Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read.
|
|
2784
|
+
*
|
|
2785
|
+
* 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.
|
|
2539
2786
|
*/
|
|
2540
2787
|
get: operations["get_v1_products_duplicates_scan"];
|
|
2541
2788
|
put?: never;
|
|
2542
2789
|
/**
|
|
2543
2790
|
* Scan Duplicate Products
|
|
2544
|
-
* @description Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write.
|
|
2791
|
+
* @description Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write.
|
|
2792
|
+
*
|
|
2793
|
+
* 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.
|
|
2545
2794
|
*/
|
|
2546
2795
|
post: operations["post_v1_products_duplicates_scan"];
|
|
2547
2796
|
delete?: never;
|
|
@@ -2645,6 +2894,8 @@ interface paths {
|
|
|
2645
2894
|
* Preview Promotion Prices
|
|
2646
2895
|
* @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.
|
|
2647
2896
|
*
|
|
2897
|
+
* ### Authorization
|
|
2898
|
+
*
|
|
2648
2899
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2649
2900
|
*/
|
|
2650
2901
|
post: operations["post_v1_promotions_by_promotionid_preview"];
|
|
@@ -2669,7 +2920,9 @@ interface paths {
|
|
|
2669
2920
|
put?: never;
|
|
2670
2921
|
/**
|
|
2671
2922
|
* Assign Products to Promotion
|
|
2672
|
-
* @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.
|
|
2923
|
+
* @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.
|
|
2924
|
+
*
|
|
2925
|
+
* Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.
|
|
2673
2926
|
*/
|
|
2674
2927
|
post: operations["post_v1_promotions_by_promotionid_products"];
|
|
2675
2928
|
/**
|
|
@@ -2717,6 +2970,8 @@ interface paths {
|
|
|
2717
2970
|
* Create Promotions with Products
|
|
2718
2971
|
* @description Create 1–50 promotions using the shared flat promotion-write contract, with qualifying products and per-product discounts. Set promotion.status=draft explicitly when preparing drafts; otherwise the canonical creation flow activates promotions and requires publish permission. Saved IDs and delivery evidence are retained on partial delivery failure; retry those IDs rather than creating duplicates.
|
|
2719
2972
|
*
|
|
2973
|
+
* ### Authorization
|
|
2974
|
+
*
|
|
2720
2975
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2721
2976
|
*/
|
|
2722
2977
|
post: operations["post_v1_promotions_batch"];
|
|
@@ -2737,6 +2992,8 @@ interface paths {
|
|
|
2737
2992
|
* Find Promotion Campaigns
|
|
2738
2993
|
* @description Search campaign options with assigned promotions in the authenticated organization.
|
|
2739
2994
|
*
|
|
2995
|
+
* ### Authorization
|
|
2996
|
+
*
|
|
2740
2997
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2741
2998
|
*/
|
|
2742
2999
|
get: operations["get_v1_promotions_campaign_options"];
|
|
@@ -2759,6 +3016,8 @@ interface paths {
|
|
|
2759
3016
|
* Get Promotion Marketplace Capabilities
|
|
2760
3017
|
* @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.
|
|
2761
3018
|
*
|
|
3019
|
+
* ### Authorization
|
|
3020
|
+
*
|
|
2762
3021
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2763
3022
|
*/
|
|
2764
3023
|
get: operations["get_v1_promotions_capabilities"];
|
|
@@ -2783,6 +3042,8 @@ interface paths {
|
|
|
2783
3042
|
* Delete Promotions
|
|
2784
3043
|
* @description Delete 1–500 promotions with the canonical marketplace cleanup flow. Requires promotions.delete permission. Ordered per-target errors and partial failures remain explicit.
|
|
2785
3044
|
*
|
|
3045
|
+
* ### Authorization
|
|
3046
|
+
*
|
|
2786
3047
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2787
3048
|
*/
|
|
2788
3049
|
post: operations["post_v1_promotions_delete"];
|
|
@@ -2805,6 +3066,8 @@ interface paths {
|
|
|
2805
3066
|
* Read Promotion Delivery
|
|
2806
3067
|
* @description Read exact store/assignment delivery evidence for 1–50 promotions. A saved or active promotion is not proof that marketplace delivery succeeded. Check every returned deliveryStatuses entry, including explicit unsupported or unavailable states.
|
|
2807
3068
|
*
|
|
3069
|
+
* ### Authorization
|
|
3070
|
+
*
|
|
2808
3071
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2809
3072
|
*/
|
|
2810
3073
|
post: operations["post_v1_promotions_delivery"];
|
|
@@ -2827,6 +3090,8 @@ interface paths {
|
|
|
2827
3090
|
* Find Eligible Promotion Products
|
|
2828
3091
|
* @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.
|
|
2829
3092
|
*
|
|
3093
|
+
* ### Authorization
|
|
3094
|
+
*
|
|
2830
3095
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2831
3096
|
*/
|
|
2832
3097
|
post: operations["post_v1_promotions_product_options"];
|
|
@@ -2849,6 +3114,8 @@ interface paths {
|
|
|
2849
3114
|
* Set Promotion Statuses
|
|
2850
3115
|
* @description Activate/publish, pause or archive 1–500 promotions. Activation requires promotions.publish permission. Uses the canonical status transition and durable marketplace sync/teardown flow; verify delivery separately.
|
|
2851
3116
|
*
|
|
3117
|
+
* ### Authorization
|
|
3118
|
+
*
|
|
2852
3119
|
* Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2853
3120
|
*/
|
|
2854
3121
|
post: operations["post_v1_promotions_status"];
|
|
@@ -2871,6 +3138,8 @@ interface paths {
|
|
|
2871
3138
|
* Validate Promotions
|
|
2872
3139
|
* @description Read-only validation of 1–50 saved promotion IDs or proposed definitions and product IDs. Reports marketplace terms, connected-store targeting and qualifying-product issues per target. Publishing still revalidates current state and can encounter marketplace API rejections.
|
|
2873
3140
|
*
|
|
3141
|
+
* ### Authorization
|
|
3142
|
+
*
|
|
2874
3143
|
* Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
2875
3144
|
*/
|
|
2876
3145
|
post: operations["post_v1_promotions_validate"];
|
|
@@ -2920,6 +3189,28 @@ interface paths {
|
|
|
2920
3189
|
patch?: never;
|
|
2921
3190
|
trace?: never;
|
|
2922
3191
|
};
|
|
3192
|
+
"/api/v1/returns/{returnId}/evidence": {
|
|
3193
|
+
parameters: {
|
|
3194
|
+
query?: never;
|
|
3195
|
+
header?: never;
|
|
3196
|
+
path?: never;
|
|
3197
|
+
cookie?: never;
|
|
3198
|
+
};
|
|
3199
|
+
get?: never;
|
|
3200
|
+
put?: never;
|
|
3201
|
+
/**
|
|
3202
|
+
* Upload Return Rejection Evidence
|
|
3203
|
+
* @description Requires `orders:write`. For a rejection choice with `input.evidenceUpload: true`, upload one JPEG or PNG image up to 5 MB.
|
|
3204
|
+
*
|
|
3205
|
+
* Use the receipt and filename in `input.evidence` when submitting the reviewed rejection. A rejection can include up to six images. Each receipt is scoped to its return and expires after 24 hours.
|
|
3206
|
+
*/
|
|
3207
|
+
post: operations["post_v1_returns_by_returnid_evidence"];
|
|
3208
|
+
delete?: never;
|
|
3209
|
+
options?: never;
|
|
3210
|
+
head?: never;
|
|
3211
|
+
patch?: never;
|
|
3212
|
+
trace?: never;
|
|
3213
|
+
};
|
|
2923
3214
|
"/api/v1/returns/actions": {
|
|
2924
3215
|
parameters: {
|
|
2925
3216
|
query?: never;
|
|
@@ -6310,12 +6601,11 @@ interface operations {
|
|
|
6310
6601
|
content: {
|
|
6311
6602
|
"application/json":
|
|
6312
6603
|
| {
|
|
6604
|
+
/** @enum {string} */
|
|
6605
|
+
environment?: "live" | "sandbox";
|
|
6313
6606
|
offers: {
|
|
6314
|
-
/**
|
|
6315
|
-
|
|
6316
|
-
* @enum {string}
|
|
6317
|
-
*/
|
|
6318
|
-
paymentRail?: "acp_stripe" | "x402";
|
|
6607
|
+
/** @enum {string} */
|
|
6608
|
+
paymentRail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
6319
6609
|
items: {
|
|
6320
6610
|
productId: string;
|
|
6321
6611
|
quantity: number;
|
|
@@ -6445,6 +6735,263 @@ interface operations {
|
|
|
6445
6735
|
};
|
|
6446
6736
|
};
|
|
6447
6737
|
};
|
|
6738
|
+
post_v1_agents_by_agentid_messages: {
|
|
6739
|
+
parameters: {
|
|
6740
|
+
query?: never;
|
|
6741
|
+
header?: never;
|
|
6742
|
+
path: {
|
|
6743
|
+
agentId: string;
|
|
6744
|
+
};
|
|
6745
|
+
cookie?: never;
|
|
6746
|
+
};
|
|
6747
|
+
requestBody: {
|
|
6748
|
+
content: {
|
|
6749
|
+
/**
|
|
6750
|
+
* @example {
|
|
6751
|
+
* "message": "Summarize today's orders.",
|
|
6752
|
+
* "clientThreadKey": "daily-report",
|
|
6753
|
+
* "wait": true
|
|
6754
|
+
* }
|
|
6755
|
+
*/
|
|
6756
|
+
"application/json": {
|
|
6757
|
+
organizationId?: string;
|
|
6758
|
+
message?: string;
|
|
6759
|
+
/** @default default */
|
|
6760
|
+
clientThreadKey?: string;
|
|
6761
|
+
/** @default false */
|
|
6762
|
+
wait?: boolean;
|
|
6763
|
+
decisions?: {
|
|
6764
|
+
/** @enum {string} */
|
|
6765
|
+
action: "approve" | "reject";
|
|
6766
|
+
reason?: string;
|
|
6767
|
+
}[];
|
|
6768
|
+
};
|
|
6769
|
+
};
|
|
6770
|
+
};
|
|
6771
|
+
responses: {
|
|
6772
|
+
/** @description The agent's verbatim final reply or pending approvals. */
|
|
6773
|
+
200: {
|
|
6774
|
+
headers: {
|
|
6775
|
+
[name: string]: unknown;
|
|
6776
|
+
};
|
|
6777
|
+
content: {
|
|
6778
|
+
"application/json": {
|
|
6779
|
+
agentId: string;
|
|
6780
|
+
threadKey: string;
|
|
6781
|
+
runId: string;
|
|
6782
|
+
threadId: string;
|
|
6783
|
+
/** @enum {string} */
|
|
6784
|
+
status:
|
|
6785
|
+
| "accepted"
|
|
6786
|
+
| "running"
|
|
6787
|
+
| "completed"
|
|
6788
|
+
| "awaiting_approval"
|
|
6789
|
+
| "failed";
|
|
6790
|
+
reply: string | null;
|
|
6791
|
+
approvals:
|
|
6792
|
+
| {
|
|
6793
|
+
interrupt_instance_id: string;
|
|
6794
|
+
tool_name: string | null;
|
|
6795
|
+
tool_args: unknown;
|
|
6796
|
+
message: string;
|
|
6797
|
+
}[]
|
|
6798
|
+
| null;
|
|
6799
|
+
error: string | null;
|
|
6800
|
+
};
|
|
6801
|
+
};
|
|
6802
|
+
};
|
|
6803
|
+
/** @description Accepted for durable execution. */
|
|
6804
|
+
202: {
|
|
6805
|
+
headers: {
|
|
6806
|
+
/** @description Caller-scoped status URL for this agent's run. */
|
|
6807
|
+
Location?: string;
|
|
6808
|
+
/** @description Seconds to wait before reading an open run again. */
|
|
6809
|
+
"Retry-After"?: number;
|
|
6810
|
+
[name: string]: unknown;
|
|
6811
|
+
};
|
|
6812
|
+
content: {
|
|
6813
|
+
"application/json": {
|
|
6814
|
+
agentId: string;
|
|
6815
|
+
threadKey: string;
|
|
6816
|
+
runId: string;
|
|
6817
|
+
threadId: string;
|
|
6818
|
+
/** @enum {string} */
|
|
6819
|
+
status:
|
|
6820
|
+
| "accepted"
|
|
6821
|
+
| "running"
|
|
6822
|
+
| "completed"
|
|
6823
|
+
| "awaiting_approval"
|
|
6824
|
+
| "failed";
|
|
6825
|
+
reply: string | null;
|
|
6826
|
+
approvals:
|
|
6827
|
+
| {
|
|
6828
|
+
interrupt_instance_id: string;
|
|
6829
|
+
tool_name: string | null;
|
|
6830
|
+
tool_args: unknown;
|
|
6831
|
+
message: string;
|
|
6832
|
+
}[]
|
|
6833
|
+
| null;
|
|
6834
|
+
error: string | null;
|
|
6835
|
+
};
|
|
6836
|
+
};
|
|
6837
|
+
};
|
|
6838
|
+
/** @description Invalid message, decisions or organization scope. */
|
|
6839
|
+
400: {
|
|
6840
|
+
headers: {
|
|
6841
|
+
[name: string]: unknown;
|
|
6842
|
+
};
|
|
6843
|
+
content?: never;
|
|
6844
|
+
};
|
|
6845
|
+
/** @description A valid Bearer API key or sign-in session is required. */
|
|
6846
|
+
401: {
|
|
6847
|
+
headers: {
|
|
6848
|
+
[name: string]: unknown;
|
|
6849
|
+
};
|
|
6850
|
+
content?: never;
|
|
6851
|
+
};
|
|
6852
|
+
/** @description Insufficient AI credits. */
|
|
6853
|
+
402: {
|
|
6854
|
+
headers: {
|
|
6855
|
+
[name: string]: unknown;
|
|
6856
|
+
};
|
|
6857
|
+
content?: never;
|
|
6858
|
+
};
|
|
6859
|
+
/** @description Missing agents:invoke scope, inactive agent, revoked key, or the credential owner lacks organization membership or agent sharing access. */
|
|
6860
|
+
403: {
|
|
6861
|
+
headers: {
|
|
6862
|
+
[name: string]: unknown;
|
|
6863
|
+
};
|
|
6864
|
+
content?: never;
|
|
6865
|
+
};
|
|
6866
|
+
/** @description The run does not belong to this agent and caller. */
|
|
6867
|
+
404: {
|
|
6868
|
+
headers: {
|
|
6869
|
+
[name: string]: unknown;
|
|
6870
|
+
};
|
|
6871
|
+
content?: never;
|
|
6872
|
+
};
|
|
6873
|
+
/** @description This conversation already has an active run, or there is no matching pending approval. */
|
|
6874
|
+
409: {
|
|
6875
|
+
headers: {
|
|
6876
|
+
[name: string]: unknown;
|
|
6877
|
+
};
|
|
6878
|
+
content?: never;
|
|
6879
|
+
};
|
|
6880
|
+
/** @description The agent run failed. */
|
|
6881
|
+
500: {
|
|
6882
|
+
headers: {
|
|
6883
|
+
[name: string]: unknown;
|
|
6884
|
+
};
|
|
6885
|
+
content?: never;
|
|
6886
|
+
};
|
|
6887
|
+
/** @description The waiting request timed out. The error includes the stored run ID. */
|
|
6888
|
+
504: {
|
|
6889
|
+
headers: {
|
|
6890
|
+
[name: string]: unknown;
|
|
6891
|
+
};
|
|
6892
|
+
content?: never;
|
|
6893
|
+
};
|
|
6894
|
+
};
|
|
6895
|
+
};
|
|
6896
|
+
get_v1_agents_by_agentid_runs_by_runid: {
|
|
6897
|
+
parameters: {
|
|
6898
|
+
query?: {
|
|
6899
|
+
/** @description Required for sign-in sessions. API keys already identify their organization. */
|
|
6900
|
+
organizationId?: string;
|
|
6901
|
+
};
|
|
6902
|
+
header?: never;
|
|
6903
|
+
path: {
|
|
6904
|
+
agentId: string;
|
|
6905
|
+
runId: string;
|
|
6906
|
+
};
|
|
6907
|
+
cookie?: never;
|
|
6908
|
+
};
|
|
6909
|
+
requestBody?: never;
|
|
6910
|
+
responses: {
|
|
6911
|
+
/** @description Current run status, reply and approvals. */
|
|
6912
|
+
200: {
|
|
6913
|
+
headers: {
|
|
6914
|
+
/** @description Seconds to wait before reading an open run again. */
|
|
6915
|
+
"Retry-After"?: number;
|
|
6916
|
+
[name: string]: unknown;
|
|
6917
|
+
};
|
|
6918
|
+
content: {
|
|
6919
|
+
"application/json": {
|
|
6920
|
+
agentId: string;
|
|
6921
|
+
threadKey: string;
|
|
6922
|
+
runId: string;
|
|
6923
|
+
threadId: string;
|
|
6924
|
+
/** @enum {string} */
|
|
6925
|
+
status:
|
|
6926
|
+
| "accepted"
|
|
6927
|
+
| "running"
|
|
6928
|
+
| "completed"
|
|
6929
|
+
| "awaiting_approval"
|
|
6930
|
+
| "failed";
|
|
6931
|
+
reply: string | null;
|
|
6932
|
+
approvals:
|
|
6933
|
+
| {
|
|
6934
|
+
interrupt_instance_id: string;
|
|
6935
|
+
tool_name: string | null;
|
|
6936
|
+
tool_args: unknown;
|
|
6937
|
+
message: string;
|
|
6938
|
+
}[]
|
|
6939
|
+
| null;
|
|
6940
|
+
error: string | null;
|
|
6941
|
+
};
|
|
6942
|
+
};
|
|
6943
|
+
};
|
|
6944
|
+
/** @description Invalid message, decisions or organization scope. */
|
|
6945
|
+
400: {
|
|
6946
|
+
headers: {
|
|
6947
|
+
[name: string]: unknown;
|
|
6948
|
+
};
|
|
6949
|
+
content?: never;
|
|
6950
|
+
};
|
|
6951
|
+
/** @description A valid Bearer API key or sign-in session is required. */
|
|
6952
|
+
401: {
|
|
6953
|
+
headers: {
|
|
6954
|
+
[name: string]: unknown;
|
|
6955
|
+
};
|
|
6956
|
+
content?: never;
|
|
6957
|
+
};
|
|
6958
|
+
/** @description Insufficient AI credits. */
|
|
6959
|
+
402: {
|
|
6960
|
+
headers: {
|
|
6961
|
+
[name: string]: unknown;
|
|
6962
|
+
};
|
|
6963
|
+
content?: never;
|
|
6964
|
+
};
|
|
6965
|
+
/** @description Missing agents:invoke scope, inactive agent, revoked key, or the credential owner lacks organization membership or agent sharing access. */
|
|
6966
|
+
403: {
|
|
6967
|
+
headers: {
|
|
6968
|
+
[name: string]: unknown;
|
|
6969
|
+
};
|
|
6970
|
+
content?: never;
|
|
6971
|
+
};
|
|
6972
|
+
/** @description The run does not belong to this agent and caller. */
|
|
6973
|
+
404: {
|
|
6974
|
+
headers: {
|
|
6975
|
+
[name: string]: unknown;
|
|
6976
|
+
};
|
|
6977
|
+
content?: never;
|
|
6978
|
+
};
|
|
6979
|
+
/** @description This conversation already has an active run, or there is no matching pending approval. */
|
|
6980
|
+
409: {
|
|
6981
|
+
headers: {
|
|
6982
|
+
[name: string]: unknown;
|
|
6983
|
+
};
|
|
6984
|
+
content?: never;
|
|
6985
|
+
};
|
|
6986
|
+
/** @description The agent run failed. */
|
|
6987
|
+
500: {
|
|
6988
|
+
headers: {
|
|
6989
|
+
[name: string]: unknown;
|
|
6990
|
+
};
|
|
6991
|
+
content?: never;
|
|
6992
|
+
};
|
|
6993
|
+
};
|
|
6994
|
+
};
|
|
6448
6995
|
post_v1_agents_general_invoke: {
|
|
6449
6996
|
parameters: {
|
|
6450
6997
|
query?: never;
|
|
@@ -14207,6 +14754,68 @@ interface operations {
|
|
|
14207
14754
|
};
|
|
14208
14755
|
};
|
|
14209
14756
|
};
|
|
14757
|
+
get_v1_catalog_products: {
|
|
14758
|
+
parameters: {
|
|
14759
|
+
query: {
|
|
14760
|
+
/** @description One to ten comma-separated product IDs. Trimmed and deduplicated in requested order. Singular productId is rejected. */
|
|
14761
|
+
productIds: string[];
|
|
14762
|
+
};
|
|
14763
|
+
header?: never;
|
|
14764
|
+
path?: never;
|
|
14765
|
+
cookie?: never;
|
|
14766
|
+
};
|
|
14767
|
+
requestBody?: never;
|
|
14768
|
+
responses: {
|
|
14769
|
+
/** @description Success */
|
|
14770
|
+
200: {
|
|
14771
|
+
headers: {
|
|
14772
|
+
[name: string]: unknown;
|
|
14773
|
+
};
|
|
14774
|
+
content: {
|
|
14775
|
+
"application/json": {
|
|
14776
|
+
ok?: boolean;
|
|
14777
|
+
/** @default public_products_v1 */
|
|
14778
|
+
apiVersion: string;
|
|
14779
|
+
};
|
|
14780
|
+
};
|
|
14781
|
+
};
|
|
14782
|
+
/** @description Bad Request */
|
|
14783
|
+
400: {
|
|
14784
|
+
headers: {
|
|
14785
|
+
[name: string]: unknown;
|
|
14786
|
+
};
|
|
14787
|
+
content?: never;
|
|
14788
|
+
};
|
|
14789
|
+
/** @description Unauthorized */
|
|
14790
|
+
401: {
|
|
14791
|
+
headers: {
|
|
14792
|
+
[name: string]: unknown;
|
|
14793
|
+
};
|
|
14794
|
+
content?: never;
|
|
14795
|
+
};
|
|
14796
|
+
/** @description Insufficient Credits */
|
|
14797
|
+
402: {
|
|
14798
|
+
headers: {
|
|
14799
|
+
[name: string]: unknown;
|
|
14800
|
+
};
|
|
14801
|
+
content?: never;
|
|
14802
|
+
};
|
|
14803
|
+
/** @description Forbidden */
|
|
14804
|
+
403: {
|
|
14805
|
+
headers: {
|
|
14806
|
+
[name: string]: unknown;
|
|
14807
|
+
};
|
|
14808
|
+
content?: never;
|
|
14809
|
+
};
|
|
14810
|
+
/** @description Internal Server Error */
|
|
14811
|
+
500: {
|
|
14812
|
+
headers: {
|
|
14813
|
+
[name: string]: unknown;
|
|
14814
|
+
};
|
|
14815
|
+
content?: never;
|
|
14816
|
+
};
|
|
14817
|
+
};
|
|
14818
|
+
};
|
|
14210
14819
|
post_v1_catalog_query: {
|
|
14211
14820
|
parameters: {
|
|
14212
14821
|
query?: never;
|
|
@@ -14395,13 +15004,19 @@ interface operations {
|
|
|
14395
15004
|
* }
|
|
14396
15005
|
*/
|
|
14397
15006
|
"application/json": {
|
|
15007
|
+
/**
|
|
15008
|
+
* @description Immutable offer environment. Sandbox simulates payments and keeps sessions/orders in separate storage without live inventory, fulfilment, messages or charges. Both modes may run concurrently. Sandbox paymentProof must be {sandboxOutcome: 'succeeded' | 'declined'} with exact approval.
|
|
15009
|
+
* @default live
|
|
15010
|
+
* @enum {string}
|
|
15011
|
+
*/
|
|
15012
|
+
environment?: "live" | "sandbox";
|
|
14398
15013
|
/** @description Optional for OAuth clients bound to one organization; required when the caller can access multiple organizations. */
|
|
14399
15014
|
organizationId?: string;
|
|
14400
15015
|
/**
|
|
14401
|
-
* @
|
|
15016
|
+
* @description When omitted, use the merchant's configured payment destination: Stripe, Qashier, HitPay, then x402.
|
|
14402
15017
|
* @enum {string}
|
|
14403
15018
|
*/
|
|
14404
|
-
paymentRail?: "acp_stripe" | "x402";
|
|
15019
|
+
paymentRail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14405
15020
|
items: {
|
|
14406
15021
|
/** @description OmniCommerce product UUID. */
|
|
14407
15022
|
productId: string;
|
|
@@ -14456,6 +15071,11 @@ interface operations {
|
|
|
14456
15071
|
/** @default agentic_checkout_v1 */
|
|
14457
15072
|
apiVersion: string;
|
|
14458
15073
|
session?: {
|
|
15074
|
+
/**
|
|
15075
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15076
|
+
* @enum {string}
|
|
15077
|
+
*/
|
|
15078
|
+
environment?: "live" | "sandbox";
|
|
14459
15079
|
id: string;
|
|
14460
15080
|
organizationId: string;
|
|
14461
15081
|
/** @enum {string} */
|
|
@@ -14466,7 +15086,7 @@ interface operations {
|
|
|
14466
15086
|
| "cancelled"
|
|
14467
15087
|
| "expired";
|
|
14468
15088
|
/** @enum {string} */
|
|
14469
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15089
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14470
15090
|
currency: string;
|
|
14471
15091
|
subtotalAmount?: number;
|
|
14472
15092
|
shippingAmount?: number;
|
|
@@ -14570,6 +15190,11 @@ interface operations {
|
|
|
14570
15190
|
/** @default agentic_checkout_v1 */
|
|
14571
15191
|
apiVersion: string;
|
|
14572
15192
|
session?: {
|
|
15193
|
+
/**
|
|
15194
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15195
|
+
* @enum {string}
|
|
15196
|
+
*/
|
|
15197
|
+
environment?: "live" | "sandbox";
|
|
14573
15198
|
id: string;
|
|
14574
15199
|
organizationId: string;
|
|
14575
15200
|
/** @enum {string} */
|
|
@@ -14580,7 +15205,7 @@ interface operations {
|
|
|
14580
15205
|
| "cancelled"
|
|
14581
15206
|
| "expired";
|
|
14582
15207
|
/** @enum {string} */
|
|
14583
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15208
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14584
15209
|
currency: string;
|
|
14585
15210
|
subtotalAmount?: number;
|
|
14586
15211
|
shippingAmount?: number;
|
|
@@ -14668,7 +15293,7 @@ interface operations {
|
|
|
14668
15293
|
content: {
|
|
14669
15294
|
"application/json": {
|
|
14670
15295
|
/** @enum {string} */
|
|
14671
|
-
paymentRail?: "acp_stripe" | "x402";
|
|
15296
|
+
paymentRail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14672
15297
|
items?: {
|
|
14673
15298
|
/** @description OmniCommerce product UUID. */
|
|
14674
15299
|
productId: string;
|
|
@@ -14723,6 +15348,11 @@ interface operations {
|
|
|
14723
15348
|
/** @default agentic_checkout_v1 */
|
|
14724
15349
|
apiVersion: string;
|
|
14725
15350
|
session?: {
|
|
15351
|
+
/**
|
|
15352
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15353
|
+
* @enum {string}
|
|
15354
|
+
*/
|
|
15355
|
+
environment?: "live" | "sandbox";
|
|
14726
15356
|
id: string;
|
|
14727
15357
|
organizationId: string;
|
|
14728
15358
|
/** @enum {string} */
|
|
@@ -14733,7 +15363,7 @@ interface operations {
|
|
|
14733
15363
|
| "cancelled"
|
|
14734
15364
|
| "expired";
|
|
14735
15365
|
/** @enum {string} */
|
|
14736
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15366
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14737
15367
|
currency: string;
|
|
14738
15368
|
subtotalAmount?: number;
|
|
14739
15369
|
shippingAmount?: number;
|
|
@@ -14835,7 +15465,7 @@ interface operations {
|
|
|
14835
15465
|
content: {
|
|
14836
15466
|
"application/json": {
|
|
14837
15467
|
/** @enum {string} */
|
|
14838
|
-
paymentRail?: "acp_stripe" | "x402";
|
|
15468
|
+
paymentRail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14839
15469
|
items?: {
|
|
14840
15470
|
/** @description OmniCommerce product UUID. */
|
|
14841
15471
|
productId: string;
|
|
@@ -14890,6 +15520,11 @@ interface operations {
|
|
|
14890
15520
|
/** @default agentic_checkout_v1 */
|
|
14891
15521
|
apiVersion: string;
|
|
14892
15522
|
session?: {
|
|
15523
|
+
/**
|
|
15524
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15525
|
+
* @enum {string}
|
|
15526
|
+
*/
|
|
15527
|
+
environment?: "live" | "sandbox";
|
|
14893
15528
|
id: string;
|
|
14894
15529
|
organizationId: string;
|
|
14895
15530
|
/** @enum {string} */
|
|
@@ -14900,7 +15535,7 @@ interface operations {
|
|
|
14900
15535
|
| "cancelled"
|
|
14901
15536
|
| "expired";
|
|
14902
15537
|
/** @enum {string} */
|
|
14903
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15538
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
14904
15539
|
currency: string;
|
|
14905
15540
|
subtotalAmount?: number;
|
|
14906
15541
|
shippingAmount?: number;
|
|
@@ -15011,6 +15646,11 @@ interface operations {
|
|
|
15011
15646
|
/** @default agentic_checkout_v1 */
|
|
15012
15647
|
apiVersion: string;
|
|
15013
15648
|
session?: {
|
|
15649
|
+
/**
|
|
15650
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15651
|
+
* @enum {string}
|
|
15652
|
+
*/
|
|
15653
|
+
environment?: "live" | "sandbox";
|
|
15014
15654
|
id: string;
|
|
15015
15655
|
organizationId: string;
|
|
15016
15656
|
/** @enum {string} */
|
|
@@ -15021,7 +15661,7 @@ interface operations {
|
|
|
15021
15661
|
| "cancelled"
|
|
15022
15662
|
| "expired";
|
|
15023
15663
|
/** @enum {string} */
|
|
15024
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15664
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
15025
15665
|
currency: string;
|
|
15026
15666
|
subtotalAmount?: number;
|
|
15027
15667
|
shippingAmount?: number;
|
|
@@ -15143,6 +15783,11 @@ interface operations {
|
|
|
15143
15783
|
/** @default agentic_checkout_v1 */
|
|
15144
15784
|
apiVersion: string;
|
|
15145
15785
|
session?: {
|
|
15786
|
+
/**
|
|
15787
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15788
|
+
* @enum {string}
|
|
15789
|
+
*/
|
|
15790
|
+
environment?: "live" | "sandbox";
|
|
15146
15791
|
id: string;
|
|
15147
15792
|
organizationId: string;
|
|
15148
15793
|
/** @enum {string} */
|
|
@@ -15153,7 +15798,7 @@ interface operations {
|
|
|
15153
15798
|
| "cancelled"
|
|
15154
15799
|
| "expired";
|
|
15155
15800
|
/** @enum {string} */
|
|
15156
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15801
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
15157
15802
|
currency: string;
|
|
15158
15803
|
subtotalAmount?: number;
|
|
15159
15804
|
shippingAmount?: number;
|
|
@@ -15229,6 +15874,11 @@ interface operations {
|
|
|
15229
15874
|
/** @default agentic_checkout_v1 */
|
|
15230
15875
|
apiVersion: string;
|
|
15231
15876
|
session?: {
|
|
15877
|
+
/**
|
|
15878
|
+
* @description Sandbox is explicit; omitted on legacy live sessions. Immutable after creation.
|
|
15879
|
+
* @enum {string}
|
|
15880
|
+
*/
|
|
15881
|
+
environment?: "live" | "sandbox";
|
|
15232
15882
|
id: string;
|
|
15233
15883
|
organizationId: string;
|
|
15234
15884
|
/** @enum {string} */
|
|
@@ -15239,7 +15889,7 @@ interface operations {
|
|
|
15239
15889
|
| "cancelled"
|
|
15240
15890
|
| "expired";
|
|
15241
15891
|
/** @enum {string} */
|
|
15242
|
-
paymentRail: "acp_stripe" | "x402";
|
|
15892
|
+
paymentRail: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
15243
15893
|
currency: string;
|
|
15244
15894
|
subtotalAmount?: number;
|
|
15245
15895
|
shippingAmount?: number;
|
|
@@ -15320,6 +15970,76 @@ interface operations {
|
|
|
15320
15970
|
};
|
|
15321
15971
|
};
|
|
15322
15972
|
};
|
|
15973
|
+
post_v1_checkout_sessions_by_sessionid_pay: {
|
|
15974
|
+
parameters: {
|
|
15975
|
+
query?: never;
|
|
15976
|
+
header?: never;
|
|
15977
|
+
path: {
|
|
15978
|
+
sessionId: string;
|
|
15979
|
+
};
|
|
15980
|
+
cookie?: never;
|
|
15981
|
+
};
|
|
15982
|
+
requestBody: {
|
|
15983
|
+
content: {
|
|
15984
|
+
"application/json": {
|
|
15985
|
+
approval: {
|
|
15986
|
+
cartVersion: number;
|
|
15987
|
+
totalAmount: number;
|
|
15988
|
+
currency: string;
|
|
15989
|
+
};
|
|
15990
|
+
};
|
|
15991
|
+
};
|
|
15992
|
+
};
|
|
15993
|
+
responses: {
|
|
15994
|
+
/** @description Hosted checkout URL. */
|
|
15995
|
+
200: {
|
|
15996
|
+
headers: {
|
|
15997
|
+
[name: string]: unknown;
|
|
15998
|
+
};
|
|
15999
|
+
content: {
|
|
16000
|
+
"application/json": {
|
|
16001
|
+
/** @constant */
|
|
16002
|
+
success: true;
|
|
16003
|
+
sessionId: string;
|
|
16004
|
+
/** Format: uri */
|
|
16005
|
+
checkoutUrl: string;
|
|
16006
|
+
/** Format: date-time */
|
|
16007
|
+
paymentExpiresAt: string;
|
|
16008
|
+
} & {
|
|
16009
|
+
[key: string]: unknown;
|
|
16010
|
+
};
|
|
16011
|
+
};
|
|
16012
|
+
};
|
|
16013
|
+
/** @description Invalid approval, unsupported payment currency or missing delivery details. */
|
|
16014
|
+
400: {
|
|
16015
|
+
headers: {
|
|
16016
|
+
[name: string]: unknown;
|
|
16017
|
+
};
|
|
16018
|
+
content?: never;
|
|
16019
|
+
};
|
|
16020
|
+
/** @description Checkout disabled or organization access denied. */
|
|
16021
|
+
403: {
|
|
16022
|
+
headers: {
|
|
16023
|
+
[name: string]: unknown;
|
|
16024
|
+
};
|
|
16025
|
+
content?: never;
|
|
16026
|
+
};
|
|
16027
|
+
/** @description Offer changed, payment not configured or offer no longer payable. */
|
|
16028
|
+
409: {
|
|
16029
|
+
headers: {
|
|
16030
|
+
[name: string]: unknown;
|
|
16031
|
+
};
|
|
16032
|
+
content?: never;
|
|
16033
|
+
};
|
|
16034
|
+
/** @description Gateway unavailable; retry the same offer. */
|
|
16035
|
+
503: {
|
|
16036
|
+
headers: {
|
|
16037
|
+
[name: string]: unknown;
|
|
16038
|
+
};
|
|
16039
|
+
content?: never;
|
|
16040
|
+
};
|
|
16041
|
+
};
|
|
16042
|
+
};
|
|
15323
16043
|
post_v1_commerce_jobs_await: {
|
|
15324
16044
|
parameters: {
|
|
15325
16045
|
query?: never;
|
|
@@ -16424,6 +17144,331 @@ interface operations {
|
|
|
16424
17144
|
};
|
|
16425
17145
|
};
|
|
16426
17146
|
};
|
|
17147
|
+
get_v1_follow_ups: {
|
|
17148
|
+
parameters: {
|
|
17149
|
+
query?: {
|
|
17150
|
+
/** @description Also list every follow-up on this conversation. */
|
|
17151
|
+
threadId?: string;
|
|
17152
|
+
/** @description 1–50; 20 when omitted. */
|
|
17153
|
+
limit?: number;
|
|
17154
|
+
/** @description Required for session auth. Optional for API keys, which already belong to one organization. */
|
|
17155
|
+
organizationId?: string;
|
|
17156
|
+
};
|
|
17157
|
+
header?: never;
|
|
17158
|
+
path?: never;
|
|
17159
|
+
cookie?: never;
|
|
17160
|
+
};
|
|
17161
|
+
requestBody?: never;
|
|
17162
|
+
responses: {
|
|
17163
|
+
/** @description The follow-ups. */
|
|
17164
|
+
200: {
|
|
17165
|
+
headers: {
|
|
17166
|
+
[name: string]: unknown;
|
|
17167
|
+
};
|
|
17168
|
+
content: {
|
|
17169
|
+
"application/json": {
|
|
17170
|
+
ok?: boolean;
|
|
17171
|
+
operationId?: string;
|
|
17172
|
+
status?: string;
|
|
17173
|
+
data?: {
|
|
17174
|
+
followUps?: {
|
|
17175
|
+
/** Format: uuid */
|
|
17176
|
+
id: string;
|
|
17177
|
+
threadId: string;
|
|
17178
|
+
ownerUserId?: string;
|
|
17179
|
+
/** @enum {string} */
|
|
17180
|
+
state: "waiting" | "fired" | "expired" | "canceled" | "failed";
|
|
17181
|
+
/** @enum {string} */
|
|
17182
|
+
trigger: "schedule" | "event";
|
|
17183
|
+
/** Format: date-time */
|
|
17184
|
+
fireAt?: string | null;
|
|
17185
|
+
eventType?: string | null;
|
|
17186
|
+
/** @description CEL condition; empty when none */
|
|
17187
|
+
match?: string;
|
|
17188
|
+
note: string;
|
|
17189
|
+
/** @enum {string} */
|
|
17190
|
+
then: "resume" | "notify";
|
|
17191
|
+
/** Format: date-time */
|
|
17192
|
+
expiresAt: string;
|
|
17193
|
+
/** Format: date-time */
|
|
17194
|
+
firedAt?: string | null;
|
|
17195
|
+
failure?: string | null;
|
|
17196
|
+
/** Format: date-time */
|
|
17197
|
+
createdAt?: string;
|
|
17198
|
+
/** Format: uri */
|
|
17199
|
+
url?: string | null;
|
|
17200
|
+
}[];
|
|
17201
|
+
};
|
|
17202
|
+
};
|
|
17203
|
+
};
|
|
17204
|
+
};
|
|
17205
|
+
/** @description Invalid payload, or a follow-up the request cannot make. */
|
|
17206
|
+
400: {
|
|
17207
|
+
headers: {
|
|
17208
|
+
[name: string]: unknown;
|
|
17209
|
+
};
|
|
17210
|
+
content?: never;
|
|
17211
|
+
};
|
|
17212
|
+
/** @description Unauthorized */
|
|
17213
|
+
401: {
|
|
17214
|
+
headers: {
|
|
17215
|
+
[name: string]: unknown;
|
|
17216
|
+
};
|
|
17217
|
+
content?: never;
|
|
17218
|
+
};
|
|
17219
|
+
/** @description Missing agents:invoke scope or Assistant access, or an OAuth client credential: follow-ups belong to a person (API key or session). */
|
|
17220
|
+
403: {
|
|
17221
|
+
headers: {
|
|
17222
|
+
[name: string]: unknown;
|
|
17223
|
+
};
|
|
17224
|
+
content?: never;
|
|
17225
|
+
};
|
|
17226
|
+
/** @description Internal Server Error */
|
|
17227
|
+
500: {
|
|
17228
|
+
headers: {
|
|
17229
|
+
[name: string]: unknown;
|
|
17230
|
+
};
|
|
17231
|
+
content?: never;
|
|
17232
|
+
};
|
|
17233
|
+
};
|
|
17234
|
+
};
|
|
17235
|
+
post_v1_follow_ups: {
|
|
17236
|
+
parameters: {
|
|
17237
|
+
query?: never;
|
|
17238
|
+
header?: never;
|
|
17239
|
+
path?: never;
|
|
17240
|
+
cookie?: never;
|
|
17241
|
+
};
|
|
17242
|
+
requestBody: {
|
|
17243
|
+
content: {
|
|
17244
|
+
/**
|
|
17245
|
+
* @example {
|
|
17246
|
+
* "threadId": "thread_123",
|
|
17247
|
+
* "after": "7d",
|
|
17248
|
+
* "note": "Compare SKU A-1's units sold over the 7 days since the price cut with the 7 days before; if there is no lift, propose reverting the price."
|
|
17249
|
+
* }
|
|
17250
|
+
*/
|
|
17251
|
+
"application/json": {
|
|
17252
|
+
/**
|
|
17253
|
+
* Format: date-time
|
|
17254
|
+
* @description Future ISO 8601 time with timezone. Use only one trigger.
|
|
17255
|
+
*/
|
|
17256
|
+
at?: string;
|
|
17257
|
+
/** @description Delay such as 90m, 4h, 14d or 2w. */
|
|
17258
|
+
after?: string;
|
|
17259
|
+
/**
|
|
17260
|
+
* @description Fire on this event's first matching occurrence.
|
|
17261
|
+
* @enum {string}
|
|
17262
|
+
*/
|
|
17263
|
+
eventType?:
|
|
17264
|
+
| "telegram.message.received"
|
|
17265
|
+
| "customer.message.received"
|
|
17266
|
+
| "product.created"
|
|
17267
|
+
| "product.updated"
|
|
17268
|
+
| "product.deleted"
|
|
17269
|
+
| "product.delisted"
|
|
17270
|
+
| "product.price.changed"
|
|
17271
|
+
| "product.inventory.changed"
|
|
17272
|
+
| "product.enrichment.started"
|
|
17273
|
+
| "product.enrichment.completed"
|
|
17274
|
+
| "product.listing.error"
|
|
17275
|
+
| "product.geo.created"
|
|
17276
|
+
| "product.geo.updated"
|
|
17277
|
+
| "product.ai_visibility.measured"
|
|
17278
|
+
| "agent.action.approved"
|
|
17279
|
+
| "order.created"
|
|
17280
|
+
| "order.updated"
|
|
17281
|
+
| "order.deleted"
|
|
17282
|
+
| "order.status.changed"
|
|
17283
|
+
| "look.created"
|
|
17284
|
+
| "look.deleted"
|
|
17285
|
+
| "review.created"
|
|
17286
|
+
| "review.updated"
|
|
17287
|
+
| "review.status.changed"
|
|
17288
|
+
| "campaign.started"
|
|
17289
|
+
| "campaign.window.started"
|
|
17290
|
+
| "campaign.window.completed"
|
|
17291
|
+
| "campaign.window.failed"
|
|
17292
|
+
| "campaign.offer.failed"
|
|
17293
|
+
| "campaign.completed"
|
|
17294
|
+
| "promotion.usage.updated"
|
|
17295
|
+
| "promotion.delivery.updated"
|
|
17296
|
+
| "promotion.monitoring.updated"
|
|
17297
|
+
| "account_statement.created"
|
|
17298
|
+
| "account_statement.updated"
|
|
17299
|
+
| "account_statement.status.changed"
|
|
17300
|
+
| "account_statement.reconciliation.changed"
|
|
17301
|
+
| "account_statement.transactions.synced"
|
|
17302
|
+
| "account_statement.transactions.failed"
|
|
17303
|
+
| "account_statement.sync.queued"
|
|
17304
|
+
| "account_statement.sync.started"
|
|
17305
|
+
| "account_statement.sync.completed"
|
|
17306
|
+
| "account_statement.sync.failed"
|
|
17307
|
+
| "account_statement.sync.unavailable";
|
|
17308
|
+
/** @description CEL event filter, e.g. event.sku == "A-1". Only with eventType. */
|
|
17309
|
+
match?: string;
|
|
17310
|
+
/** @description What to check or do when the follow-up fires. */
|
|
17311
|
+
note: string;
|
|
17312
|
+
/**
|
|
17313
|
+
* @description resume continues this chat (default); notify only emails you.
|
|
17314
|
+
* @enum {string}
|
|
17315
|
+
*/
|
|
17316
|
+
then?: "resume" | "notify";
|
|
17317
|
+
/** @description Expiry duration; events default to 10d. Must outlast a timed trigger. */
|
|
17318
|
+
expires?: string;
|
|
17319
|
+
organizationId?: string;
|
|
17320
|
+
/** @description The assistant conversation (session) to continue. */
|
|
17321
|
+
threadId: string;
|
|
17322
|
+
};
|
|
17323
|
+
};
|
|
17324
|
+
};
|
|
17325
|
+
responses: {
|
|
17326
|
+
/** @description The follow-up, waiting. */
|
|
17327
|
+
200: {
|
|
17328
|
+
headers: {
|
|
17329
|
+
[name: string]: unknown;
|
|
17330
|
+
};
|
|
17331
|
+
content: {
|
|
17332
|
+
"application/json": {
|
|
17333
|
+
ok?: boolean;
|
|
17334
|
+
operationId?: string;
|
|
17335
|
+
status?: string;
|
|
17336
|
+
data?: {
|
|
17337
|
+
followUp?: {
|
|
17338
|
+
/** Format: uuid */
|
|
17339
|
+
id: string;
|
|
17340
|
+
threadId: string;
|
|
17341
|
+
ownerUserId?: string;
|
|
17342
|
+
/** @enum {string} */
|
|
17343
|
+
state: "waiting" | "fired" | "expired" | "canceled" | "failed";
|
|
17344
|
+
/** @enum {string} */
|
|
17345
|
+
trigger: "schedule" | "event";
|
|
17346
|
+
/** Format: date-time */
|
|
17347
|
+
fireAt?: string | null;
|
|
17348
|
+
eventType?: string | null;
|
|
17349
|
+
/** @description CEL condition; empty when none */
|
|
17350
|
+
match?: string;
|
|
17351
|
+
note: string;
|
|
17352
|
+
/** @enum {string} */
|
|
17353
|
+
then: "resume" | "notify";
|
|
17354
|
+
/** Format: date-time */
|
|
17355
|
+
expiresAt: string;
|
|
17356
|
+
/** Format: date-time */
|
|
17357
|
+
firedAt?: string | null;
|
|
17358
|
+
failure?: string | null;
|
|
17359
|
+
/** Format: date-time */
|
|
17360
|
+
createdAt?: string;
|
|
17361
|
+
/** Format: uri */
|
|
17362
|
+
url?: string | null;
|
|
17363
|
+
};
|
|
17364
|
+
};
|
|
17365
|
+
};
|
|
17366
|
+
};
|
|
17367
|
+
};
|
|
17368
|
+
/** @description Invalid payload, or a follow-up the request cannot make. */
|
|
17369
|
+
400: {
|
|
17370
|
+
headers: {
|
|
17371
|
+
[name: string]: unknown;
|
|
17372
|
+
};
|
|
17373
|
+
content?: never;
|
|
17374
|
+
};
|
|
17375
|
+
/** @description Unauthorized */
|
|
17376
|
+
401: {
|
|
17377
|
+
headers: {
|
|
17378
|
+
[name: string]: unknown;
|
|
17379
|
+
};
|
|
17380
|
+
content?: never;
|
|
17381
|
+
};
|
|
17382
|
+
/** @description Missing agents:invoke scope or Assistant access, or an OAuth client credential: follow-ups belong to a person (API key or session). */
|
|
17383
|
+
403: {
|
|
17384
|
+
headers: {
|
|
17385
|
+
[name: string]: unknown;
|
|
17386
|
+
};
|
|
17387
|
+
content?: never;
|
|
17388
|
+
};
|
|
17389
|
+
/** @description Internal Server Error */
|
|
17390
|
+
500: {
|
|
17391
|
+
headers: {
|
|
17392
|
+
[name: string]: unknown;
|
|
17393
|
+
};
|
|
17394
|
+
content?: never;
|
|
17395
|
+
};
|
|
17396
|
+
};
|
|
17397
|
+
};
|
|
17398
|
+
post_v1_follow_ups_cancel: {
|
|
17399
|
+
parameters: {
|
|
17400
|
+
query?: never;
|
|
17401
|
+
header?: never;
|
|
17402
|
+
path?: never;
|
|
17403
|
+
cookie?: never;
|
|
17404
|
+
};
|
|
17405
|
+
requestBody: {
|
|
17406
|
+
content: {
|
|
17407
|
+
/**
|
|
17408
|
+
* @example {
|
|
17409
|
+
* "followUpIds": [
|
|
17410
|
+
* "3f1c2b9e-8f0a-4c51-9d1e-2a6b7c8d9e0f"
|
|
17411
|
+
* ]
|
|
17412
|
+
* }
|
|
17413
|
+
*/
|
|
17414
|
+
"application/json": {
|
|
17415
|
+
/** @description The follow-ups to cancel, from follow_up or list_follow_ups. */
|
|
17416
|
+
followUpIds: string[];
|
|
17417
|
+
organizationId?: string;
|
|
17418
|
+
};
|
|
17419
|
+
};
|
|
17420
|
+
};
|
|
17421
|
+
responses: {
|
|
17422
|
+
/** @description One result per id. */
|
|
17423
|
+
200: {
|
|
17424
|
+
headers: {
|
|
17425
|
+
[name: string]: unknown;
|
|
17426
|
+
};
|
|
17427
|
+
content: {
|
|
17428
|
+
"application/json": {
|
|
17429
|
+
ok?: boolean;
|
|
17430
|
+
operationId?: string;
|
|
17431
|
+
status?: string;
|
|
17432
|
+
data?: {
|
|
17433
|
+
success?: boolean;
|
|
17434
|
+
followUpIds?: string[];
|
|
17435
|
+
succeededCount?: number;
|
|
17436
|
+
failedCount?: number;
|
|
17437
|
+
results?: Record<string, never>[];
|
|
17438
|
+
};
|
|
17439
|
+
};
|
|
17440
|
+
};
|
|
17441
|
+
};
|
|
17442
|
+
/** @description Invalid payload, or a follow-up the request cannot make. */
|
|
17443
|
+
400: {
|
|
17444
|
+
headers: {
|
|
17445
|
+
[name: string]: unknown;
|
|
17446
|
+
};
|
|
17447
|
+
content?: never;
|
|
17448
|
+
};
|
|
17449
|
+
/** @description Unauthorized */
|
|
17450
|
+
401: {
|
|
17451
|
+
headers: {
|
|
17452
|
+
[name: string]: unknown;
|
|
17453
|
+
};
|
|
17454
|
+
content?: never;
|
|
17455
|
+
};
|
|
17456
|
+
/** @description Missing agents:invoke scope or Assistant access, or an OAuth client credential: follow-ups belong to a person (API key or session). */
|
|
17457
|
+
403: {
|
|
17458
|
+
headers: {
|
|
17459
|
+
[name: string]: unknown;
|
|
17460
|
+
};
|
|
17461
|
+
content?: never;
|
|
17462
|
+
};
|
|
17463
|
+
/** @description Internal Server Error */
|
|
17464
|
+
500: {
|
|
17465
|
+
headers: {
|
|
17466
|
+
[name: string]: unknown;
|
|
17467
|
+
};
|
|
17468
|
+
content?: never;
|
|
17469
|
+
};
|
|
17470
|
+
};
|
|
17471
|
+
};
|
|
16427
17472
|
post_v1_images_ghost_mannequin: {
|
|
16428
17473
|
parameters: {
|
|
16429
17474
|
query?: never;
|
|
@@ -18017,6 +19062,24 @@ interface operations {
|
|
|
18017
19062
|
content: {
|
|
18018
19063
|
"application/json": {
|
|
18019
19064
|
items?: {
|
|
19065
|
+
/** Format: uuid */
|
|
19066
|
+
id?: string;
|
|
19067
|
+
status?: string;
|
|
19068
|
+
/** @enum {string} */
|
|
19069
|
+
statusGroup?:
|
|
19070
|
+
| "to_ship"
|
|
19071
|
+
| "shipped"
|
|
19072
|
+
| "completed"
|
|
19073
|
+
| "pending"
|
|
19074
|
+
| "return"
|
|
19075
|
+
| "canceled";
|
|
19076
|
+
returnStatusLabels?: string[];
|
|
19077
|
+
/** @description Physical return receipt and confirmed refunds are tracked separately from fulfillment status. */
|
|
19078
|
+
aftersalesOutcome?: {
|
|
19079
|
+
received: boolean;
|
|
19080
|
+
/** @enum {string|null} */
|
|
19081
|
+
refund: "full" | "partial" | null;
|
|
19082
|
+
};
|
|
18020
19083
|
/** @description Formula-net marketplace payment. Null until every active line has been reconciled. */
|
|
18021
19084
|
paymentReceived?: number | null;
|
|
18022
19085
|
/** @description Order-time COGS total. Null while any active line lacks a cost snapshot. */
|
|
@@ -18414,6 +19477,13 @@ interface operations {
|
|
|
18414
19477
|
returnCompletion?: {
|
|
18415
19478
|
[key: string]: unknown;
|
|
18416
19479
|
} | null;
|
|
19480
|
+
returnStatusLabels?: string[];
|
|
19481
|
+
/** @description Physical return receipt and confirmed refunds are tracked separately from fulfillment status. */
|
|
19482
|
+
aftersalesOutcome?: {
|
|
19483
|
+
received: boolean;
|
|
19484
|
+
/** @enum {string|null} */
|
|
19485
|
+
refund: "full" | "partial" | null;
|
|
19486
|
+
};
|
|
18417
19487
|
statusHistory?: {
|
|
18418
19488
|
[key: string]: unknown;
|
|
18419
19489
|
}[];
|
|
@@ -18850,11 +19920,11 @@ interface operations {
|
|
|
18850
19920
|
/** @description Required for session auth. API keys already belong to one organization. */
|
|
18851
19921
|
organizationId?: string;
|
|
18852
19922
|
/**
|
|
18853
|
-
* @description `ship` arranges shipment, `labels` generates shipping labels, `update_tracking` sends a tracking number, and `cancel`
|
|
19923
|
+
* @description `ship` arranges shipment, `labels` generates shipping labels, `update_tracking` sends a tracking number, and `cancel` requests seller cancellation.
|
|
18854
19924
|
* @enum {string}
|
|
18855
19925
|
*/
|
|
18856
19926
|
action: "ship" | "cancel" | "labels" | "update_tracking";
|
|
18857
|
-
/** @description Marketplace inputs for the action.
|
|
19927
|
+
/** @description Marketplace inputs for the action. For cancellation, send the selected reason's exact `payload` from `GET /api/v1/orders/{orderId}/action-options?action=cancel`. For other actions, include the choice payload and any required seller inputs. */
|
|
18858
19928
|
payload?: {
|
|
18859
19929
|
[key: string]: unknown;
|
|
18860
19930
|
};
|
|
@@ -19477,7 +20547,8 @@ interface operations {
|
|
|
19477
20547
|
| "whatsapp"
|
|
19478
20548
|
| "zalora"
|
|
19479
20549
|
| "amazon"
|
|
19480
|
-
| "ebay"
|
|
20550
|
+
| "ebay"
|
|
20551
|
+
| "agentic_checkout";
|
|
19481
20552
|
/** @description When `true`, return only enabled rules. */
|
|
19482
20553
|
enabledOnly?: boolean;
|
|
19483
20554
|
};
|
|
@@ -19567,7 +20638,8 @@ interface operations {
|
|
|
19567
20638
|
| "whatsapp"
|
|
19568
20639
|
| "zalora"
|
|
19569
20640
|
| "amazon"
|
|
19570
|
-
| "ebay"
|
|
20641
|
+
| "ebay"
|
|
20642
|
+
| "agentic_checkout";
|
|
19571
20643
|
/** @description Optional connected store ID. Null/omit applies to all stores for the platform. */
|
|
19572
20644
|
storeId?: string | null;
|
|
19573
20645
|
/** @description Optional country scope (name or code). Null/omit applies to all countries. */
|
|
@@ -19862,7 +20934,8 @@ interface operations {
|
|
|
19862
20934
|
| "whatsapp"
|
|
19863
20935
|
| "zalora"
|
|
19864
20936
|
| "amazon"
|
|
19865
|
-
| "ebay"
|
|
20937
|
+
| "ebay"
|
|
20938
|
+
| "agentic_checkout";
|
|
19866
20939
|
/** @description Canonical list price to mark up. */
|
|
19867
20940
|
listPrice: number;
|
|
19868
20941
|
storeId?: string | null;
|
|
@@ -23092,6 +24165,272 @@ interface operations {
|
|
|
23092
24165
|
};
|
|
23093
24166
|
};
|
|
23094
24167
|
};
|
|
24168
|
+
get_v1_products_bulk_update: {
|
|
24169
|
+
parameters: {
|
|
24170
|
+
query?: {
|
|
24171
|
+
organizationId?: string;
|
|
24172
|
+
};
|
|
24173
|
+
header?: never;
|
|
24174
|
+
path?: never;
|
|
24175
|
+
cookie?: never;
|
|
24176
|
+
};
|
|
24177
|
+
requestBody?: never;
|
|
24178
|
+
responses: {
|
|
24179
|
+
/** @description Eligible stock sources and shared file limits. */
|
|
24180
|
+
200: {
|
|
24181
|
+
headers: {
|
|
24182
|
+
[name: string]: unknown;
|
|
24183
|
+
};
|
|
24184
|
+
content: {
|
|
24185
|
+
"application/json": {
|
|
24186
|
+
ok: boolean;
|
|
24187
|
+
data: {
|
|
24188
|
+
maxDocuments: number;
|
|
24189
|
+
maxRowsPerFile: number;
|
|
24190
|
+
sources: {
|
|
24191
|
+
sourceId: string;
|
|
24192
|
+
label: string;
|
|
24193
|
+
locationId: string;
|
|
24194
|
+
locationName: string;
|
|
24195
|
+
ownershipModel: string;
|
|
24196
|
+
quantityAuthority: string;
|
|
24197
|
+
}[];
|
|
24198
|
+
};
|
|
24199
|
+
};
|
|
24200
|
+
};
|
|
24201
|
+
};
|
|
24202
|
+
/** @description Authentication required. */
|
|
24203
|
+
401: {
|
|
24204
|
+
headers: {
|
|
24205
|
+
[name: string]: unknown;
|
|
24206
|
+
};
|
|
24207
|
+
content?: never;
|
|
24208
|
+
};
|
|
24209
|
+
/** @description Missing inventory read or organization access. */
|
|
24210
|
+
403: {
|
|
24211
|
+
headers: {
|
|
24212
|
+
[name: string]: unknown;
|
|
24213
|
+
};
|
|
24214
|
+
content?: never;
|
|
24215
|
+
};
|
|
24216
|
+
};
|
|
24217
|
+
};
|
|
24218
|
+
post_v1_products_bulk_update: {
|
|
24219
|
+
parameters: {
|
|
24220
|
+
query?: never;
|
|
24221
|
+
header?: never;
|
|
24222
|
+
path?: never;
|
|
24223
|
+
cookie?: never;
|
|
24224
|
+
};
|
|
24225
|
+
requestBody: {
|
|
24226
|
+
content: {
|
|
24227
|
+
"application/json": {
|
|
24228
|
+
/** @default true */
|
|
24229
|
+
syncToMarketplaces?: boolean;
|
|
24230
|
+
marketplaces?: (
|
|
24231
|
+
| "shopee"
|
|
24232
|
+
| "lazada"
|
|
24233
|
+
| "tiktok"
|
|
24234
|
+
| "shopify"
|
|
24235
|
+
| "whatsapp"
|
|
24236
|
+
| "zalora"
|
|
24237
|
+
| "amazon"
|
|
24238
|
+
| "ebay"
|
|
24239
|
+
)[];
|
|
24240
|
+
organizationId?: string;
|
|
24241
|
+
documentIds: string[];
|
|
24242
|
+
/**
|
|
24243
|
+
* @default both
|
|
24244
|
+
* @enum {string}
|
|
24245
|
+
*/
|
|
24246
|
+
scope?: "price" | "inventory" | "both";
|
|
24247
|
+
/** Format: uuid */
|
|
24248
|
+
sourceId?: string;
|
|
24249
|
+
/** Format: uuid */
|
|
24250
|
+
locationId?: string;
|
|
24251
|
+
skuColumn?: string;
|
|
24252
|
+
quantityColumn?: string;
|
|
24253
|
+
priceColumn?: string;
|
|
24254
|
+
salePriceColumn?: string;
|
|
24255
|
+
currencyColumn?: string;
|
|
24256
|
+
costPriceColumn?: string;
|
|
24257
|
+
};
|
|
24258
|
+
};
|
|
24259
|
+
};
|
|
24260
|
+
responses: {
|
|
24261
|
+
/** @description Saved imports accepted; updates continue durably. */
|
|
24262
|
+
202: {
|
|
24263
|
+
headers: {
|
|
24264
|
+
[name: string]: unknown;
|
|
24265
|
+
};
|
|
24266
|
+
content: {
|
|
24267
|
+
"application/json": {
|
|
24268
|
+
ok: boolean;
|
|
24269
|
+
apiVersion?: string;
|
|
24270
|
+
operationId?: string;
|
|
24271
|
+
status?: string;
|
|
24272
|
+
data: {
|
|
24273
|
+
success: boolean;
|
|
24274
|
+
succeededCount: number;
|
|
24275
|
+
failedCount: number;
|
|
24276
|
+
pendingCount: number;
|
|
24277
|
+
/** @enum {string} */
|
|
24278
|
+
status: "pending" | "completed" | "partial" | "failed";
|
|
24279
|
+
imports: {
|
|
24280
|
+
/** @enum {string} */
|
|
24281
|
+
kind: "price" | "inventory";
|
|
24282
|
+
/** Format: uuid */
|
|
24283
|
+
importId: string;
|
|
24284
|
+
}[];
|
|
24285
|
+
documentIds: string[];
|
|
24286
|
+
/** @enum {string} */
|
|
24287
|
+
scope: "price" | "inventory" | "both";
|
|
24288
|
+
results: {
|
|
24289
|
+
documentId: string;
|
|
24290
|
+
success: boolean;
|
|
24291
|
+
pending?: boolean;
|
|
24292
|
+
error?: string;
|
|
24293
|
+
price?: {
|
|
24294
|
+
success: boolean;
|
|
24295
|
+
importId?: string;
|
|
24296
|
+
pending?: boolean;
|
|
24297
|
+
error?: string;
|
|
24298
|
+
};
|
|
24299
|
+
inventory?: {
|
|
24300
|
+
success: boolean;
|
|
24301
|
+
importId?: string;
|
|
24302
|
+
pending?: boolean;
|
|
24303
|
+
error?: string;
|
|
24304
|
+
};
|
|
24305
|
+
}[];
|
|
24306
|
+
};
|
|
24307
|
+
};
|
|
24308
|
+
};
|
|
24309
|
+
};
|
|
24310
|
+
/** @description Invalid request or inventory source. */
|
|
24311
|
+
400: {
|
|
24312
|
+
headers: {
|
|
24313
|
+
[name: string]: unknown;
|
|
24314
|
+
};
|
|
24315
|
+
content?: never;
|
|
24316
|
+
};
|
|
24317
|
+
/** @description Authentication required. */
|
|
24318
|
+
401: {
|
|
24319
|
+
headers: {
|
|
24320
|
+
[name: string]: unknown;
|
|
24321
|
+
};
|
|
24322
|
+
content?: never;
|
|
24323
|
+
};
|
|
24324
|
+
/** @description Missing scope, role, or organization access. */
|
|
24325
|
+
403: {
|
|
24326
|
+
headers: {
|
|
24327
|
+
[name: string]: unknown;
|
|
24328
|
+
};
|
|
24329
|
+
content?: never;
|
|
24330
|
+
};
|
|
24331
|
+
};
|
|
24332
|
+
};
|
|
24333
|
+
post_v1_products_bulk_update_status: {
|
|
24334
|
+
parameters: {
|
|
24335
|
+
query?: never;
|
|
24336
|
+
header?: never;
|
|
24337
|
+
path?: never;
|
|
24338
|
+
cookie?: never;
|
|
24339
|
+
};
|
|
24340
|
+
requestBody: {
|
|
24341
|
+
content: {
|
|
24342
|
+
"application/json": {
|
|
24343
|
+
organizationId?: string;
|
|
24344
|
+
imports: {
|
|
24345
|
+
/** @enum {string} */
|
|
24346
|
+
kind: "price" | "inventory";
|
|
24347
|
+
/** Format: uuid */
|
|
24348
|
+
importId: string;
|
|
24349
|
+
}[];
|
|
24350
|
+
/** @default false */
|
|
24351
|
+
includeRows?: boolean;
|
|
24352
|
+
/** @default 0 */
|
|
24353
|
+
rowOffset?: number;
|
|
24354
|
+
/** @default 100 */
|
|
24355
|
+
rowLimit?: number;
|
|
24356
|
+
};
|
|
24357
|
+
};
|
|
24358
|
+
};
|
|
24359
|
+
responses: {
|
|
24360
|
+
/** @description Saved import progress. */
|
|
24361
|
+
200: {
|
|
24362
|
+
headers: {
|
|
24363
|
+
[name: string]: unknown;
|
|
24364
|
+
};
|
|
24365
|
+
content: {
|
|
24366
|
+
"application/json": {
|
|
24367
|
+
ok: boolean;
|
|
24368
|
+
apiVersion?: string;
|
|
24369
|
+
operationId?: string;
|
|
24370
|
+
status?: string;
|
|
24371
|
+
data: {
|
|
24372
|
+
success: boolean;
|
|
24373
|
+
succeededCount: number;
|
|
24374
|
+
failedCount: number;
|
|
24375
|
+
pendingCount: number;
|
|
24376
|
+
/** @enum {string} */
|
|
24377
|
+
status: "pending" | "completed" | "partial" | "failed";
|
|
24378
|
+
imports: {
|
|
24379
|
+
/** @enum {string} */
|
|
24380
|
+
kind: "price" | "inventory";
|
|
24381
|
+
/** Format: uuid */
|
|
24382
|
+
importId: string;
|
|
24383
|
+
}[];
|
|
24384
|
+
allTerminal: boolean;
|
|
24385
|
+
results: {
|
|
24386
|
+
/** @enum {string} */
|
|
24387
|
+
kind: "price" | "inventory";
|
|
24388
|
+
/** Format: uuid */
|
|
24389
|
+
importId: string;
|
|
24390
|
+
success: boolean;
|
|
24391
|
+
pending: boolean;
|
|
24392
|
+
status?: string;
|
|
24393
|
+
documentId?: string;
|
|
24394
|
+
totalRows?: number;
|
|
24395
|
+
validRows?: number;
|
|
24396
|
+
invalidRows?: number;
|
|
24397
|
+
unknownRows?: number;
|
|
24398
|
+
appliedRows?: number;
|
|
24399
|
+
error?: string;
|
|
24400
|
+
/** @constant */
|
|
24401
|
+
marketplaceVerification?: "not_verified";
|
|
24402
|
+
rows?: {
|
|
24403
|
+
[key: string]: unknown;
|
|
24404
|
+
}[];
|
|
24405
|
+
nextRowOffset?: number | null;
|
|
24406
|
+
}[];
|
|
24407
|
+
};
|
|
24408
|
+
};
|
|
24409
|
+
};
|
|
24410
|
+
};
|
|
24411
|
+
/** @description Invalid request or inventory source. */
|
|
24412
|
+
400: {
|
|
24413
|
+
headers: {
|
|
24414
|
+
[name: string]: unknown;
|
|
24415
|
+
};
|
|
24416
|
+
content?: never;
|
|
24417
|
+
};
|
|
24418
|
+
/** @description Authentication required. */
|
|
24419
|
+
401: {
|
|
24420
|
+
headers: {
|
|
24421
|
+
[name: string]: unknown;
|
|
24422
|
+
};
|
|
24423
|
+
content?: never;
|
|
24424
|
+
};
|
|
24425
|
+
/** @description Missing scope, role, or organization access. */
|
|
24426
|
+
403: {
|
|
24427
|
+
headers: {
|
|
24428
|
+
[name: string]: unknown;
|
|
24429
|
+
};
|
|
24430
|
+
content?: never;
|
|
24431
|
+
};
|
|
24432
|
+
};
|
|
24433
|
+
};
|
|
23095
24434
|
post_v1_products_compare_prices: {
|
|
23096
24435
|
parameters: {
|
|
23097
24436
|
query?: never;
|
|
@@ -23704,11 +25043,16 @@ interface operations {
|
|
|
23704
25043
|
* }
|
|
23705
25044
|
*/
|
|
23706
25045
|
"application/json": {
|
|
25046
|
+
/**
|
|
25047
|
+
* @description Required for variant products. Keep the master's variants, or add compatible source variants. Both publish the resulting variants to every preserved store listing in the same operation. Choose a master with existing variants; unmatched SKUs and conflicting options block merging. Standalone-only merges do not publish.
|
|
25048
|
+
* @enum {string}
|
|
25049
|
+
*/
|
|
25050
|
+
variantStrategy?: "keep_master" | "merge_variants";
|
|
23707
25051
|
/** @description True runs the same merge transaction and rolls it back, including database reference/constraint validation. No product changes are saved, no mutation events or duplicate refreshes run, and marketplace listings stay unchanged. Requires catalog:write. Omitted/false performs the reviewed merge. This differs from CLI --dry-run, which only prints a request. */
|
|
23708
25052
|
dryRun?: boolean;
|
|
23709
25053
|
/** @description Required only for session-authenticated calls. API credentials use their own organization. */
|
|
23710
25054
|
organizationId?: string;
|
|
23711
|
-
/** @description Ordered
|
|
25055
|
+
/** @description Ordered root catalog product IDs. Products are grouped by exact SKU; each group merges into one master. */
|
|
23712
25056
|
productIds: string[];
|
|
23713
25057
|
/** @description Optional master per SKU group, chosen from productIds; at most one per group. Defaults to the first requested product of each group. The master keeps its content, images, price and stock. */
|
|
23714
25058
|
masterProductIds?: string[];
|
|
@@ -23716,6 +25060,8 @@ interface operations {
|
|
|
23716
25060
|
expectedGroups?: {
|
|
23717
25061
|
productIds: string[];
|
|
23718
25062
|
sku: string;
|
|
25063
|
+
/** @description Variant/store plan version from the preview. Required when pinning a variant merge; changes fail before catalog writes. */
|
|
25064
|
+
variantPlanVersion?: string;
|
|
23719
25065
|
}[];
|
|
23720
25066
|
explanation?: string;
|
|
23721
25067
|
};
|
|
@@ -23748,6 +25094,27 @@ interface operations {
|
|
|
23748
25094
|
survivingProductId?: string;
|
|
23749
25095
|
mergedProductIds?: string[];
|
|
23750
25096
|
wouldMergeProductIds?: string[];
|
|
25097
|
+
publishResults?: {
|
|
25098
|
+
/** @enum {string} */
|
|
25099
|
+
platform:
|
|
25100
|
+
| "shopee"
|
|
25101
|
+
| "lazada"
|
|
25102
|
+
| "tiktok"
|
|
25103
|
+
| "shopify"
|
|
25104
|
+
| "whatsapp"
|
|
25105
|
+
| "zalora"
|
|
25106
|
+
| "amazon"
|
|
25107
|
+
| "ebay";
|
|
25108
|
+
storeId: string;
|
|
25109
|
+
itemId: string;
|
|
25110
|
+
/** @enum {string} */
|
|
25111
|
+
visibility: "live" | "draft";
|
|
25112
|
+
success: boolean;
|
|
25113
|
+
queued: boolean;
|
|
25114
|
+
jobIds: string[];
|
|
25115
|
+
attempt?: number;
|
|
25116
|
+
error?: string;
|
|
25117
|
+
}[];
|
|
23751
25118
|
error?: string;
|
|
23752
25119
|
}[];
|
|
23753
25120
|
succeededCount: number;
|
|
@@ -23760,6 +25127,28 @@ interface operations {
|
|
|
23760
25127
|
disposition?: "survivor" | "merged";
|
|
23761
25128
|
error?: string;
|
|
23762
25129
|
}[];
|
|
25130
|
+
queued?: boolean;
|
|
25131
|
+
correlations?: {
|
|
25132
|
+
/** @enum {string} */
|
|
25133
|
+
kind:
|
|
25134
|
+
| "inventory_job"
|
|
25135
|
+
| "price_event"
|
|
25136
|
+
| "price_book_sync"
|
|
25137
|
+
| "publish_job"
|
|
25138
|
+
| "delist_batch"
|
|
25139
|
+
| "store_switch"
|
|
25140
|
+
| "omni_delete"
|
|
25141
|
+
| "zalora_import"
|
|
25142
|
+
| "enrichment_batch"
|
|
25143
|
+
| "order_action"
|
|
25144
|
+
| "return_action";
|
|
25145
|
+
id: string;
|
|
25146
|
+
platform?: string;
|
|
25147
|
+
storeId?: string;
|
|
25148
|
+
productId?: string;
|
|
25149
|
+
productIds?: string[];
|
|
25150
|
+
externalIds?: string[];
|
|
25151
|
+
}[];
|
|
23763
25152
|
message?: string;
|
|
23764
25153
|
error?: string;
|
|
23765
25154
|
explanation?: string;
|
|
@@ -23824,11 +25213,16 @@ interface operations {
|
|
|
23824
25213
|
* }
|
|
23825
25214
|
*/
|
|
23826
25215
|
"application/json": {
|
|
25216
|
+
/**
|
|
25217
|
+
* @description Required for variant products. Keep the master's variants, or add compatible source variants. Both publish the resulting variants to every preserved store listing in the same operation. Choose a master with existing variants; unmatched SKUs and conflicting options block merging. Standalone-only merges do not publish.
|
|
25218
|
+
* @enum {string}
|
|
25219
|
+
*/
|
|
25220
|
+
variantStrategy?: "keep_master" | "merge_variants";
|
|
23827
25221
|
/** @description True runs the same merge transaction and rolls it back, including database reference/constraint validation. No product changes are saved, no mutation events or duplicate refreshes run, and marketplace listings stay unchanged. Requires catalog:write. Omitted/false performs the reviewed merge. This differs from CLI --dry-run, which only prints a request. */
|
|
23828
25222
|
dryRun?: boolean;
|
|
23829
25223
|
/** @description Required only for session-authenticated calls. API credentials use their own organization. */
|
|
23830
25224
|
organizationId?: string;
|
|
23831
|
-
/** @description Ordered
|
|
25225
|
+
/** @description Ordered root catalog product IDs. Products are grouped by exact SKU; each group merges into one master. */
|
|
23832
25226
|
productIds: string[];
|
|
23833
25227
|
/** @description Optional master per SKU group, chosen from productIds; at most one per group. Defaults to the first requested product of each group. The master keeps its content, images, price and stock. */
|
|
23834
25228
|
masterProductIds?: string[];
|
|
@@ -23836,6 +25230,8 @@ interface operations {
|
|
|
23836
25230
|
expectedGroups?: {
|
|
23837
25231
|
productIds: string[];
|
|
23838
25232
|
sku: string;
|
|
25233
|
+
/** @description Variant/store plan version from the preview. Required when pinning a variant merge; changes fail before catalog writes. */
|
|
25234
|
+
variantPlanVersion?: string;
|
|
23839
25235
|
}[];
|
|
23840
25236
|
explanation?: string;
|
|
23841
25237
|
};
|
|
@@ -23866,6 +25262,7 @@ interface operations {
|
|
|
23866
25262
|
price: string | null;
|
|
23867
25263
|
currency: string | null;
|
|
23868
25264
|
inventoryQuantity: number | null;
|
|
25265
|
+
variantCount?: number;
|
|
23869
25266
|
marketplaces: {
|
|
23870
25267
|
/** @enum {string} */
|
|
23871
25268
|
platform:
|
|
@@ -23895,6 +25292,7 @@ interface operations {
|
|
|
23895
25292
|
price: string | null;
|
|
23896
25293
|
currency: string | null;
|
|
23897
25294
|
inventoryQuantity: number | null;
|
|
25295
|
+
variantCount?: number;
|
|
23898
25296
|
marketplaces: {
|
|
23899
25297
|
/** @enum {string} */
|
|
23900
25298
|
platform:
|
|
@@ -23920,6 +25318,35 @@ interface operations {
|
|
|
23920
25318
|
}[];
|
|
23921
25319
|
/** @constant */
|
|
23922
25320
|
errorCode?: "stock_source_requires_master";
|
|
25321
|
+
variantPlanVersion?: string;
|
|
25322
|
+
/** @enum {string} */
|
|
25323
|
+
variantStrategy?: "keep_master" | "merge_variants";
|
|
25324
|
+
variants?: {
|
|
25325
|
+
productId: string;
|
|
25326
|
+
sku: string | null;
|
|
25327
|
+
variationAttributes: {
|
|
25328
|
+
[key: string]: string;
|
|
25329
|
+
};
|
|
25330
|
+
price?: string | null;
|
|
25331
|
+
currency?: string | null;
|
|
25332
|
+
inventoryQuantity?: number | null;
|
|
25333
|
+
}[];
|
|
25334
|
+
publishTargets?: {
|
|
25335
|
+
/** @enum {string} */
|
|
25336
|
+
platform:
|
|
25337
|
+
| "shopee"
|
|
25338
|
+
| "lazada"
|
|
25339
|
+
| "tiktok"
|
|
25340
|
+
| "shopify"
|
|
25341
|
+
| "whatsapp"
|
|
25342
|
+
| "zalora"
|
|
25343
|
+
| "amazon"
|
|
25344
|
+
| "ebay";
|
|
25345
|
+
storeId: string;
|
|
25346
|
+
itemId: string;
|
|
25347
|
+
/** @enum {string} */
|
|
25348
|
+
visibility: "live" | "draft";
|
|
25349
|
+
}[];
|
|
23923
25350
|
}[];
|
|
23924
25351
|
};
|
|
23925
25352
|
error?: string;
|
|
@@ -26230,6 +27657,123 @@ interface operations {
|
|
|
26230
27657
|
};
|
|
26231
27658
|
};
|
|
26232
27659
|
};
|
|
27660
|
+
post_v1_returns_by_returnid_evidence: {
|
|
27661
|
+
parameters: {
|
|
27662
|
+
query?: {
|
|
27663
|
+
/** @description Session callers only. API keys resolve organization scope from the credential. */
|
|
27664
|
+
organizationId?: string;
|
|
27665
|
+
};
|
|
27666
|
+
header?: never;
|
|
27667
|
+
path: {
|
|
27668
|
+
returnId: string;
|
|
27669
|
+
};
|
|
27670
|
+
cookie?: never;
|
|
27671
|
+
};
|
|
27672
|
+
requestBody: {
|
|
27673
|
+
content: {
|
|
27674
|
+
"multipart/form-data": {
|
|
27675
|
+
/** Format: binary */
|
|
27676
|
+
file: string;
|
|
27677
|
+
};
|
|
27678
|
+
};
|
|
27679
|
+
};
|
|
27680
|
+
responses: {
|
|
27681
|
+
/** @description Request completed. Inspect data.success, per-target results and pendingCount for processing progress. */
|
|
27682
|
+
200: {
|
|
27683
|
+
headers: {
|
|
27684
|
+
[name: string]: unknown;
|
|
27685
|
+
};
|
|
27686
|
+
content: {
|
|
27687
|
+
"application/json": {
|
|
27688
|
+
ok: boolean;
|
|
27689
|
+
apiVersion: string;
|
|
27690
|
+
/** Format: uuid */
|
|
27691
|
+
operationId: string;
|
|
27692
|
+
/** @enum {string} */
|
|
27693
|
+
status: "completed";
|
|
27694
|
+
data: {
|
|
27695
|
+
receipt: string;
|
|
27696
|
+
};
|
|
27697
|
+
links: {
|
|
27698
|
+
[key: string]: string;
|
|
27699
|
+
};
|
|
27700
|
+
warnings: string[];
|
|
27701
|
+
recommendations: string[];
|
|
27702
|
+
};
|
|
27703
|
+
};
|
|
27704
|
+
};
|
|
27705
|
+
/** @description Invalid request, conflicting operations, singular arguments or a batch exceeding the endpoint limit. */
|
|
27706
|
+
400: {
|
|
27707
|
+
headers: {
|
|
27708
|
+
[name: string]: unknown;
|
|
27709
|
+
};
|
|
27710
|
+
content?: never;
|
|
27711
|
+
};
|
|
27712
|
+
/** @description Missing or invalid credentials. */
|
|
27713
|
+
401: {
|
|
27714
|
+
headers: {
|
|
27715
|
+
[name: string]: unknown;
|
|
27716
|
+
};
|
|
27717
|
+
content?: never;
|
|
27718
|
+
};
|
|
27719
|
+
/** @description Missing scope, organization mismatch, or a target outside the caller's assigned stores and markets. */
|
|
27720
|
+
403: {
|
|
27721
|
+
headers: {
|
|
27722
|
+
[name: string]: unknown;
|
|
27723
|
+
};
|
|
27724
|
+
content?: never;
|
|
27725
|
+
};
|
|
27726
|
+
/** @description The return is no longer open for a seller response. */
|
|
27727
|
+
409: {
|
|
27728
|
+
headers: {
|
|
27729
|
+
[name: string]: unknown;
|
|
27730
|
+
};
|
|
27731
|
+
content?: never;
|
|
27732
|
+
};
|
|
27733
|
+
/** @description The upload exceeds the evidence size limit. */
|
|
27734
|
+
413: {
|
|
27735
|
+
headers: {
|
|
27736
|
+
[name: string]: unknown;
|
|
27737
|
+
};
|
|
27738
|
+
content?: never;
|
|
27739
|
+
};
|
|
27740
|
+
/** @description Use multipart/form-data with a valid JPEG or PNG image. */
|
|
27741
|
+
415: {
|
|
27742
|
+
headers: {
|
|
27743
|
+
[name: string]: unknown;
|
|
27744
|
+
};
|
|
27745
|
+
content?: never;
|
|
27746
|
+
};
|
|
27747
|
+
/** @description The marketplace does not support rejection evidence uploads. */
|
|
27748
|
+
422: {
|
|
27749
|
+
headers: {
|
|
27750
|
+
[name: string]: unknown;
|
|
27751
|
+
};
|
|
27752
|
+
content?: never;
|
|
27753
|
+
};
|
|
27754
|
+
/** @description Rate limit exceeded. */
|
|
27755
|
+
429: {
|
|
27756
|
+
headers: {
|
|
27757
|
+
[name: string]: unknown;
|
|
27758
|
+
};
|
|
27759
|
+
content?: never;
|
|
27760
|
+
};
|
|
27761
|
+
/** @description The marketplace could not accept the evidence upload. */
|
|
27762
|
+
502: {
|
|
27763
|
+
headers: {
|
|
27764
|
+
[name: string]: unknown;
|
|
27765
|
+
};
|
|
27766
|
+
content?: never;
|
|
27767
|
+
};
|
|
27768
|
+
/** @description Service unavailable. Retry a submission with the same requestId and unchanged operations. */
|
|
27769
|
+
503: {
|
|
27770
|
+
headers: {
|
|
27771
|
+
[name: string]: unknown;
|
|
27772
|
+
};
|
|
27773
|
+
content?: never;
|
|
27774
|
+
};
|
|
27775
|
+
};
|
|
27776
|
+
};
|
|
26233
27777
|
get_v1_returns_actions: {
|
|
26234
27778
|
parameters: {
|
|
26235
27779
|
query: {
|
|
@@ -26285,6 +27829,22 @@ interface operations {
|
|
|
26285
27829
|
id: string;
|
|
26286
27830
|
label: string;
|
|
26287
27831
|
description: string;
|
|
27832
|
+
input?:
|
|
27833
|
+
| {
|
|
27834
|
+
/** @constant */
|
|
27835
|
+
kind: "reject";
|
|
27836
|
+
reasons: {
|
|
27837
|
+
id: string;
|
|
27838
|
+
label: string;
|
|
27839
|
+
}[];
|
|
27840
|
+
evidenceUpload?: boolean;
|
|
27841
|
+
}
|
|
27842
|
+
| {
|
|
27843
|
+
/** @constant */
|
|
27844
|
+
kind: "partial_refund";
|
|
27845
|
+
currency: string;
|
|
27846
|
+
maximum: string;
|
|
27847
|
+
};
|
|
26288
27848
|
}[];
|
|
26289
27849
|
limitation?: string;
|
|
26290
27850
|
version: string;
|
|
@@ -26360,6 +27920,24 @@ interface operations {
|
|
|
26360
27920
|
returnId: string;
|
|
26361
27921
|
actionId: string;
|
|
26362
27922
|
version: string;
|
|
27923
|
+
input?:
|
|
27924
|
+
| {
|
|
27925
|
+
/** @constant */
|
|
27926
|
+
kind: "reject";
|
|
27927
|
+
reasonId: string;
|
|
27928
|
+
comment?: string;
|
|
27929
|
+
evidence?: {
|
|
27930
|
+
name: string;
|
|
27931
|
+
receipt: string;
|
|
27932
|
+
}[];
|
|
27933
|
+
}
|
|
27934
|
+
| {
|
|
27935
|
+
/** @constant */
|
|
27936
|
+
kind: "partial_refund";
|
|
27937
|
+
amount: string;
|
|
27938
|
+
currency: string;
|
|
27939
|
+
buyerAgreement: boolean;
|
|
27940
|
+
};
|
|
26363
27941
|
}[];
|
|
26364
27942
|
organizationId?: string;
|
|
26365
27943
|
};
|
|
@@ -29021,10 +30599,10 @@ interface operations {
|
|
|
29021
30599
|
[key: string]: unknown;
|
|
29022
30600
|
};
|
|
29023
30601
|
/**
|
|
29024
|
-
* @
|
|
30602
|
+
* @description When omitted, use the merchant's configured payment destination: Stripe, Qashier, HitPay, then x402.
|
|
29025
30603
|
* @enum {string}
|
|
29026
30604
|
*/
|
|
29027
|
-
payment_rail?: "acp_stripe" | "x402";
|
|
30605
|
+
payment_rail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
29028
30606
|
metadata?: {
|
|
29029
30607
|
[key: string]: unknown;
|
|
29030
30608
|
};
|
|
@@ -29281,7 +30859,7 @@ interface operations {
|
|
|
29281
30859
|
[key: string]: unknown;
|
|
29282
30860
|
};
|
|
29283
30861
|
/** @enum {string} */
|
|
29284
|
-
payment_rail?: "acp_stripe" | "x402";
|
|
30862
|
+
payment_rail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
29285
30863
|
metadata?: {
|
|
29286
30864
|
[key: string]: unknown;
|
|
29287
30865
|
};
|
|
@@ -29432,7 +31010,7 @@ interface operations {
|
|
|
29432
31010
|
[key: string]: unknown;
|
|
29433
31011
|
};
|
|
29434
31012
|
/** @enum {string} */
|
|
29435
|
-
payment_rail?: "acp_stripe" | "x402";
|
|
31013
|
+
payment_rail?: "acp_stripe" | "x402" | "qashier" | "hitpay";
|
|
29436
31014
|
metadata?: {
|
|
29437
31015
|
[key: string]: unknown;
|
|
29438
31016
|
};
|
|
@@ -31103,6 +32681,31 @@ declare class AgentsClient {
|
|
|
31103
32681
|
protected readonly _http: OmniHttp;
|
|
31104
32682
|
readonly general: AgentsGeneralClient;
|
|
31105
32683
|
constructor(_http: OmniHttp);
|
|
32684
|
+
/**
|
|
32685
|
+
* Send a message to an agent
|
|
32686
|
+
*
|
|
32687
|
+
* Message the exact built-in or custom agent in the URL, using its saved model, instructions, tools, permissions and Programmatic starting mode.
|
|
32688
|
+
|
|
32689
|
+
### Authentication
|
|
32690
|
+
Requires an API key with `agents:invoke`, or a sign-in session. Organization-owned keys use their recorded creator's current membership and agent access; keys without a valid owner are refused. API keys identify their organization; session requests include `organizationId`.
|
|
32691
|
+
|
|
32692
|
+
### Conversation and execution
|
|
32693
|
+
- The same caller, agent and `clientThreadKey` continue one conversation. Different callers, agents and organizations are isolated.
|
|
32694
|
+
- No model, prompt or tool overrides are accepted.
|
|
32695
|
+
- `wait=false` queues durable work and returns 202; `wait=true` returns the final reply or pending approvals.
|
|
32696
|
+
- Send `decisions` with the same `cli
|
|
32697
|
+
*
|
|
32698
|
+
* `POST /api/v1/agents/{agentId}/messages`
|
|
32699
|
+
*/
|
|
32700
|
+
messages(request: OperationPath<operations["post_v1_agents_by_agentid_messages"]> & OperationBody<operations["post_v1_agents_by_agentid_messages"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_agents_by_agentid_messages"]>>;
|
|
32701
|
+
/**
|
|
32702
|
+
* Get an agent message run
|
|
32703
|
+
*
|
|
32704
|
+
* Read an agent message run belonging to the authenticated caller and the exact agent in the URL. Current organization membership and agent sharing are checked again. Requires agents:invoke.
|
|
32705
|
+
*
|
|
32706
|
+
* `GET /api/v1/agents/{agentId}/runs/{runId}`
|
|
32707
|
+
*/
|
|
32708
|
+
getRuns(request: OperationPath<operations["get_v1_agents_by_agentid_runs_by_runid"]> & OperationQuery<operations["get_v1_agents_by_agentid_runs_by_runid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_agents_by_agentid_runs_by_runid"]>>;
|
|
31106
32709
|
}
|
|
31107
32710
|
declare class AnalyticsClient {
|
|
31108
32711
|
protected readonly _http: OmniHttp;
|
|
@@ -31300,7 +32903,7 @@ declare class ApiClient {
|
|
|
31300
32903
|
*
|
|
31301
32904
|
* ### Operations
|
|
31302
32905
|
|
|
31303
|
-
create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe
|
|
32906
|
+
create: offers[] (1–5), with stable requestId, exact purchasable product/variant IDs, quantities, shipping country and optional unitAmount proposals. get/cancel: sessionIds[] (1–20). complete: sessionId, paymentProof, and buyer approval of cartVersion, totalAmount and currency. pay: sessionId and the same exact approval; returns checkoutUrl for Stripe, Qashier or HitPay hosted payment.
|
|
31304
32907
|
|
|
31305
32908
|
### Results and safeguards
|
|
31306
32909
|
|
|
@@ -31308,7 +32911,7 @@ declare class ApiClient {
|
|
|
31308
32911
|
|
|
31309
32912
|
### Payment
|
|
31310
32913
|
|
|
31311
|
-
Completion
|
|
32914
|
+
Completion uses the configured Stripe ACP, x402, Qashier or HitPay rail. Qashi
|
|
31312
32915
|
*
|
|
31313
32916
|
* `POST /api/embed/{deploymentId}/checkout-sessions/{operation}`
|
|
31314
32917
|
*/
|
|
@@ -31394,7 +32997,13 @@ declare class BulkClient {
|
|
|
31394
32997
|
/**
|
|
31395
32998
|
* Start Catalog Operation
|
|
31396
32999
|
*
|
|
31397
|
-
*
|
|
33000
|
+
* ### Scope
|
|
33001
|
+
|
|
33002
|
+
Durable bulk price/cost updates for 1–2000 products or variants. Requires catalog:write.
|
|
33003
|
+
|
|
33004
|
+
### Consistency and progress
|
|
33005
|
+
|
|
33006
|
+
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.
|
|
31398
33007
|
*
|
|
31399
33008
|
* `POST /api/v1/catalog/operations`
|
|
31400
33009
|
*/
|
|
@@ -31474,6 +33083,8 @@ declare class CampaignsClient {
|
|
|
31474
33083
|
*
|
|
31475
33084
|
* 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.
|
|
31476
33085
|
|
|
33086
|
+
### Authorization
|
|
33087
|
+
|
|
31477
33088
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31478
33089
|
*
|
|
31479
33090
|
* `GET /api/v1/campaigns/{campaignId}/analytics`
|
|
@@ -31484,6 +33095,8 @@ declare class CampaignsClient {
|
|
|
31484
33095
|
*
|
|
31485
33096
|
* Read the executing actor's campaign notification preference.
|
|
31486
33097
|
|
|
33098
|
+
### Authorization
|
|
33099
|
+
|
|
31487
33100
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31488
33101
|
*
|
|
31489
33102
|
* `GET /api/v1/campaigns/{campaignId}/notifications`
|
|
@@ -31494,6 +33107,8 @@ declare class CampaignsClient {
|
|
|
31494
33107
|
*
|
|
31495
33108
|
* Set only the executing actor's campaign notification preference. Does not change campaign delivery or other members' preferences.
|
|
31496
33109
|
|
|
33110
|
+
### Authorization
|
|
33111
|
+
|
|
31497
33112
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31498
33113
|
*
|
|
31499
33114
|
* `PUT /api/v1/campaigns/{campaignId}/notifications`
|
|
@@ -31504,6 +33119,8 @@ declare class CampaignsClient {
|
|
|
31504
33119
|
*
|
|
31505
33120
|
* Filter and page the canonical campaign plan or pending live proposal, with the same attention rules as the campaign editor.
|
|
31506
33121
|
|
|
33122
|
+
### Authorization
|
|
33123
|
+
|
|
31507
33124
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31508
33125
|
*
|
|
31509
33126
|
* `GET /api/v1/campaigns/{campaignId}/offers`
|
|
@@ -31514,6 +33131,8 @@ declare class CampaignsClient {
|
|
|
31514
33131
|
*
|
|
31515
33132
|
* Apply one action to 1–20 reviewed targets. Approve, run, approve_and_run, end, resume, retry, approve_change, discard_change, archive, restore or delete. Requires each expectedRevision and the pending version for live-change decisions. Named-approver and current role/store checks remain enforced. Duplicates execute once; partial failures remain explicit. Starting queues durable delivery; inspect campaign executions to verify marketplace outcomes.
|
|
31516
33133
|
|
|
33134
|
+
### Authorization
|
|
33135
|
+
|
|
31517
33136
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31518
33137
|
*
|
|
31519
33138
|
* `POST /api/v1/campaigns/actions`
|
|
@@ -31540,6 +33159,8 @@ declare class CampaignsClient {
|
|
|
31540
33159
|
*
|
|
31541
33160
|
* Import 1–10 uploaded Excel document IDs. Preview defaults to true; set preview=false to save. Re-upload one document with campaignId to update a campaign. To apply a running campaign immediately, use applyChanges=true with the reviewed expectedRevision and expectedPendingVersion (null when none); only the named approver with publish permission may apply. Changed values and qualifying SKU removals use canonical marketplace validation and durable sync. Requires documents:read in addition to promotions:write. No browser session is required.
|
|
31542
33161
|
|
|
33162
|
+
### Authorization
|
|
33163
|
+
|
|
31543
33164
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31544
33165
|
*
|
|
31545
33166
|
* `POST /api/v1/campaigns/import`
|
|
@@ -31558,6 +33179,8 @@ declare class CampaignsClient {
|
|
|
31558
33179
|
*
|
|
31559
33180
|
* Read 1–50 eligible draft promotions as campaign offers without creating or publishing promotions. Exact organization/store ownership and existing campaign links are checked.
|
|
31560
33181
|
|
|
33182
|
+
### Authorization
|
|
33183
|
+
|
|
31561
33184
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31562
33185
|
*
|
|
31563
33186
|
* `POST /api/v1/campaigns/promotion-options`
|
|
@@ -31568,6 +33191,8 @@ declare class CampaignsClient {
|
|
|
31568
33191
|
*
|
|
31569
33192
|
* Read-only preflight of 1–10 saved campaign IDs or proposed plans. Uses the same readiness, connected-store and offer validation as approval. shiftToNow returns a proposed shifted plan; syncMode=campaign_start selects Full sync. Neither option saves or publishes. Save the returned plan with the reviewed revision before approve_and_run. Current marketplace delivery is separate execution evidence.
|
|
31570
33193
|
|
|
33194
|
+
### Authorization
|
|
33195
|
+
|
|
31571
33196
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
31572
33197
|
*
|
|
31573
33198
|
* `POST /api/v1/campaigns/validate`
|
|
@@ -31587,10 +33212,20 @@ declare class CatalogClient {
|
|
|
31587
33212
|
* `GET /api/v1/catalog/items`
|
|
31588
33213
|
*/
|
|
31589
33214
|
listItems(request?: OperationQuery<operations["get_v1_catalog_items"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_catalog_items"]>>;
|
|
33215
|
+
/**
|
|
33216
|
+
* Get Public Product Details
|
|
33217
|
+
*
|
|
33218
|
+
* Read the same stored public product details as /catalog/{productId}, including product capabilities, FAQs, localizations, citations, variants, recorded prices, stock and marketplace offers. No account or AI generation. Missing products are explicit per-target failures.
|
|
33219
|
+
*
|
|
33220
|
+
* `GET /api/v1/catalog/products`
|
|
33221
|
+
*/
|
|
33222
|
+
listProducts(request: OperationQuery<operations["get_v1_catalog_products"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_catalog_products"]>>;
|
|
31590
33223
|
/**
|
|
31591
33224
|
* Query Catalog
|
|
31592
33225
|
*
|
|
31593
|
-
* 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.
|
|
33226
|
+
* 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.
|
|
33227
|
+
|
|
33228
|
+
Fields bound the response. Maximum 500 rows per page. Omit counts after the first page with includeCount=false. No SQL input is accepted.
|
|
31594
33229
|
*
|
|
31595
33230
|
* `POST /api/v1/catalog/query`
|
|
31596
33231
|
*/
|
|
@@ -31647,6 +33282,18 @@ declare class CheckoutSessionsClient {
|
|
|
31647
33282
|
* `POST /api/v1/checkout-sessions/{sessionId}/complete`
|
|
31648
33283
|
*/
|
|
31649
33284
|
complete(request: OperationPath<operations["post_v1_checkout_sessions_by_sessionid_complete"]> & OperationQuery<operations["post_v1_checkout_sessions_by_sessionid_complete"]> & OperationBody<operations["post_v1_checkout_sessions_by_sessionid_complete"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_checkout_sessions_by_sessionid_complete"]>>;
|
|
33285
|
+
/**
|
|
33286
|
+
* Start payment for an approved checkout offer
|
|
33287
|
+
*
|
|
33288
|
+
* Requires checkout:write.
|
|
33289
|
+
|
|
33290
|
+
Starts seller Stripe, Qashier or HitPay hosted checkout. Buyer approval must match the current cart version, total and currency. Qashier and HitPay require a full delivery address before payment.
|
|
33291
|
+
|
|
33292
|
+
Qashier and HitPay support PayNow in Singapore when enabled for the merchant. Payment is confirmed using signed webhooks and authenticated server-side receipts. Closing the buyer page does not cancel or complete payment.
|
|
33293
|
+
*
|
|
33294
|
+
* `POST /api/v1/checkout-sessions/{sessionId}/pay`
|
|
33295
|
+
*/
|
|
33296
|
+
pay(request: OperationPath<operations["post_v1_checkout_sessions_by_sessionid_pay"]> & OperationBody<operations["post_v1_checkout_sessions_by_sessionid_pay"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_checkout_sessions_by_sessionid_pay"]>>;
|
|
31650
33297
|
}
|
|
31651
33298
|
declare class CommerceClient {
|
|
31652
33299
|
protected readonly _http: OmniHttp;
|
|
@@ -31686,7 +33333,9 @@ declare class CommerceClient {
|
|
|
31686
33333
|
/**
|
|
31687
33334
|
* Start Commerce Verification
|
|
31688
33335
|
*
|
|
31689
|
-
* Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read.
|
|
33336
|
+
* Queue durable fresh verification for up to 2000 products in the existing verification contract, under verification. Requires catalog:read.
|
|
33337
|
+
|
|
33338
|
+
Returns immediately with operationIds. Read bulk.status and bulk.results; a client timeout does not discard work. Fulfillment correlations continue to use commerce.verifyState.
|
|
31690
33339
|
*
|
|
31691
33340
|
* `POST /api/v1/commerce/state/verify/jobs`
|
|
31692
33341
|
*/
|
|
@@ -31732,7 +33381,9 @@ declare class DocumentsClient {
|
|
|
31732
33381
|
/**
|
|
31733
33382
|
* Get Document
|
|
31734
33383
|
*
|
|
31735
|
-
* Read one knowledge base document and its indexing status. Requires `documents:read`.
|
|
33384
|
+
* Read one knowledge base document and its indexing status. Requires `documents:read`.
|
|
33385
|
+
|
|
33386
|
+
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.
|
|
31736
33387
|
*
|
|
31737
33388
|
* `GET /api/v1/documents/{documentId}`
|
|
31738
33389
|
*/
|
|
@@ -31762,6 +33413,54 @@ declare class FeedClient {
|
|
|
31762
33413
|
*/
|
|
31763
33414
|
getLlmsTxt(request: OperationPath<operations["get_v1_feed_by_domain_llms_txt"]> & OperationQuery<operations["get_v1_feed_by_domain_llms_txt"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_feed_by_domain_llms_txt"]>>;
|
|
31764
33415
|
}
|
|
33416
|
+
declare class FollowUpsClient {
|
|
33417
|
+
protected readonly _http: OmniHttp;
|
|
33418
|
+
constructor(_http: OmniHttp);
|
|
33419
|
+
/**
|
|
33420
|
+
* List Follow-ups
|
|
33421
|
+
*
|
|
33422
|
+
* Your follow-ups on every conversation, plus every follow-up on `threadId` (whoever left it) when you can open that conversation. Waiting follow-ups come first.
|
|
33423
|
+
|
|
33424
|
+
`state` is `waiting`, `fired`, `expired` (it waited past `expiresAt`), `canceled` or `failed` (`failure` says why: its owner lost access, or the conversation was stopped or its last run failed).
|
|
33425
|
+
|
|
33426
|
+
### Authorization
|
|
33427
|
+
|
|
33428
|
+
Requires `agents:invoke`.
|
|
33429
|
+
*
|
|
33430
|
+
* `GET /api/v1/follow-ups`
|
|
33431
|
+
*/
|
|
33432
|
+
list(request?: OperationQuery<operations["get_v1_follow_ups"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_follow_ups"]>>;
|
|
33433
|
+
/**
|
|
33434
|
+
* Create Follow-up
|
|
33435
|
+
*
|
|
33436
|
+
* Leave a one-shot follow-up on an assistant conversation you can open. Give exactly one of `at` (ISO 8601 with a timezone), `after` (a duration such as 90m, 4h, 14d or 2w) or `eventType` with an optional CEL `match` over `event` (the event's condition fields, as in AOP event triggers).
|
|
33437
|
+
|
|
33438
|
+
When it fires it continues `threadId` from `note` as you (`then=resume`, the default) or only emails you (`then=notify`). It never interrupts a run in progress: the continuation waits in the conversation's queue. A stopped conversation, or one whose last run failed, is not continued.
|
|
33439
|
+
|
|
33440
|
+
An event follow-up waits `expires` (10d by default) for its event; a timed one may be at most a year ahead.
|
|
33441
|
+
|
|
33442
|
+
### Authorization
|
|
33443
|
+
|
|
33444
|
+
Requires `agents:invoke` with a person's credential (API key or session); OAuth client credentials
|
|
33445
|
+
*
|
|
33446
|
+
* `POST /api/v1/follow-ups`
|
|
33447
|
+
*/
|
|
33448
|
+
create(request: OperationBody<operations["post_v1_follow_ups"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_follow_ups"]>>;
|
|
33449
|
+
/**
|
|
33450
|
+
* Cancel Follow-ups
|
|
33451
|
+
*
|
|
33452
|
+
* Cancel your follow-ups that have not fired, so they never fire. One that already fired, expired or was canceled reports why per id; another person's follow-up reads as not found.
|
|
33453
|
+
|
|
33454
|
+
Returns `followUpIds`, `succeededCount`, `failedCount` and ordered `results`; `ok` is true only when every id was canceled.
|
|
33455
|
+
|
|
33456
|
+
### Authorization
|
|
33457
|
+
|
|
33458
|
+
Requires `agents:invoke`.
|
|
33459
|
+
*
|
|
33460
|
+
* `POST /api/v1/follow-ups/cancel`
|
|
33461
|
+
*/
|
|
33462
|
+
cancel(request: OperationBody<operations["post_v1_follow_ups_cancel"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_follow_ups_cancel"]>>;
|
|
33463
|
+
}
|
|
31765
33464
|
declare class ImagesClient {
|
|
31766
33465
|
protected readonly _http: OmniHttp;
|
|
31767
33466
|
constructor(_http: OmniHttp);
|
|
@@ -32024,9 +33723,9 @@ declare class OrdersClient {
|
|
|
32024
33723
|
/**
|
|
32025
33724
|
* Get Order Action Options
|
|
32026
33725
|
*
|
|
32027
|
-
*
|
|
33726
|
+
* Read marketplace choices for this order, including seller cancellation reasons for `action=cancel`. Eligible orders can include orders awaiting carrier collection. Requires `orders:write`.
|
|
32028
33727
|
|
|
32029
|
-
|
|
33728
|
+
Review the selected reason or fulfillment choice and send its exact `payload` with `POST /api/v1/orders/{orderId}/actions`.
|
|
32030
33729
|
*
|
|
32031
33730
|
* `GET /api/v1/orders/{orderId}/action-options`
|
|
32032
33731
|
*/
|
|
@@ -32036,7 +33735,7 @@ declare class OrdersClient {
|
|
|
32036
33735
|
*
|
|
32037
33736
|
* The order's 20 most recent action jobs, newest first, plus its latest successful label job. Requires `orders:read`.
|
|
32038
33737
|
|
|
32039
|
-
|
|
33738
|
+
After submission, find the returned job ID here. Read its status for the marketplace outcome and `errorMessage` for failures. A succeeded `labels` job lists its label files in `labels`.
|
|
32040
33739
|
*
|
|
32041
33740
|
* `GET /api/v1/orders/{orderId}/actions`
|
|
32042
33741
|
*/
|
|
@@ -32046,7 +33745,7 @@ declare class OrdersClient {
|
|
|
32046
33745
|
*
|
|
32047
33746
|
* Ship, cancel, generate shipping labels for, or update tracking on a marketplace order. Requires `orders:write`.
|
|
32048
33747
|
|
|
32049
|
-
The marketplace call runs in the background
|
|
33748
|
+
For `cancel`, send the exact payload of a reviewed cancellation reason from the action options endpoint. The marketplace call runs in the background. The `202` response provides a `jobId`. Poll `GET /api/v1/orders/{orderId}/actions` for its outcome. A repeated `idempotencyKey` with the same request returns `200` with the original job.
|
|
32050
33749
|
*
|
|
32051
33750
|
* `POST /api/v1/orders/{orderId}/actions`
|
|
32052
33751
|
*/
|
|
@@ -32060,7 +33759,7 @@ declare class OrdersClient {
|
|
|
32060
33759
|
|
|
32061
33760
|
### Choices
|
|
32062
33761
|
|
|
32063
|
-
Read
|
|
33762
|
+
Read marketplace choices for `ship`, `cancel`, `labels`, or `update_tracking` for 1–50 UUIDs using repeated `orderIds` parameters. Results preserve first-requested order and report any per-order eligibility or capability errors. For `cancel`, review an available reason for each order and use its exact `payload`. Orders awaiting collection can be eligible when the marketplace permits it. For other actions, supply any fields marked `requiresInput`.
|
|
32064
33763
|
*
|
|
32065
33764
|
* `GET /api/v1/orders/actions`
|
|
32066
33765
|
*/
|
|
@@ -32074,11 +33773,9 @@ declare class OrdersClient {
|
|
|
32074
33773
|
|
|
32075
33774
|
### Batch submission
|
|
32076
33775
|
|
|
32077
|
-
Queue 1–50 distinct
|
|
33776
|
+
Queue 1–50 distinct orders with a UUID `requestId` and one operation per order. Each operation carries an `orderId`, `action`, and any marketplace inputs in `payload`. For `cancel`, send the reviewed reason's exact payload from GET /api/v1/orders/actions. All targets are authorized before enqueue. Per-order results preserve request order and report acceptance or errors.
|
|
32078
33777
|
|
|
32079
|
-
|
|
32080
|
-
|
|
32081
|
-
Retain requestId and unchanged operations for retr
|
|
33778
|
+
Retain `requestId` and unchanged operations for retries. Follow `links.poll` with every returned job ID to check the marketplace outcomes. The worker rechecks permissions before each marketplace write.
|
|
32082
33779
|
*
|
|
32083
33780
|
* `POST /api/v1/orders/actions`
|
|
32084
33781
|
*/
|
|
@@ -32092,7 +33789,7 @@ declare class OrdersClient {
|
|
|
32092
33789
|
|
|
32093
33790
|
### Outcomes and labels
|
|
32094
33791
|
|
|
32095
|
-
Read
|
|
33792
|
+
Read 1–50 jobs using repeated `jobIds` parameters. Results preserve first-requested order. `data.success` requires every job to succeed. `pendingCount` includes queued and running jobs. `failedCount` includes failed and unsupported jobs. Amazon cancellations can stay running while its feed is processed. Successful label jobs return download links. A missing or cross-organization job returns 404. Current store restrictions apply.
|
|
32096
33793
|
*
|
|
32097
33794
|
* `GET /api/v1/orders/actions/jobs`
|
|
32098
33795
|
*/
|
|
@@ -32142,7 +33839,13 @@ declare class PriceBooksClient {
|
|
|
32142
33839
|
*
|
|
32143
33840
|
* Create a marketplace price book rule for a platform (optional store and country). Does not change Omni product prices. Requires `price_books:write`.
|
|
32144
33841
|
|
|
33842
|
+
### Pricing
|
|
33843
|
+
|
|
32145
33844
|
`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.
|
|
33845
|
+
|
|
33846
|
+
### Direct checkout
|
|
33847
|
+
|
|
33848
|
+
The Direct checkout channel (`agentic_checkout`) applies immediately to direct checkout and public headline prices, defaults to catalog price with zero markup when no enabled rule matches, and requires null/omitted storeId and country. Marketplace rules only price their own offers; Direct checkout rules require no marketplace sync.
|
|
32146
33849
|
*
|
|
32147
33850
|
* `POST /api/v1/price-books`
|
|
32148
33851
|
*/
|
|
@@ -32402,6 +34105,42 @@ declare class ProductsClient {
|
|
|
32402
34105
|
* `POST /api/v1/products/bulk-import/retry`
|
|
32403
34106
|
*/
|
|
32404
34107
|
retryBulkImport(request: OperationBody<operations["post_v1_products_bulk_import_retry"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_bulk_import_retry"]>>;
|
|
34108
|
+
/**
|
|
34109
|
+
* Get Bulk Product Update Options
|
|
34110
|
+
*
|
|
34111
|
+
* List active stock-file sources used by Omni Bulk Update, including manual warehouses and supported CSV sources. Requires catalog:read and inventory.read.
|
|
34112
|
+
|
|
34113
|
+
Use an eligible sourceId before starting inventory updates. Ask the seller to choose when multiple sources are eligible.
|
|
34114
|
+
*
|
|
34115
|
+
* `GET /api/v1/products/bulk-update`
|
|
34116
|
+
*/
|
|
34117
|
+
bulkUpdateOptions(request?: OperationQuery<operations["get_v1_products_bulk_update"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_products_bulk_update"]>>;
|
|
34118
|
+
/**
|
|
34119
|
+
* Bulk Update Product Prices and Stock
|
|
34120
|
+
*
|
|
34121
|
+
* Update existing catalog SKUs from 1–10 uploaded CSV or Excel documentIds, with up to 10,000 rows per file. Requires catalog:write and the corresponding product or inventory capabilities.
|
|
34122
|
+
|
|
34123
|
+
### File and source selection
|
|
34124
|
+
|
|
34125
|
+
Exact SKU matching preserves zero values and rejects duplicate, ambiguous, or unknown SKUs. Inventory needs an authorized manual or CSV sourceId or locationId. Explicit column names override detection. syncToMarketplaces defaults to true. Use marketplaces to limit which existing listings are synced.
|
|
34126
|
+
|
|
34127
|
+
### Track the results
|
|
34128
|
+
|
|
34129
|
+
Pass every saved import reference to products.bulkUpdateStatus. Results preserve document order. The workflow runs after the request returns. Applied inventory means source balances were saved and listing sync was queued.
|
|
34130
|
+
*
|
|
34131
|
+
* `POST /api/v1/products/bulk-update`
|
|
34132
|
+
*/
|
|
34133
|
+
bulkUpdate(request: OperationBody<operations["post_v1_products_bulk_update"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_bulk_update"]>>;
|
|
34134
|
+
/**
|
|
34135
|
+
* Get Bulk Product Update Status
|
|
34136
|
+
*
|
|
34137
|
+
* Read up to 20 saved imports in request order. Requires catalog:read and the corresponding product or inventory read capabilities. Imports are deduplicated by kind and importId.
|
|
34138
|
+
|
|
34139
|
+
Pending imports are incomplete. Results report invalid or unknown rows and missing organization-scoped imports. Use includeRows with rowOffset and rowLimit for up to 100 rows per import. The result describes saved catalog stock.
|
|
34140
|
+
*
|
|
34141
|
+
* `POST /api/v1/products/bulk-update/status`
|
|
34142
|
+
*/
|
|
34143
|
+
bulkUpdateStatus(request: OperationBody<operations["post_v1_products_bulk_update_status"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_products_bulk_update_status"]>>;
|
|
32405
34144
|
/**
|
|
32406
34145
|
* Compare Product Market Prices
|
|
32407
34146
|
*
|
|
@@ -32463,11 +34202,7 @@ declare class ProductsClient {
|
|
|
32463
34202
|
*
|
|
32464
34203
|
* 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.
|
|
32465
34204
|
|
|
32466
|
-
All marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group.
|
|
32467
|
-
|
|
32468
|
-
Each group commits independently; the response lists every group's outcome. Sources with inventory history or immutable order composition snapshots must be reconciled before archiving so returns and stock replays keep their targets.
|
|
32469
|
-
|
|
32470
|
-
Supports every OmniCommerce marketplace. Variant families, bundles and product
|
|
34205
|
+
All marketplace listings move to the master, including listings in other stores of the same marketplace. Different listing identities in the same store block the group. Standalone-only merges do not publish. When variants remain, variantStrategy selects keeping the master's variant set or merging compatible source variants, and the same operation automatically publishes the resulting variants to every preserved store listing. Live/draft visibility is retained; the marketplace may require a replacement listing for an incompatible variant s
|
|
32471
34206
|
*
|
|
32472
34207
|
* `POST /api/v1/products/duplicates/merge`
|
|
32473
34208
|
*/
|
|
@@ -32489,7 +34224,9 @@ declare class ProductsClient {
|
|
|
32489
34224
|
/**
|
|
32490
34225
|
* Get Duplicate Scan
|
|
32491
34226
|
*
|
|
32492
|
-
* Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read.
|
|
34227
|
+
* Read the same organization-scoped duplicate scan status as Products → Check duplicates. Requires catalog:read.
|
|
34228
|
+
|
|
34229
|
+
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.
|
|
32493
34230
|
*
|
|
32494
34231
|
* `GET /api/v1/products/duplicates/scan`
|
|
32495
34232
|
*/
|
|
@@ -32497,7 +34234,9 @@ declare class ProductsClient {
|
|
|
32497
34234
|
/**
|
|
32498
34235
|
* Scan Duplicate Products
|
|
32499
34236
|
*
|
|
32500
|
-
* Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write.
|
|
34237
|
+
* Start the existing durable organization duplicate scan, equivalent to Products → Check duplicates. Requires catalog:write.
|
|
34238
|
+
|
|
34239
|
+
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.
|
|
32501
34240
|
*
|
|
32502
34241
|
* `POST /api/v1/products/duplicates/scan`
|
|
32503
34242
|
*/
|
|
@@ -32606,6 +34345,8 @@ declare class PromotionsClient {
|
|
|
32606
34345
|
*
|
|
32607
34346
|
* 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.
|
|
32608
34347
|
|
|
34348
|
+
### Authorization
|
|
34349
|
+
|
|
32609
34350
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
32610
34351
|
*
|
|
32611
34352
|
* `POST /api/v1/promotions/{promotionId}/preview`
|
|
@@ -32630,7 +34371,9 @@ declare class PromotionsClient {
|
|
|
32630
34371
|
/**
|
|
32631
34372
|
* Assign Products to Promotion
|
|
32632
34373
|
*
|
|
32633
|
-
* 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.
|
|
34374
|
+
* 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.
|
|
34375
|
+
|
|
34376
|
+
Requires `promotions:write` and current publish permission when publishing. Read promotion delivery to verify every target store.
|
|
32634
34377
|
*
|
|
32635
34378
|
* `POST /api/v1/promotions/{promotionId}/products`
|
|
32636
34379
|
*/
|
|
@@ -32650,6 +34393,8 @@ declare class PromotionsClient {
|
|
|
32650
34393
|
*
|
|
32651
34394
|
* Create 1–50 promotions using the shared flat promotion-write contract, with qualifying products and per-product discounts. Set promotion.status=draft explicitly when preparing drafts; otherwise the canonical creation flow activates promotions and requires publish permission. Saved IDs and delivery evidence are retained on partial delivery failure; retry those IDs rather than creating duplicates.
|
|
32652
34395
|
|
|
34396
|
+
### Authorization
|
|
34397
|
+
|
|
32653
34398
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
32654
34399
|
*
|
|
32655
34400
|
* `POST /api/v1/promotions/batch`
|
|
@@ -32660,6 +34405,8 @@ declare class PromotionsClient {
|
|
|
32660
34405
|
*
|
|
32661
34406
|
* Search campaign options with assigned promotions in the authenticated organization.
|
|
32662
34407
|
|
|
34408
|
+
### Authorization
|
|
34409
|
+
|
|
32663
34410
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
32664
34411
|
*
|
|
32665
34412
|
* `GET /api/v1/promotions/campaign-options`
|
|
@@ -32670,6 +34417,8 @@ declare class PromotionsClient {
|
|
|
32670
34417
|
*
|
|
32671
34418
|
* 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.
|
|
32672
34419
|
|
|
34420
|
+
### Authorization
|
|
34421
|
+
|
|
32673
34422
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
32674
34423
|
*
|
|
32675
34424
|
* `GET /api/v1/promotions/capabilities`
|
|
@@ -32680,6 +34429,8 @@ declare class PromotionsClient {
|
|
|
32680
34429
|
*
|
|
32681
34430
|
* Delete 1–500 promotions with the canonical marketplace cleanup flow. Requires promotions.delete permission. Ordered per-target errors and partial failures remain explicit.
|
|
32682
34431
|
|
|
34432
|
+
### Authorization
|
|
34433
|
+
|
|
32683
34434
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
32684
34435
|
*
|
|
32685
34436
|
* `POST /api/v1/promotions/delete`
|
|
@@ -32690,6 +34441,8 @@ declare class PromotionsClient {
|
|
|
32690
34441
|
*
|
|
32691
34442
|
* Read exact store/assignment delivery evidence for 1–50 promotions. A saved or active promotion is not proof that marketplace delivery succeeded. Check every returned deliveryStatuses entry, including explicit unsupported or unavailable states.
|
|
32692
34443
|
|
|
34444
|
+
### Authorization
|
|
34445
|
+
|
|
32693
34446
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
32694
34447
|
*
|
|
32695
34448
|
* `POST /api/v1/promotions/delivery`
|
|
@@ -32700,6 +34453,8 @@ declare class PromotionsClient {
|
|
|
32700
34453
|
*
|
|
32701
34454
|
* 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.
|
|
32702
34455
|
|
|
34456
|
+
### Authorization
|
|
34457
|
+
|
|
32703
34458
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
32704
34459
|
*
|
|
32705
34460
|
* `POST /api/v1/promotions/product-options`
|
|
@@ -32710,6 +34465,8 @@ declare class PromotionsClient {
|
|
|
32710
34465
|
*
|
|
32711
34466
|
* Activate/publish, pause or archive 1–500 promotions. Activation requires promotions.publish permission. Uses the canonical status transition and durable marketplace sync/teardown flow; verify delivery separately.
|
|
32712
34467
|
|
|
34468
|
+
### Authorization
|
|
34469
|
+
|
|
32713
34470
|
Requires promotions:write. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
32714
34471
|
*
|
|
32715
34472
|
* `POST /api/v1/promotions/status`
|
|
@@ -32720,6 +34477,8 @@ declare class PromotionsClient {
|
|
|
32720
34477
|
*
|
|
32721
34478
|
* Read-only validation of 1–50 saved promotion IDs or proposed definitions and product IDs. Reports marketplace terms, connected-store targeting and qualifying-product issues per target. Publishing still revalidates current state and can encounter marketplace API rejections.
|
|
32722
34479
|
|
|
34480
|
+
### Authorization
|
|
34481
|
+
|
|
32723
34482
|
Requires promotions:read. API keys and delegated Computer credentials resolve organization scope without browser cookies; optional organizationId must match that scope.
|
|
32724
34483
|
*
|
|
32725
34484
|
* `POST /api/v1/promotions/validate`
|
|
@@ -32745,6 +34504,16 @@ declare class ReturnsClient {
|
|
|
32745
34504
|
* `GET /api/v1/returns/{returnId}`
|
|
32746
34505
|
*/
|
|
32747
34506
|
get(request: OperationPath<operations["get_v1_returns_by_returnid"]> & OperationQuery<operations["get_v1_returns_by_returnid"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["get_v1_returns_by_returnid"]>>;
|
|
34507
|
+
/**
|
|
34508
|
+
* Upload Return Rejection Evidence
|
|
34509
|
+
*
|
|
34510
|
+
* Requires `orders:write`. For a rejection choice with `input.evidenceUpload: true`, upload one JPEG or PNG image up to 5 MB.
|
|
34511
|
+
|
|
34512
|
+
Use the receipt and filename in `input.evidence` when submitting the reviewed rejection. A rejection can include up to six images. Each receipt is scoped to its return and expires after 24 hours.
|
|
34513
|
+
*
|
|
34514
|
+
* `POST /api/v1/returns/{returnId}/evidence`
|
|
34515
|
+
*/
|
|
34516
|
+
uploadEvidence(request: OperationPath<operations["post_v1_returns_by_returnid_evidence"]> & OperationQuery<operations["post_v1_returns_by_returnid_evidence"]> & OperationBody<operations["post_v1_returns_by_returnid_evidence"]>, requestOptions?: BaseRequestOptions): HttpResponsePromise<SuccessData<operations["post_v1_returns_by_returnid_evidence"]>>;
|
|
32748
34517
|
/**
|
|
32749
34518
|
* Check Return Actions
|
|
32750
34519
|
*
|
|
@@ -33178,6 +34947,7 @@ declare class OmniGeneratedClient {
|
|
|
33178
34947
|
readonly documents: DocumentsClient;
|
|
33179
34948
|
readonly evaluate: EvaluateClient;
|
|
33180
34949
|
readonly feed: FeedClient;
|
|
34950
|
+
readonly followUps: FollowUpsClient;
|
|
33181
34951
|
readonly images: ImagesClient;
|
|
33182
34952
|
readonly inventory: InventoryClient;
|
|
33183
34953
|
readonly jobs: JobsClient;
|
|
@@ -33222,6 +34992,7 @@ type OmniResources = {
|
|
|
33222
34992
|
documents: DocumentsClient;
|
|
33223
34993
|
evaluate: EvaluateClient;
|
|
33224
34994
|
feed: FeedClient;
|
|
34995
|
+
followUps: FollowUpsClient;
|
|
33225
34996
|
images: ImagesClient;
|
|
33226
34997
|
inventory: InventoryClient;
|
|
33227
34998
|
jobs: JobsClient;
|
|
@@ -33290,7 +35061,7 @@ declare function constructEvent(payload: string | Uint8Array, headers: WebhookHe
|
|
|
33290
35061
|
toleranceInSeconds?: number;
|
|
33291
35062
|
}): Promise<ConstructedWebhookEvent>;
|
|
33292
35063
|
|
|
33293
|
-
declare const SDK_VERSION = "0.
|
|
35064
|
+
declare const SDK_VERSION = "0.24.0";
|
|
33294
35065
|
|
|
33295
35066
|
type ProductCreatedWebhookEvent = components["schemas"]["ProductCreatedWebhookEvent"];
|
|
33296
35067
|
type ProductUpdatedWebhookEvent = components["schemas"]["ProductUpdatedWebhookEvent"];
|