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

# Decide accounting exceptions in bulk

> Take one decision, with a reason, over open exceptions of several contracts sharing a compatibility key: approve each contract's latest version or record the same override on each, all or nothing; each contract is then re-assessed.



## OpenAPI

````yaml post /v1/accounting/exceptions/bulk-decision
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v1/accounting/exceptions/bulk-decision:
    post:
      tags:
        - Accounting > Revenue policies
      summary: Decide accounting exceptions in bulk
      description: >-
        Take one decision, with a reason, over open exceptions of several
        contracts sharing a compatibility key: approve each contract's latest
        version or record the same override on each, all or nothing; each
        contract is then re-assessed.
      operationId: decideAccountingExceptionsInBulk
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                exception_ids:
                  type: array
                  items:
                    type: string
                    minLength: 1
                  minItems: 1
                  maxItems: 200
                  description: >-
                    Open exceptions to decide, of contracts sharing a
                    compatibility key.
                decision:
                  $ref: '#/components/schemas/AccountingBulkDecision'
                reason:
                  type: string
                  minLength: 1
                  description: Why the decision was taken. Required, not empty.
                  example: Price confirmed by the pricing committee.
              required:
                - exception_ids
                - decision
                - reason
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountingExceptionBulkDecisionResult'
        '400':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
        '404':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  schemas:
    AccountingBulkDecision:
      oneOf:
        - $ref: '#/components/schemas/AccountingApprovalBulkDecision'
        - $ref: '#/components/schemas/AccountingOverrideBulkDecision'
      discriminator:
        propertyName: kind
        mapping:
          approval: '#/components/schemas/AccountingApprovalBulkDecision'
          override: '#/components/schemas/AccountingOverrideBulkDecision'
      description: >-
        `approval` approves each contract's latest version; `override` records
        the same override on each contract.
    AccountingExceptionBulkDecisionResult:
      type: object
      properties:
        batch_id:
          type: string
          description: Shared by the decisions of one bulk decision, or null.
        exceptions:
          type: array
          items:
            $ref: '#/components/schemas/AccountingException'
          description: Open exceptions to decide, of contracts sharing a compatibility key.
      required:
        - batch_id
        - exceptions
    AccountingApprovalBulkDecision:
      type: object
      properties:
        kind:
          type: string
          enum:
            - approval
      required:
        - kind
      additionalProperties: false
      title: Approval
    AccountingOverrideBulkDecision:
      type: object
      properties:
        kind:
          type: string
          enum:
            - override
        override:
          $ref: '#/components/schemas/AccountingOverride'
      required:
        - kind
        - override
      additionalProperties: false
      title: Override
    AccountingException:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier of the accounting exception.
          example: acx_9xQ1z4Ha7Gk2Lm
        assessment_id:
          type: string
          description: Contract assessment the exception belongs to.
          example: caa_2Lm9xQ1z4Ha7Gk
        assessment_version:
          type: integer
          description: Assessment version that raised the exception.
        subscription_id:
          type: string
          description: Identifier of the subscription holding the contract.
          example: sub_Gk2Lm9xQ1z4Ha7
        customer_id:
          type: string
          description: Identifier of the customer.
          example: cus_Lm9xQ1z4Ha7Gk2
        code:
          type: string
          enum:
            - missing_standalone_selling_price
            - standalone_selling_price_not_normalizable
            - unmapped_product
            - zero_allocation_basis
            - discount_exceeds_allocation
            - obligation_not_schedulable
            - recognition_rule_incompatible
            - periods_owned_by_invoice_schedules
            - review_required
            - override_review_required
            - override_out_of_date
            - modification_review_required
            - allocation_below_recognized
            - transition_review_required
            - billing_variance
            - consumption_breakage_review
            - milestone_not_delivered
          description: What the exception is about.
        severity:
          type: string
          enum:
            - blocking
            - informational
          description: >-
            `blocking` holds the contract's recognition until resolved,
            `informational` does not.
        status:
          type: string
          enum:
            - open
            - resolved
            - dismissed
          description: >-
            `open` until a new input, an override, an approval or a dismissal
            resolves it.
        obligation_key:
          type:
            - string
            - 'null'
          description: Obligation the exception is about, or null for the whole contract.
        product_ids:
          type: array
          items:
            type: string
          description: Products the exception is about.
        evidence:
          type: object
          additionalProperties: {}
          description: >-
            Data the exception was raised from. Informational: its keys depend
            on the code and may grow.
        proposed_resolution:
          type:
            - object
            - 'null'
          additionalProperties: {}
          description: >-
            Suggested way to resolve the exception, or null. Informational: its
            keys depend on the code.
        compatibility_key:
          type: string
          description: >-
            Exceptions sharing this key can be decided together in one bulk
            decision.
        decision_id:
          type:
            - string
            - 'null'
          description: Review decision that resolved it, or null.
        resolved_at:
          type:
            - string
            - 'null'
          format: date-time
          description: When the exception was resolved, or null while open.
          example: '2024-12-20T16:04:11Z'
        created_at:
          type: string
          format: date-time
          description: When the record was created.
          example: '2024-12-20T16:04:11Z'
      required:
        - id
        - assessment_id
        - assessment_version
        - subscription_id
        - customer_id
        - code
        - severity
        - status
        - obligation_key
        - product_ids
        - evidence
        - proposed_resolution
        - compatibility_key
        - decision_id
        - resolved_at
        - created_at
    AccountingOverride:
      oneOf:
        - $ref: '#/components/schemas/AccountingStandaloneSellingPriceOverride'
        - $ref: '#/components/schemas/AccountingObligationTreatmentOverride'
        - $ref: '#/components/schemas/AccountingAllocatedAmountsOverride'
        - $ref: '#/components/schemas/AccountingConsumptionUnitsOverride'
      discriminator:
        propertyName: type
        mapping:
          standalone_selling_price: '#/components/schemas/AccountingStandaloneSellingPriceOverride'
          obligation_treatment: '#/components/schemas/AccountingObligationTreatmentOverride'
          allocated_amounts: '#/components/schemas/AccountingAllocatedAmountsOverride'
          consumption_units: '#/components/schemas/AccountingConsumptionUnitsOverride'
      description: >-
        What the reviewer changes on the contract. Applies to every later
        assessment version until revoked.
    AccountingStandaloneSellingPriceOverride:
      type: object
      properties:
        type:
          type: string
          enum:
            - standalone_selling_price
          description: What the override changes.
        obligation_key:
          type: string
          minLength: 1
          description: Obligation the override applies to.
          example: platform
        amount:
          type: number
          minimum: 0
          description: >-
            Standalone selling price of the obligation for the whole contract
            term. Expressed in currency's smallest unit.
          example: 1200000
        evidence_method:
          type: string
          enum:
            - observable_price
            - adjusted_market_assessment
            - expected_cost_plus_margin
            - residual
          description: >-
            How the price was established: observable price, adjusted market
            assessment, expected cost plus margin, or residual approach.
        evidence_note:
          type:
            - string
            - 'null'
          description: Free-text justification of the price, or null.
      required:
        - type
        - obligation_key
        - amount
        - evidence_method
        - evidence_note
      additionalProperties: false
      title: Standalone selling price
    AccountingObligationTreatmentOverride:
      type: object
      properties:
        type:
          type: string
          enum:
            - obligation_treatment
          description: What the override changes.
        obligation_key:
          type: string
          minLength: 1
          description: Obligation the override applies to.
          example: platform
        treatment:
          type: string
          enum:
            - allocated
            - excluded
          description: Treatment the obligation takes.
      required:
        - type
        - obligation_key
        - treatment
      additionalProperties: false
      title: Obligation treatment
    AccountingAllocatedAmountsOverride:
      type: object
      properties:
        type:
          type: string
          enum:
            - allocated_amounts
          description: What the override changes.
        amounts:
          type: array
          items:
            type: object
            properties:
              obligation_key:
                type: string
                minLength: 1
                description: Obligation the override applies to.
                example: platform
              amount:
                type: number
                minimum: 0
                description: >-
                  Amount allocated to the obligation. Expressed in currency's
                  smallest unit.
            required:
              - obligation_key
              - amount
          minItems: 1
          description: >-
            Allocated amount of every allocated obligation, summing to the
            transaction price.
      required:
        - type
        - amounts
      additionalProperties: false
      title: Allocated amounts
    AccountingConsumptionUnitsOverride:
      type: object
      properties:
        type:
          type: string
          enum:
            - consumption_units
          description: What the override changes.
        obligation_key:
          type: string
          minLength: 1
          description: Obligation the override applies to.
          example: platform
        expected_units:
          type: number
          minimum: 0
          description: Units the obligation entitles to over the term.
          example: 100000
      required:
        - type
        - obligation_key
        - expected_units
      additionalProperties: false
      title: Consumption units
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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