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

# Export Products Standard Json

> Export the latest version of each selected product as import-ready JSON.

The output is exactly the shape ``POST /import-json`` accepts
(``{"products": [{key, source, productType, properties, ...}]}``), so a
customer can export, trim, and re-import — ideally with
``merge_only_provided`` to update only the fields they kept.

**Authentication Required**: Requires ``product:read``. Synchronous; capped
at the async threshold (use a smaller selection above it).



## OpenAPI

````yaml /openapi/merchantops-public.json post /api/products/export-standard-json
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/export-standard-json:
    post:
      tags:
        - Products
      summary: Export Products Standard Json
      description: >-
        Export the latest version of each selected product as import-ready JSON.


        The output is exactly the shape ``POST /import-json`` accepts

        (``{"products": [{key, source, productType, properties, ...}]}``), so a

        customer can export, trim, and re-import — ideally with

        ``merge_only_provided`` to update only the fields they kept.


        **Authentication Required**: Requires ``product:read``. Synchronous;
        capped

        at the async threshold (use a smaller selection above it).
      operationId: export_products_standard_json
      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/StandardJsonExportRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    StandardJsonExportRequest:
      description: Request model for the standard (round-trippable) JSON product export.
      properties:
        filter_by_label:
          default: false
          description: Filter products by specific labels
          title: Filter By Label
          type: boolean
        label_keys:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          description: Label keys (when filter_by_label=true)
          title: Label Keys
        product_keys:
          description: List of product keys to export
          items:
            type: string
          title: Product Keys
          type: array
        source_filter:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          description: Filter by source
          title: Source Filter
      required:
        - product_keys
      title: StandardJsonExportRequest
      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

````