> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omnicommerce.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Diagnose Review Product Publishing

> Requires `catalog:read`. Diagnose 1–25 exact review product or physical variant IDs. Returns current canonical shipping measurements (grams and cm), product facts and images, variant values, exact store/category fields, required/missing attributes, allowed options and the latest publish job's message, code and request ID. No raw provider request bodies or credentials are exposed. Store, variant and attribute-option pages have explicit continuation offsets. success means diagnosis completed; publishReady describes saved catalog validation and does not promise marketplace acceptance. Only targets belonging to this organization and review are accessible.



## OpenAPI

````yaml /openapi.json post /api/v1/review-queue/{batchId}/diagnose
openapi: 3.1.0
info:
  title: OmniCommerce API
  version: 1.0.0
  license:
    name: Proprietary
    url: https://omnicommerce.sg/terms
  description: >-
    OmniCommerce API surface for agents and developer integrations. Includes
    public endpoints (merchant discovery, product search, compare, catalog, ACO
    retrieval) and authenticated endpoints (product management via API key
    Bearer tokens).
servers:
  - url: https://omnicommerce.ai
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags:
  - name: ads
    description: ads
    x-group: Ads
  - name: agentic-checkout
    description: Merchant-fulfilled agentic checkout
    x-group: Agentic Checkout
  - name: agents
    description: agents
    x-group: Agents
  - name: analytics
    description: Sales performance across marketplaces
    x-group: Analytics
  - name: aops
    description: Agent operating procedures
    x-group: AOPs
  - name: bots
    description: bots
    x-group: Bots
  - name: branding
    description: branding
    x-group: Branding
  - name: campaigns
    description: Campaign briefs, offer windows, and marketplace runs
    x-group: Campaigns
  - name: catalog
    description: catalog
    x-group: Catalog
  - name: commerce
    description: commerce
    x-group: Commerce
  - name: developer-platform
    description: Authenticated developer platform APIs
    x-group: Developer Platform
  - name: documents
    description: Knowledge base document uploads
    x-group: Knowledge Base
  - name: email
    description: email
    x-group: Email
  - name: follow-ups
    description: follow-ups
    x-group: Follow Ups
  - name: inventory
    description: Inventory quantities, planning signals, and marketplace listing absence
    x-group: Inventory
  - name: looks
    description: AI-styled product looks
    x-group: Looks
  - name: oauth
    description: OAuth token endpoints
    x-group: OAuth
  - name: orders
    description: Workspace and agentic orders
    x-group: Orders
  - name: organizations
    description: Organization management
    x-group: Organizations
  - name: price-books
    description: Marketplace list-price markup rules
    x-group: Price Books
  - name: products
    description: Product CRUD, bulk import, enrichment, publish, and delist
    x-group: Products
  - name: promotions
    description: Central promotions and marketplace sync
    x-group: Promotions
  - name: public-agent
    description: Public agent discovery and catalog APIs
    x-group: Public Agent
  - name: returns
    description: returns
    x-group: Returns
  - name: review-queue
    description: review-queue
    x-group: Review Queue
  - name: reviews
    description: Marketplace product reviews and seller replies
    x-group: Reviews
  - name: scripts
    description: scripts
    x-group: Scripts
  - name: settlements
    description: settlements
    x-group: Settlements
  - name: ucp
    description: Universal Commerce Protocol
    x-group: UCP
  - name: wiki
    description: wiki
    x-group: Wiki
