> ## 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 Price Records Async

> Queue a CSV or XLSX export of price records for one or more products.



## OpenAPI

````yaml /openapi/merchantops-public.json post /api/pricing/records/export-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/pricing/records/export-async:
    post:
      tags:
        - Pricing
        - Pricing
        - Price Records
      summary: Export Price Records Async
      description: Queue a CSV or XLSX export of price records for one or more products.
      operationId: export_price_records_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/PriceRecordsExportAsyncRequest'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncBulkJobResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    PriceRecordsExportAsyncRequest:
      properties:
        format:
          default: csv
          description: Output file format
          enum:
            - csv
            - xlsx
          title: Format
          type: string
        include_variant_properties:
          default: true
          description: Append every variant property for each record's variant
          title: Include Variant Properties
          type: boolean
        price_type:
          anyOf:
            - type: string
            - type: 'null'
          description: Only this price type
          title: Price Type
        product_keys:
          description: Products whose price records to export
          items:
            type: string
          title: Product Keys
          type: array
        status:
          anyOf:
            - type: string
            - type: 'null'
          description: Only records in this status
          title: Status
      required:
        - product_keys
      title: PriceRecordsExportAsyncRequest
      type: object
    AsyncBulkJobResponse:
      description: Response for a queued large bulk operation (export / delete).
      properties:
        job_id:
          description: Job ID for tracking progress
          title: Job Id
          type: string
        message:
          description: Status message
          title: Message
          type: string
        total:
          description: Number of product keys queued for processing
          title: Total
          type: integer
      required:
        - job_id
        - total
        - message
      title: AsyncBulkJobResponse
      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

````

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