> ## Documentation Index
> Fetch the complete documentation index at: https://doc-neteven.mylectra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Submit a file to create or update product content.

> "Submit a file in csv format to import or update product content into your Neteven inventory. This endpoint does not directly update content in Neteven's system, but provides the file you sent to a downstream feed management process. The feed configuration (column and content mapping) is managed outside of the API. Before submitting a file, you must ensure with your contact at Neteven that the content is valid and that a feed is configured to upload it."



## OpenAPI

````yaml /api-reference/openapi.yml post /merchant/products/import-file
openapi: 3.0.1
info:
  title: Neteven Merchant API
  description: This specification describes the Neteven merchant API methods
  contact:
    email: contact@neteven.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '20241113'
servers:
  - description: 'Production API. No Version indicated: the latest will be called.'
    url: https://api-neteven.mylectra.com
  - description: Production environement. Version 1 of the API.
    url: https://api-neteven.mylectra.com/v1
  - description: Neteven Integration environment (not available to external users)
    url: https://api-neteven.dev.mylectra.com
security:
  - accessCode:
      - read
      - write
tags:
  - name: Authentication
    description: Authenticate to be able to use the API.
  - name: Products
    description: Collection of endpoints to submit products.
  - name: ItemsStocks
    description: Collection of endpoints to retrieve and update item quantities.
  - name: ItemsPrices
    description: Collection of endpoints to retrieve and update item prices.
  - name: Orders
    description: Collection of endpoints to retrieve and update marketplace orders.
  - name: OrderLines
    description: Collection of endpoints to update order line statuses.
  - name: Warehouses
    description: Collection of endpoints to create and retrieve warehouses.
  - name: Helpers
    description: Collection of endpoints to retrieve constants.
paths:
  /merchant/products/import-file:
    post:
      tags:
        - Products
      summary: Submit a file to create or update product content.
      description: >-
        "Submit a file in csv format to import or update product content into
        your Neteven inventory. This endpoint does not directly update content
        in Neteven's system, but provides the file you sent to a downstream feed
        management process. The feed configuration (column and content mapping)
        is managed outside of the API. Before submitting a file, you must ensure
        with your contact at Neteven that the content is valid and that a feed
        is configured to upload it."
      parameters:
        - $ref: '#/components/parameters/xtoken'
        - $ref: '#/components/parameters/acceptmultipartformdata'
        - $ref: '#/components/parameters/contenttype'
        - $ref: '#/components/parameters/feedid'
      requestBody:
        description: >-
          a file attached containing the list of your products and their
          attributes.
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                filename:
                  type: array
                  items:
                    type: string
                    format: binary
      responses:
        '202':
          description: >-
            The file was accepted. Returns the process_id of the corresponding
            product import feed.
          content:
            application/json:
              schema:
                type: object
                properties:
                  process_id:
                    description: >-
                      the id of the process running to import the product file
                      sent.
                    type: integer
                    example: 123465789
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          description: Invalid file format.
          content:
            application/json:
              schema:
                type: object
                properties:
                  title:
                    type: string
                    example: Bad Request
                  code:
                    type: integer
                    example: 400
                  message:
                    type: string
                    example: >-
                      invalid file format ''{file-ext}' for the file
                      {file-name}.
components:
  parameters:
    xtoken:
      name: Authorization
      in: header
      description: Bearer JWT token, used to authenticate.
      required: true
      schema:
        type: string
        format: JWT token
        example: >-
          Bearer
          eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJyb2xlcyI6WyJwcm9kdWN0X21hbmFnZXIiLCJ3YXJlaG91c2VfbWFuYWdlciIsIm9yZGVyX21hbmFnZXIiLCJzdG9ja19tYW5hZ2VyIiwicHJpY2VfbWFuYWdlciIsIjEwMDAiXSwiaXNzIjoiYXBpLm5ldGV2ZW4uY29tIiwibG9naW4iOiJhcGktdGVzdC1hY2NvdW50QGVtYWlsLmNvbSIsInJldGFpbGVyX2lkIjpudWxsLCJkZWJ1ZyI6ZmFsc2UsImRlYnVnX2V4cGlyYXRpb25fZHR0IjpudWxsLCJzdWIiOjEwMDAsImlhdCI6MTYzMjEyNTEwNiwiZXhwIjoxNjMyMjExNTA2LCJhdWQiOiJhcGkubmV0ZXZlbi5jb20ifQ.3GfC01HmJl0PS2w16gIcoxgLN52vG5kkDhqNmrkkR4zIGK7ecVfFaZhQ4KCQnimwjWTrExszIE6Oc6d-hC0g-Q
    acceptmultipartformdata:
      name: Accept
      in: header
      description: type of data accepted
      required: true
      schema:
        type: string
        format: multipart/form-data
        example: amultipart/form-data
    contenttype:
      name: Content-Type
      in: header
      description: type of data returned
      required: true
      schema:
        type: string
        format: application/json
        example: application/json
    feedid:
      name: feed_id
      in: query
      description: the feed id related to a specific product import
      required: true
      schema:
        type: integer
  responses:
    BadRequest:
      description: Returns an error if request is invalid.
      content:
        application/json:
          schema:
            oneOf:
              - $ref: '#/components/schemas/BodyError'
              - $ref: '#/components/schemas/QueryStringError'
              - $ref: '#/components/schemas/ErrorResponse'
  schemas:
    BodyError:
      type: object
      properties:
        status:
          type: string
          description: The status of the request
          example: error
        errors:
          description: The list of errors in the query string.
          type: array
          items:
            type: object
            properties:
              location:
                type: string
                example: querystring
                description: The description of the error
              name:
                type: string
                example: bad-query-param-name
              description:
                type: object
                format: json
                description: >-
                  A json object with error number as a string-type key and the
                  value as a list of string
                example:
                  '0':
                    quantity:
                      - Not a valid integer.
    QueryStringError:
      type: object
      properties:
        status:
          type: string
          description: The status of the request
          example: error
        errors:
          description: The list of errors in the query string.
          type: array
          items:
            type: object
            properties:
              location:
                type: string
                example: querystring
                description: The description of the error
              name:
                type: string
                example: bad-query-param-name
              description:
                description: The description of the error.
                type: array
                items:
                  type: string
                example:
                  - Unknown field.
    ErrorResponse:
      $ref: '#/components/schemas/ResponseStatus'
    ResponseStatus:
      type: object
      properties:
        message:
          type: string
          description: The description of the message
          example: Message description
        code:
          type: integer
          description: The code of the message
          example: 400
        title:
          type: string
          description: The title of the message
          example: Message Title

````

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