> ## 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.

# Create Catalog Operation Plan

> Create a staged pricing, catalog record import, or reviewable enrichment plan for up to one million targets. Add enrichment options for listing copy, images, or store taxonomy, or importRecords for new catalog records. Set importRecords.update on a file plan to prepare exact-SKU price or warehouse stock updates for review. An optional selection filter prepares an enrichment plan server-side. Poll status until draft, review the total, and explicitly submit. Repeat the original create request after an interruption. If the selection exceeds the limit, narrow the filters and create a new plan. The initiating identity can upload ordered chunks and submit the plan when complete. Reusing the same idempotency key and options resumes that plan. Requires catalog:write and catalog:read. Enrichment also requires catalog:enrich. Marketplace price sync also requires catalog:sync.



## OpenAPI

````yaml /openapi.json post /api/v1/catalog/operations/plan
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/catalog/operations/plan:
    post:
      tags:
        - catalog
      summary: Create Catalog Operation Plan
      description: >-
        Create a staged pricing, catalog record import, or reviewable enrichment
        plan for up to one million targets. Add enrichment options for listing
        copy, images, or store taxonomy, or importRecords for new catalog
        records. Set importRecords.update on a file plan to prepare exact-SKU
        price or warehouse stock updates for review. An optional selection
        filter prepares an enrichment plan server-side. Poll status until draft,
        review the total, and explicitly submit. Repeat the original create
        request after an interruption. If the selection exceeds the limit,
        narrow the filters and create a new plan. The initiating identity can
        upload ordered chunks and submit the plan when complete. Reusing the
        same idempotency key and options resumes that plan. Requires
        catalog:write and catalog:read. Enrichment also requires catalog:enrich.
        Marketplace price sync also requires catalog:sync.
      operationId: post_v1_catalog_operations_plan
      parameters:
        - in: query
          name: organizationId
          required: false
          description: >-
            Required for session authentication. Bearer credentials are already
            organization-scoped.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                idempotencyKey:
                  type: string
                  minLength: 1
                  maxLength: 128
                syncToMarketplaces:
                  default: false
                  type: boolean
                verify:
                  default: true
                  type: boolean
                sessionId:
                  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)$
                enrichment:
                  type: object
                  properties:
                    instructions:
                      type: string
                      maxLength: 2000
                    title:
                      type: string
                      minLength: 1
                      maxLength: 160
                    includeListingCopy:
                      default: true
                      type: boolean
                    includeImages:
                      default: false
                      type: boolean
                    taxonomyTargets:
                      maxItems: 25
                      type: array
                      items:
                        type: object
                        properties:
                          platform:
                            type: string
                            enum:
                              - shopee
                              - lazada
                              - tiktok
                              - shopify
                              - whatsapp
                              - zalora
                              - amazon
                              - ebay
                          accountId:
                            type: string
                            minLength: 1
                            maxLength: 255
                        required:
                          - platform
                          - accountId
                        additionalProperties: false
                  additionalProperties: false
                selection:
                  description: >-
                    For enrichment, prepare all matching targets on the server.
                    Wait for draft status and review the planned count before
                    submission.
                  type: object
                  properties:
                    statuses:
                      default:
                        - active
                      minItems: 1
                      maxItems: 3
                      type: array
                      items:
                        type: string
                        enum:
                          - active
                          - draft
                          - archived
                    productIds:
                      minItems: 1
                      maxItems: 2000
                      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)$
                    skus:
                      minItems: 1
                      maxItems: 500
                      type: array
                      items:
                        type: string
                        minLength: 1
                        maxLength: 200
                    currencies:
                      minItems: 1
                      maxItems: 50
                      type: array
                      items:
                        type: string
                        pattern: ^[A-Z]{3}$
                    sellableOnly:
                      default: true
                      type: boolean
                    costComparison:
                      description: >-
                        Compare known cost against catalog price in the catalog
                        currency, using recorded valid cost conversions. Missing
                        cost or conversion is excluded.
                      type: string
                      const: above_price
                  additionalProperties: false
                importRecords:
                  type: object
                  properties:
                    title:
                      type: string
                      minLength: 1
                      maxLength: 160
                    file:
                      type: object
                      properties:
                        format:
                          type: string
                          enum:
                            - csv
                            - jsonl
                        sizeBytes:
                          type: integer
                          minimum: 1
                          maximum: 536870912
                        sha256:
                          type: string
                          pattern: ^[A-Za-z0-9+/]{43}=$
                          description: >-
                            Base64-encoded SHA-256 of the concatenated binary
                            SHA-256 digests of the ordered 8 MiB parts,
                            including the final part.
                        columnMapping:
                          description: >-
                            CSV only. Map canonical catalog fields to exact
                            supplier header names. Include sku.
                          type: object
                          propertyNames:
                            type: string
                            enum:
                              - sku
                              - gtin
                              - upc
                              - ean
                              - title
                              - brand
                              - price
                              - currency
                              - compareAtPrice
                              - salePrice
                              - costPerItem
                              - inventory
                              - description
                              - images
                              - videos
                              - category
                              - categoryName
                              - weight
                              - dimensions
                              - variationAttributes
                              - marketplaceAttributes
                          additionalProperties:
                            type: string
                            minLength: 1
                            maxLength: 200
                      required:
                        - format
                        - sizeBytes
                        - sha256
                      additionalProperties: false
                    update:
                      type: object
                      properties:
                        scope:
                          type: string
                          enum:
                            - price
                            - inventory
                            - both
                        locationId:
                          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)$
                        sourceId:
                          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)$
                      required:
                        - scope
                      additionalProperties: false
                  additionalProperties: false
              required:
                - idempotencyKey
              additionalProperties: false
      responses:
        '200':
          description: Result
          content:
            application/json:
              schema:
                type: object
                required:
                  - ok
                  - data
                properties:
                  ok:
                    type: boolean
                  apiVersion:
                    type: string
                  operationId:
                    type: string
                  status:
                    type: string
                  data:
                    type: object
                    properties:
                      operationId:
                        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)$
                      plannedCount:
                        type: number
                      nextChunkIndex:
                        type: number
                      sealed:
                        type: boolean
                    required:
                      - operationId
                      - plannedCount
                      - nextChunkIndex
                      - sealed
        '400':
          description: Invalid request.
        '401':
          description: Authentication required.
        '403':
          description: Missing capability or organization/product access.
        '404':
          description: Catalog plan not found or inaccessible.
        '409':
          description: Idempotency key reused with different input.
        '413':
          description: The request exceeds the 8 MiB body or operation size limit.
        '503':
          description: Temporarily unavailable. Retry the same idempotency key.
      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.