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

# Import Json Async

> Start an async product import from a JSON file in GCS.

The file must already be uploaded to GCS. Creates a Job and publishes
a NATS message for the enrichment worker to process.

Returns 202 Accepted with the job_id for progress tracking.



## OpenAPI

````yaml /openapi/merchantops-public.json post /api/products/import-json-async
openapi: 3.1.0
info:
  description: >-
    Public API for the MerchantOps product catalog, pricing, and publishing
    surface.
  title: MerchantOps API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.merchantops.ai
security: []
paths:
  /api/products/import-json-async:
    post:
      tags:
        - Products
      summary: Import Json Async
      description: |-
        Start an async product import from a JSON file in GCS.

        The file must already be uploaded to GCS. Creates a Job and publishes
        a NATS message for the enrichment worker to process.

        Returns 202 Accepted with the job_id for progress tracking.
      operationId: import_json_async
      parameters:
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: X-Organization-ID
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Organization-Id
        - in: cookie
          name: stytch_session
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Stytch Session
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AsyncJsonImportRequest'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    AsyncJsonImportRequest:
      description: Request model for async JSON product import (file already in GCS).
      properties:
        enrich_product:
          default: true
          description: Run AI enrichment
          title: Enrich Product
          type: boolean
        gcs_url:
          description: GCS URL of the uploaded JSON file (gs://...)
          title: Gcs Url
          type: string
        scrape_brand_site:
          default: true
          description: Scrape brand website during enrichment
          title: Scrape Brand Site
          type: boolean
        search_lakehouse:
          default: true
          description: Search product lakehouse for existing data
          title: Search Lakehouse
          type: boolean
        validate:
          default: false
          description: Validate against ProductType
          title: Validate
          type: boolean
      required:
        - gcs_url
      title: AsyncJsonImportRequest
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````