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

# Update vendor price list

> Update an existing vendor price list

Also accepts `PATCH` with the same body.



## OpenAPI

````yaml /api-reference/openapi.json put /admin/api/v1/purchases/vendor-price-lists/{id}
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/purchases/vendor-price-lists/{id}:
    put:
      tags:
        - Purchases
      summary: Update vendor price list
      description: |-
        Update an existing vendor price list

        Also accepts `PATCH` with the same body.
      operationId: purchases-vendor-price-lists-update-vendor-price-list
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
            description: The vendor price list ID
            example: 1
          description: The vendor price list ID
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                partner_id:
                  type: integer
                  description: >-
                    Vendor partner ID. The `id` of an existing record in the
                    partners_partners table.
                  example: 12
                product_id:
                  type: integer
                  description: >-
                    Product ID (non-configurable product/variant). The `id` of
                    an existing record in the products_products table.
                  example: 101
                currency_id:
                  type: integer
                  description: >-
                    Currency ID. The `id` of an existing record in the
                    currencies table.
                  example: 1
                company_id:
                  type: integer
                  description: >-
                    Company ID. The `id` of an existing record in the companies
                    table.
                  nullable: true
                  example: 1
                product_name:
                  type: string
                  description: >-
                    Vendor-side product name. Must not be greater than 255
                    characters.
                  nullable: true
                  example: ACME Bolt M8
                product_code:
                  type: string
                  description: >-
                    Vendor-side product code. Must not be greater than 255
                    characters.
                  nullable: true
                  example: ACM-M8-001
                delay:
                  type: integer
                  description: >-
                    Delivery lead time in days. Must be at least 0. Must not be
                    greater than 99999999.
                  nullable: true
                  example: 5
                min_qty:
                  type: number
                  description: >-
                    Minimum quantity for this vendor price. Must be at least 0.
                    Must not be greater than 99999999999.
                  nullable: true
                  example: 10
                price:
                  type: number
                  description: >-
                    Unit price for the vendor. Must be at least 0. Must not be
                    greater than 99999999999.
                  nullable: true
                  example: 125.5
                discount:
                  type: number
                  description: >-
                    Discount percentage/value as configured by module usage.
                    Must be at least 0. Must not be greater than 99999999999.
                  nullable: true
                  example: 5
                starts_at:
                  type: string
                  description: Validity start date (YYYY-MM-DD). Must be a valid date.
                  nullable: true
                  example: '2026-02-20'
                ends_at:
                  type: string
                  description: >-
                    Validity end date (YYYY-MM-DD). Must be a valid date. Must
                    be a date after or equal to `starts_at`.
                  nullable: true
                  example: '2026-12-31'
      responses:
        '200':
          description: Success
          content:
            application/json:
              example:
                data:
                  id: null
                  sort: 7449171
                  delay: 7
                  product_name: animi quos velit
                  product_code: SUP-9432
                  starts_at: '2026-02-15T00:00:00.000000Z'
                  ends_at: '2026-05-24T00:00:00.000000Z'
                  min_qty: 30
                  price: 549.73
                  discount: 15.06
                  product_id: 303
                  partner_id: 1
                  currency_id: 786
                  company_id: 1393
                  creator_id: 1
                  created_at: null
                  updated_at: null
                message: Vendor price list updated successfully.
        '401':
          description: Unauthenticated
          content:
            application/json:
              example:
                message: Unauthenticated.
        '404':
          description: Vendor price list not found
          content:
            application/json:
              example:
                message: Resource not found.
        '422':
          description: Validation error
          content:
            application/json:
              example:
                message: The given data was invalid.
                errors:
                  price:
                    - The price field must be numeric.
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.