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

# Create Adjustment

> Record a payroll adjustment (manual credit/debit) for one of the org's tutors.

A negative `amount_cents` is a deduction. `tutor_id` must be an accepted member
of your org (404 otherwise); `period_end` must be on or after `period_start`.
`organization_id`, `created_by`, and `created_at` are server-set.

Send an `Idempotency-Key` header to make retries safe — a repeat with the same
body replays the original response; a repeat with a different body is a 409.



## OpenAPI

````yaml /openapi.json post /v1/adjustments
openapi: 3.1.0
info:
  title: EquateIt Public API
  description: >-
    REST API for EquateIt tutoring organisations. Pipe your sessions, invoices,
    payments, tutor earnings, students, and more into your own tools. Most
    endpoints are reads; a focused set of writes (each gated by a *:write scope)
    create or update data, including creating student/tutor/parent accounts.


    Authenticate every request with an org API key:

        Authorization: Token token=ei_live_...

    Mint keys in the EquateIt app under Settings → Developers.
  version: 1.0.0
servers: []
security:
  - ApiKeyAuth: []
tags:
  - name: General
  - name: Sessions
  - name: Tutors
  - name: Students & Parents
  - name: Billing
  - name: Curriculum
  - name: Coursework
  - name: Operations
  - name: Pricing
  - name: Bookings
  - name: Blog
  - name: Reports
paths:
  /v1/adjustments:
    post:
      tags:
        - Operations
      summary: Create Adjustment
      description: >-
        Record a payroll adjustment (manual credit/debit) for one of the org's
        tutors.


        A negative `amount_cents` is a deduction. `tutor_id` must be an accepted
        member

        of your org (404 otherwise); `period_end` must be on or after
        `period_start`.

        `organization_id`, `created_by`, and `created_at` are server-set.


        Send an `Idempotency-Key` header to make retries safe — a repeat with
        the same

        body replays the original response; a repeat with a different body is a
        409.
      operationId: create_adjustment_v1_adjustments_post
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AdjustmentCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Adjustment'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AdjustmentCreate:
      properties:
        tutor_id:
          type: string
          title: Tutor Id
        period_start:
          type: string
          title: Period Start
          description: ISO date, e.g. 2026-06-01
        period_end:
          type: string
          title: Period End
          description: ISO date; must be >= period_start
        amount_cents:
          type: integer
          title: Amount Cents
          description: Cents. Negative = deduction.
        note:
          type: string
          minLength: 1
          title: Note
          description: Non-empty reason, e.g. 'Training bonus'.
      additionalProperties: false
      type: object
      required:
        - tutor_id
        - period_start
        - period_end
        - amount_cents
        - note
      title: AdjustmentCreate
      description: >-
        POST /v1/adjustments → org_payroll_adjustments. A negative
        `amount_cents`

        is a deduction. `tutor_id` must be an accepted member of the key's org.
    Adjustment:
      properties:
        id:
          type: string
          title: Id
        tutor_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Tutor Id
        period_start:
          anyOf:
            - type: string
            - type: 'null'
          title: Period Start
        period_end:
          anyOf:
            - type: string
            - type: 'null'
          title: Period End
        amount_cents:
          anyOf:
            - type: integer
            - type: 'null'
          title: Amount Cents
        note:
          anyOf:
            - type: string
            - type: 'null'
          title: Note
        voided:
          type: boolean
          title: Voided
          default: false
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
      type: object
      required:
        - id
      title: Adjustment
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Org API key as `Token token=ei_live_...`

````