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

# Create manual inventory (bulk)



## OpenAPI

````yaml https://app.buylo.ai/api/documentation/swagger/openapi.yaml post /api/inventories/manual/create
openapi: 3.1.1
info:
  title: Buylo - company external API
  version: 1.0.0
  description: >-
    API endpoints for managing products and EPCs in the Buylo system. Use
    company token for authentication.
servers:
  - url: https://app.buylo.ai/
security:
  - bearerAuth: []
paths:
  /api/inventories/manual/create:
    post:
      tags:
        - Inventories
      summary: Create manual inventory (bulk)
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ManualInventoryBulkCreateRequest'
            example:
              location_id: '1'
              epc_ids:
                - BNOYQ
                - NDXDU
                - 6XVKJ
                - FHT1K
                - 8YMQ1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManualInventoryBulkCreateResponse'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ManualInventoryBulkCreateResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ManualInventoryBulkCreateRequest:
      type: object
      required:
        - location_id
        - epc_ids
      properties:
        location_id:
          type: string
          description: Identifier of the location where inventory is created.
          example: '1'
        epc_ids:
          type: array
          items:
            type: string
          minItems: 1
          description: Array of EPC identifiers to include in the manual inventory.
      example:
        location_id: '1'
        epc_ids:
          - BNOYQ
          - NDXDU
          - 6XVKJ
          - FHT1K
          - 8YMQ1
    ManualInventoryBulkCreateResponse:
      type: object
      properties:
        success:
          type: boolean
        created_count:
          type: integer
          description: Number of inventory items created
        details:
          type: array
          items:
            type: object
            properties:
              epc_id:
                type: string
              status:
                type: string
              message:
                type: string
      example:
        success: true
        created_count: 5
        details:
          - epc_id: BNOYQ
            status: created
            message: Inventory item created
          - epc_id: NDXDU
            status: created
            message: Inventory item created
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
    ValidationErrorResponse:
      type: object
      properties:
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````