paths:
  /api/v1/review-queue/{batchId}/diagnose:
    post:
      tags:
        - review-queue
      summary: Diagnose Review Product Publishing
      description: >-
        Requires `catalog:read`. Diagnose 1–25 exact review product or physical
        variant IDs. Returns current canonical shipping measurements (grams and
        cm), product facts and images, variant values, exact store/category
        fields, required/missing attributes, allowed options and the latest
        publish job's message, code and request ID. No raw provider request
        bodies or credentials are exposed. Store, variant and attribute-option
        pages have explicit continuation offsets. success means diagnosis
        completed; publishReady describes saved catalog validation and does not
        promise marketplace acceptance. Only targets belonging to this
        organization and review are accessible.
      operationId: post_v1_review_queue_by_batchid_diagnose
      parameters:
        - name: batchId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                organizationId:
                  type: string
                  minLength: 1
                  maxLength: 255
                productIds:
                  minItems: 1
                  maxItems: 25
                  type: array
                  items:
                    type: string
                    format: uuid
                    pattern: >-
                      ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                storeTargets:
                  minItems: 1
                  maxItems: 25
                  type: array
                  items:
                    type: object
                    additionalProperties: false
                    required:
                      - marketplace
                      - storeId
                    properties:
                      marketplace:
                        type: string
                        enum:
                          - shopee
                          - lazada
                          - tiktok
                          - shopify
                          - whatsapp
                          - zalora
                          - amazon
                          - ebay
                      storeId:
                        type: string
                        minLength: 1
                        maxLength: 255
                storeOffset:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                storeLimit:
                  type: integer
                  minimum: 1
                  maximum: 25
                attributeOptionOffset:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                attributeOptionLimit:
                  type: integer
                  minimum: 1
                  maximum: 100
                variantOffset:
                  type: integer
                  minimum: 0
                  maximum: 9007199254740991
                variantLimit:
                  type: integer
                  minimum: 1
                  maximum: 100
              required:
                - productIds
              additionalProperties: false
      responses:
        '200':
          description: Ordered product diagnoses with explicit per-store metadata failures.
          content:
            application/json:
              schema:
                type: object
                required:
                  - ok
                  - apiVersion
                  - operationId
                  - status
                  - data
                  - links
                  - warnings
                  - recommendations
                properties:
                  ok:
                    type: boolean
                  apiVersion:
                    type: string
                  operationId:
                    type: string
                    format: uuid
                  status:
                    type: string
                    enum:
                      - completed
                  data:
                    type: object
                    properties:
                      success:
                        type: boolean
                      productIds:
                        type: array
                        items:
                          type: string
                          format: uuid
                          pattern: >-
                            ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                      succeededCount:
                        type: number
                      failedCount:
                        type: number
                      results:
                        type: array
                        items:
                          type: object
                          properties:
                            productId:
                              type: string
                              format: uuid
                              pattern: >-
                                ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
                            success:
                              type: boolean
                            error:
                              type: string
                            rootProductId:
                              type: string
                            product:
                              type: object
                              properties:
                                id:
                                  type: string
                                name:
                                  type:
                                    - string
                                    - 'null'
                                sku:
                                  type:
                                    - string
                                    - 'null'
                                description:
                                  type:
                                    - string
                                    - 'null'
                                brand:
                                  type:
                                    - string
                                    - 'null'
                                highlights:
                                  type: array
                                  items:
                                    type: string
                                weight:
                                  type:
                                    - number
                                    - 'null'
                                dimensions:
                                  anyOf:
                                    - type: object
                                      properties:
                                        length:
                                          type: number
                                          exclusiveMinimum: 0
                                        width:
                                          type: number
                                          exclusiveMinimum: 0
                                        height:
                                          type: number
                                          exclusiveMinimum: 0
                                      required:
                                        - length
                                        - width
                                        - height
                                      additionalProperties: false
                                    - type: 'null'
                                images:
                                  type: array
                                  items: {}
                                updatedAt:
                                  type: string
                              required:
                                - id
                                - name
                                - sku
                                - description
                                - brand
                                - highlights
                                - weight
                                - dimensions
                                - images
                                - updatedAt
                            variants:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                  sku: {}
                                  name: {}
                                  variationAttributes: {}
                                  weight:
                                    type:
                                      - number
                                      - 'null'
                                  dimensions:
                                    anyOf:
                                      - type: object
                                        properties:
                                          length:
                                            type: number
                                            exclusiveMinimum: 0
                                          width:
                                            type: number
                                            exclusiveMinimum: 0
                                          height:
                                            type: number
                                            exclusiveMinimum: 0
                                        required:
                                          - length
                                          - width
                                          - height
                                        additionalProperties: false
                                      - type: 'null'
                                required:
                                  - id
                                  - sku
                                  - name
                                  - variationAttributes
                                  - weight
                                  - dimensions
                            variantCount:
                              type: number
                            hasMoreVariants:
                              type: boolean
                            nextVariantOffset:
                              type:
                                - number
                                - 'null'
                            stores:
                              type: array
                              items:
                                type: object
                                properties:
                                  marketplace:
                                    type: string
                                    enum:
                                      - shopee
                                      - lazada
                                      - tiktok
                                      - shopify
                                      - whatsapp
                                      - zalora
                                      - amazon
                                      - ebay
                                  storeId:
                                    type: string
                                    minLength: 1
                                    maxLength: 255
                                  success:
                                    type: boolean
                                  error:
                                    type: string
                                  country:
                                    type:
                                      - string
                                      - 'null'
                                  categoryId:
                                    type:
                                      - string
                                      - 'null'
                                  attributes:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        attributeId:
                                          type: string
                                        key:
                                          type: string
                                        label:
                                          type: string
                                        required:
                                          type: boolean
                                        missing:
                                          type: boolean
                                        inputType:
                                          type:
                                            - string
                                            - 'null'
                                        value: {}
                                        options:
                                          type: array
                                          items:
                                            type: object
                                            properties:
                                              value:
                                                type: string
                                              label:
                                                type: string
                                            required:
                                              - value
                                              - label
                                        optionCount:
                                          type: number
                                        hasMoreOptions:
                                          type: boolean
                                        nextOptionOffset:
                                          type:
                                            - number
                                            - 'null'
                                      required:
                                        - attributeId
                                        - key
                                        - label
                                        - required
                                        - missing
                                        - inputType
                                        - value
                                        - options
                                        - optionCount
                                        - hasMoreOptions
                                        - nextOptionOffset
                                  latestPublish:
                                    anyOf:
                                      - type: object
                                        properties:
                                          jobId:
                                            type: string
                                          status:
                                            type: string
                                          requestedAt:
                                            type:
                                              - string
                                              - 'null'
                                          error:
                                            anyOf:
                                              - type: object
                                                properties:
                                                  message:
                                                    type: string
                                                  code:
                                                    type:
                                                      - string
                                                      - 'null'
                                                  requestId:
                                                    type:
                                                      - string
                                                      - 'null'
                                                  httpStatus:
                                                    type:
                                                      - number
                                                      - 'null'
                                                required:
                                                  - message
                                                  - code
                                                  - requestId
                                                  - httpStatus
                                              - type: 'null'
                                        required:
                                          - jobId
                                          - status
                                          - requestedAt
                                          - error
                                      - type: 'null'
                                  publishReady:
                                    type: boolean
                                  requirements:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        marketplace:
                                          type: string
                                        missingFields:
                                          type: array
                                          items:
                                            type: string
                                        message:
                                          type: string
                                        attributeConflicts:
                                          type: array
                                          items:
                                            type: string
                                        missingVariantLabels:
                                          type: array
                                          items:
                                            type: string
                                      required:
                                        - marketplace
                                        - missingFields
                                        - message
                                required:
                                  - marketplace
                                  - storeId
                                  - success
                                  - country
                                  - categoryId
                                  - attributes
                                  - latestPublish
                                  - publishReady
                                  - requirements
                                additionalProperties: false
                            storeCount:
                              type: number
                            hasMoreStores:
                              type: boolean
                            nextStoreOffset:
                              type:
                                - number
                                - 'null'
                          required:
                            - productId
                            - success
                            - stores
                            - storeCount
                            - hasMoreStores
                            - nextStoreOffset
                    required:
                      - success
                      - productIds
                      - succeededCount
                      - failedCount
                      - results
                  links:
                    type: object
                    additionalProperties:
                      type: string
                  warnings:
                    type: array
                    items:
                      type: string
                  recommendations:
                    type: array
                    items:
                      type: string
        '400':
          description: Invalid Review queue request.
        '401':
          description: Missing or invalid credentials.
        '403':
          description: >-
            Missing scope, insufficient organization-wide permissions,
            conflicting organization, or inactive organization.
        '404':
          description: >-
            Review job or item was not found in the authenticated organization
            and job.
        '429':
          description: Rate limit exceeded.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Bearer API key for server-to-server access. Session auth is also
        supported in first-party UI flows.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.