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

# Update price modifier

> Updates a price modifier by id.



## OpenAPI

````yaml /openapi.yaml patch /v1/price-modifiers/{id}
openapi: 3.1.0
info:
  title: Quentli REST API
  version: 1.0.0
  description: OpenAPI spec for Quentli REST endpoints.
servers:
  - url: https://api.quentli.com
    description: Production API
  - url: https://api.staging.quentli.com
    description: Staging API for production-like validation
security:
  - organizationApiKey: []
  - oauthAccessToken: []
tags:
  - name: Auth
  - name: Management
  - name: Billing
  - name: Catalog
  - name: Customers
  - name: Invoices
  - name: Payment Methods
  - name: Payment Sessions
  - name: Payments
  - name: Subscriptions
  - name: Tax Invoices
  - name: Webhooks
  - name: Messaging
paths:
  /v1/price-modifiers/{id}:
    patch:
      tags:
        - Catalog
      summary: Update price modifier
      description: Updates a price modifier by id.
      operationId: price_modifiers_update
      parameters:
        - schema:
            type: string
            description: Identifier of the price modifier.
          required: true
          description: Identifier of the price modifier.
          name: id
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePriceModifierArgs'
      responses:
        '200':
          description: Price modifier updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdatePriceModifierPayload'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '403':
          description: Permission denied
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
        '404':
          description: Price modifier not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserError'
components:
  schemas:
    UpdatePriceModifierArgs:
      type: object
      properties:
        input:
          type: object
          properties:
            id:
              type: string
            data:
              type: object
              properties:
                name:
                  type: string
                  minLength: 1
                type:
                  type: string
                  enum:
                    - EARLY_PAYMENT_DISCOUNT
                    - LATE_PAYMENT_INTEREST
                adjustmentType:
                  type: string
                  enum:
                    - FIXED
                    - PERCENTAGE
                    - SET_PRICE
                value:
                  type: number
                timeUnit:
                  type: string
                  enum:
                    - MINUTES
                    - HOURS
                    - DAYS
                    - WEEKS
                    - MONTHS
                    - YEARS
                    - BUSINESS_DAYS
                anchorOffsetStart:
                  type: integer
                anchorOffsetEnd:
                  type:
                    - integer
                    - 'null'
                maxAdjustmentAmount:
                  type:
                    - number
                    - 'null'
                  minimum: 0
                  maximum: 99999999999
                description:
                  type:
                    - string
                    - 'null'
                isRecurring:
                  type: boolean
                recurringFrequency:
                  type:
                    - integer
                    - 'null'
                maxApplications:
                  type:
                    - integer
                    - 'null'
                priority:
                  type: integer
                compoundInterest:
                  type: boolean
          required:
            - id
            - data
      required:
        - input
      description: Request body for updating a price modifier.
    UpdatePriceModifierPayload:
      type: object
      properties:
        priceModifier:
          $ref: '#/components/schemas/PriceModifier'
      required:
        - priceModifier
      description: The updated price modifier.
    UserError:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
          required:
            - message
      required:
        - error
      additionalProperties: false
      description: Standard user-facing error response envelope.
    PriceModifier:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the price modifier.
          example: prm_1234567890abcdefghij
        createdAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
          description: When the modifier was created.
          example: '2025-01-01T00:00:00.000Z'
        updatedAt:
          anyOf:
            - type: string
              description: Date string
            - type: string
              format: date-time
              description: Date object
          description: When the modifier was last updated.
          example: '2025-01-01T00:00:00.000Z'
        name:
          type: string
          description: Display name of the modifier.
          example: Descuento por pago anticipado 10%
        type:
          type: string
          enum:
            - EARLY_PAYMENT_DISCOUNT
            - LATE_PAYMENT_INTEREST
          description: >-
            Whether this is an early payment discount or a late payment interest
            charge.
          example: EARLY_PAYMENT_DISCOUNT
        adjustmentType:
          type: string
          enum:
            - FIXED
            - PERCENTAGE
            - SET_PRICE
          description: >-
            Whether the adjustment is a fixed amount, a percentage, or a
            resulting set price.
          example: PERCENTAGE
        value:
          type: number
          description: >-
            Adjustment value: cents for FIXED and SET_PRICE, percentage points
            for PERCENTAGE.
          example: 10
        timeUnit:
          type: string
          enum:
            - MINUTES
            - HOURS
            - DAYS
            - WEEKS
            - MONTHS
            - YEARS
            - BUSINESS_DAYS
          description: Time unit for offset and frequency calculations.
          example: DAYS
        anchorOffsetStart:
          type: number
          description: >-
            Start of the eligibility window (in time units) relative to the
            anchor date.
          example: 1
        anchorOffsetEnd:
          type:
            - number
            - 'null'
          description: >-
            End of the eligibility window (in time units) relative to the anchor
            date, if bounded.
        maxAdjustmentAmount:
          type:
            - number
            - 'null'
          description: Maximum total adjustment in minor currency units.
          example: null
        description:
          type:
            - string
            - 'null'
          description: Optional description of the modifier.
          example: null
        isRecurring:
          type: boolean
          description: Whether the modifier is applied repeatedly over time.
          example: false
        organizationId:
          type: string
          description: Identifier of the owning organization.
          example: org_1234567890abcdefghij
        compoundInterest:
          type: boolean
          description: >-
            Whether interest compounds on accumulated interest (late payment
            only).
          example: false
        recurringFrequency:
          type:
            - number
            - 'null'
          description: How often the modifier is applied (in time units) when recurring.
          example: null
        maxApplications:
          type:
            - number
            - 'null'
          description: Maximum number of times this modifier can be applied.
          example: null
        priority:
          type: number
          description: >-
            Application order when multiple modifiers are active. Lower values
            run first.
          example: 0
        oneOff:
          type: boolean
          description: Whether this modifier is single-use.
          example: false
      required:
        - id
        - createdAt
        - updatedAt
        - name
        - type
        - adjustmentType
        - value
        - timeUnit
        - anchorOffsetStart
        - anchorOffsetEnd
        - maxAdjustmentAmount
        - isRecurring
        - organizationId
        - compoundInterest
        - recurringFrequency
        - maxApplications
        - priority
        - oneOff
      description: >-
        A configurable rule that adjusts invoice amounts for early payment
        discounts or late payment interest.
  securitySchemes:
    organizationApiKey:
      type: http
      scheme: bearer
      description: 'Organization API key using `Authorization: Bearer sk_...`.'
    oauthAccessToken:
      type: http
      scheme: bearer
      bearerFormat: OAuth 2.1
      description: 'OAuth access token using `Authorization: Bearer qoa_at_...`.'

````

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