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

# Upload Base Products Xlsx

> Upload base products (and variants) from an XLSX file — the round-trip
export edited in Excel. Text cells preserve long UPCs/SKUs verbatim.

**Requires** ``product:write``. Same variant-capable format as the CSV
upload; never enriches (a pure data round-trip). ``merge_only_provided``
overlays only the provided columns onto existing products/variants.



## OpenAPI

````yaml /openapi/merchantops-public.json post /api/products/upload-base-xlsx
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/upload-base-xlsx:
    post:
      tags:
        - Products
      summary: Upload Base Products Xlsx
      description: |-
        Upload base products (and variants) from an XLSX file — the round-trip
        export edited in Excel. Text cells preserve long UPCs/SKUs verbatim.

        **Requires** ``product:write``. Same variant-capable format as the CSV
        upload; never enriches (a pure data round-trip). ``merge_only_provided``
        overlays only the provided columns onto existing products/variants.
      operationId: upload_base_products_xlsx
      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:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_upload_base_products_xlsx_api_products_upload_base_xlsx_post
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductBatchResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    Body_upload_base_products_xlsx_api_products_upload_base_xlsx_post:
      properties:
        batch_size:
          default: 25
          title: Batch Size
          type: integer
        file:
          contentMediaType: application/octet-stream
          title: File
          type: string
        merge_only_provided:
          default: false
          title: Merge Only Provided
          type: boolean
      required:
        - file
      title: Body_upload_base_products_xlsx_api_products_upload_base_xlsx_post
      type: object
    ProductBatchResponse:
      description: Response model for batch product creation.
      properties:
        created:
          description: Number successfully created
          title: Created
          type: integer
        errors:
          description: List of errors
          items:
            additionalProperties:
              type: string
            type: object
          title: Errors
          type: array
        failed:
          description: Number that failed
          title: Failed
          type: integer
        job_id:
          anyOf:
            - type: string
            - type: 'null'
          description: Job ID for tracking batch progress
          title: Job Id
        skipped:
          default: 0
          description: Number unchanged (no new version created)
          title: Skipped
          type: integer
        total:
          description: Total products submitted
          title: Total
          type: integer
        variants_created:
          default: 0
          description: Number of variants created/updated from variant rows
          title: Variants Created
          type: integer
      required:
        - total
        - created
        - failed
      title: ProductBatchResponse
      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

````