importJob, use the import workflow until a product review batch exists.
Send a bearer token from an API key, OAuth client, or CLI login. The credential determines the organization. Session callers include
organizationId in the query for reads or the JSON body for writes. Delegated users need organization-wide permissions for catalog review operations and company settings permission for threshold changes. For an existing API key, grant catalog:review-settings before using the settings endpoints. CLI users can sign in again to obtain an updated credential.
TypeScript SDK 0.35.0, Python SDK 0.29.0, and CLI 0.26.0 include the diagnosis and automation methods below. Use them with an OmniCommerce server that has the Review queue endpoints deployed.
Inspect, approve, and publish
- List jobs with
status=pending_reviewto find review work. The detail response lists product IDs and review item IDs across the job and its linked scopes. Request?itemId=<review-item-id>to inspect one saved proposal and its issues. - Approve up to 100 selected review item IDs per call. Approval applies the saved catalog changes through the same checks as the app. Retries of already applied items are safe. Inspect
data.resultsfor stale data, insufficient images, and other per-item failures. - Publish using product IDs after all their review scopes are applied. Set
visibilitytoliveordraft. Omitmarketplacesto use outstanding releases at assigned stores, or pass a marketplace subset. Inspect every product and listing result. A202means at least one listing was queued. Pass all returneddata.correlationstoPOST /api/v1/commerce/jobs/awaitto see marketplace outcomes.
Update Review options
UsePATCH /api/v1/review-queue/settings to set autoApplyHighConfidence and either confidence threshold from 0.50 to 1.00. The values are organization defaults for new jobs. Patch just the fields you want to change.
omni review-queue update --batch-id "$BATCH_ID" --json '{"title":"Catalog refresh"}'. An empty title restores the default display title.
Build an autonomous review operator
Use the supported APIs to inspect and correct data. They expose organization-scoped product facts and marketplace rules with validation and an audit trail. Direct database access is unnecessary.- Page
reviewQueue.listItems/review_queue.list_itemswithlimit: 50. FollownextOffsetwhilehasMoreis true. Each item includesproposal,issues,baselineSnapshot,currentSnapshot,appliedSnapshot, status and approval timestamps.publishingcontains saved auto-publish requests and their store receipts. Job list/detailpublishProgresscounts requested products as published, partial, publishing, failed or waiting. A published product has confirmed successful full releases to all its requested stores; partial means some stores succeeded. Manual publish calls also return durable correlations; retain them. - Diagnose up to 25 products per request. Read each exact store’s
latestPublish.error(message, code, request ID and HTTP status), category, current attribute values, required/missing fields, permitted choices and canonical publish requirements. FollownextStoreOffset,nextVariantOffsetand each field’snextOptionOffsetwhen their continuation flags are set. For complete research evidence, compose this withproducts.get, which exposes ACO sources and claims. - Correct pending proposals with
apply, using the existing workflow proposal shape. Enrichment edits belong underproposal.product; taxonomy includes category and attributes; image proposals select saved candidates. Approval still checks stale catalog data, taxonomy and gallery requirements. Do not useallowProductChangedOverrideby default. For catalog corrections, choose the fields from the diagnosis and product evidence, then use the normalproducts.updateAPI. Use normal variant APIs for variant-specific values. - Publish only the repaired/failed exact
storeTargets. Preserve successful store receipts. Await every correlation withcommerce.awaitJobs/commerce.await_jobs; then usecommerce.verifyState/commerce.verify_stateto check actual listing state. Handle per-target failures and pending results explicitly. API acceptance is not marketplace success. - Enable future processing on existing root jobs using
enableAutomation/enable_automationin chunks of at most 100 batch IDs. This enables enrichment, taxonomy and image auto approval plus saved auto-publish requests through the app’s durable worker. Readitems.automation.scopesto see individual switches and thresholds.fullyAutomaticdescribes configuration; blocked facts and marketplace errors still require the operator to diagnose and resolve them. For new import/enrichment jobs, submit their existing auto-approve andpublishoptions at creation.
retry(scope="failed") restarts failed enrichment work through the existing durable job. It does not fix a bad attribute value.
Read product errors
Useproducts.list({ status: "errors", detail: "full" }) to page through products with saved open errors, or products.get({ productId }) for one product. Both return openReviewFlags from the same presentation as the app. A publish_failed flag includes publishError with the marketplace, store ID, publish job ID, message, provider code and request ID when recorded. Older failures may have null identifiers. Variant conflicts include affected options, an explanation and repair steps in details.
These are saved diagnostics, not a live marketplace readback. Follow list pagination and use review diagnosis for current catalog requirements and permitted attribute values. A bot must decide whether its evidence supports a correction; no error flag grants permission to invent product facts. For a Shopee duplicate-product error such as product.error_busi, inspect the existing listing in the exact store and reconcile its identity before publishing again. Choose the appropriate existing product or listing operation for the diagnosed problem.
Lazada Plug Type
A failure such asCHK_CATPROP_CPV_REQUIRED: "Plug Type" can't be empty should lead the operator to the field definition, current value, allowed choices and product evidence. Choose a supported value using the actual supplied plug/power specification. Do not insert Universal, UK or another default just to pass validation. The repair API accepts the returned attribute key or its known ID alias and preserves other stores and marketplace listing IDs.
results and aggregate counts.
For invalid apply or repair requests, HTTP 400 includes data.issues with field paths, data.requestSchema with the accepted nested JSON contract, and data.openApiUrl. SDK exceptions retain that response in their body. Correct the rejected request before submitting it again; a validation failure does not apply a catalog change.