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

# Create operation type

> Create a new operation type



## OpenAPI

````yaml /api-reference/openapi.json post /admin/api/v1/inventories/operation-types
openapi: 3.0.3
info:
  title: ARUKZ ERP API
  version: v1
  description: >-
    The REST API of ARUKZ ERP: sales, purchases, inventory, products, partners,
    accounts, projects and reference data. Every call acts as the user whose
    token it carries and sees only that user's company.
servers:
  - url: https://erp.arukz.com
    description: ARUKZ ERP (hosted)
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Sign in for a token and sign out.
  - name: Sales
    description: Quotations, sales orders and their lines, deliveries and invoices.
  - name: Purchases
    description: Purchase orders, receipts, bills, agreements and vendor price lists.
  - name: Inventory
    description: >-
      Warehouses, locations, lots, stock quantities, receipts, deliveries,
      transfers and scrap.
  - name: Products
    description: 'The product catalogue: categories, attributes, variants and packaging.'
  - name: Partners
    description: Customers, vendors, contacts, addresses and bank accounts.
  - name: Accounts
    description: >-
      Invoices, bills, credit notes, refunds, taxes, journals and the chart of
      accounts.
  - name: Projects
    description: Projects, tasks, stages and milestones.
  - name: Reference data
    description: Currencies and rates, banks, countries, states and units of measure.
paths:
  /admin/api/v1/inventories/operation-types:
    post:
      tags:
        - Inventory
      summary: Create operation type
      description: Create a new operation type
      operationId: inventory-operation-types-create-operation-type
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: >-
                    Operation type name. Must not be greater than 255
                    characters.
                  example: Receipts
                type:
                  type: string
                  description: Operation type value.
                  enum:
                    - incoming
                    - outgoing
                    - internal
                    - dropship
                  example: incoming
                sequence_code:
                  type: string
                  description: Sequence prefix. Must not be greater than 255 characters.
                  example: IN
                print_label:
                  type: boolean
                  description: Generate shipping labels.
                  nullable: true
                  example: false
                warehouse_id:
                  type: integer
                  description: >-
                    Warehouse ID. The `id` of an existing record in the
                    inventories_warehouses table.
                  nullable: true
                  example: 1
                reservation_method:
                  type: string
                  description: Reservation method.
                  enum:
                    - at_confirm
                    - manual
                    - by_date
                  nullable: true
                  example: at_confirm
                auto_show_reception_report:
                  type: boolean
                  description: Auto show reception report.
                  nullable: true
                  example: false
                company_id:
                  type: integer
                  description: >-
                    Company ID. The `id` of an existing record in the companies
                    table.
                  nullable: true
                  example: 1
                return_operation_type_id:
                  type: integer
                  description: >-
                    Return operation type ID. The `id` of an existing record in
                    the inventories_operation_types table.
                  nullable: true
                  example: 2
                create_backorder:
                  type: string
                  description: Backorder policy.
                  enum:
                    - ask
                    - always
                    - never
                  example: ask
                move_type:
                  type: string
                  description: Shipping policy.
                  enum:
                    - direct
                    - one
                  nullable: true
                  example: direct
                use_create_lots:
                  type: boolean
                  description: Allow creating new lots.
                  nullable: true
                  example: false
                use_existing_lots:
                  type: boolean
                  description: Allow selecting existing lots.
                  nullable: true
                  example: false
                source_location_id:
                  type: integer
                  description: >-
                    Source location ID. The `id` of an existing record in the
                    inventories_locations table.
                  example: 1
                destination_location_id:
                  type: integer
                  description: >-
                    Destination location ID. The `id` of an existing record in
                    the inventories_locations table.
                  example: 2
              required:
                - create_backorder
                - destination_location_id
                - name
                - sequence_code
                - source_location_id
                - type
      responses:
        '201':
          description: Created
          content:
            application/json:
              example:
                data:
                  id: 1
                  name: Receipts
                  type: incoming
                  sort: 1
                  sequence_code: IN
                  reservation_method: at_confirm
                  reservation_days_before: 0
                  reservation_days_before_priority: 0
                  product_label_format: 2x7xprice
                  lot_label_format: 4x12_lots
                  package_label_to_print: pdf
                  barcode: WHIN
                  create_backorder: ask
                  move_type: direct
                  show_entire_packs: false
                  use_create_lots: true
                  use_existing_lots: true
                  print_label: false
                  show_operations: false
                  auto_show_reception_report: false
                  auto_print_delivery_slip: false
                  auto_print_return_slip: false
                  auto_print_product_labels: false
                  auto_print_lot_labels: false
                  auto_print_reception_report: false
                  auto_print_reception_report_labels: false
                  auto_print_packages: false
                  auto_print_package_label: false
                  created_at: '2025-04-07T13:12:33.000000Z'
                  updated_at: '2025-04-07T13:12:33.000000Z'
                  deleted_at: null
                message: Operation type created successfully.
        '401':
          description: Unauthenticated
          content:
            application/json:
              example:
                message: Unauthenticated.
        '422':
          description: Validation error
          content:
            application/json:
              example:
                message: The given data was invalid.
                errors:
                  name:
                    - The name field is required.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        An API token from [Sign in](/api-reference/authentication), sent as
        `Authorization: Bearer <token>`. Tokens last 30 days.

````

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