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

# Log a placement

> Logs a permanent placement for a candidate on a job, with the same rules and defaults as the placement form in the app. `start_date` is always required.

**Fee**: while fee tracking is on, `fee` is required and the total fee must be above 0. While it is off, send only the candidate, offer, fee status, currency, start date and notes. `total_fee` is the full fee and `amount` is what the placement bills after retainers. Retainer and milestone installments already billed on the job are deducted by default; list the ones to deduct in `deducted_retainer_ids`, or send an empty list to deduct none (for example when an earlier hire already used the retainer).

**Currencies**: commissions are recorded in the workspace currency. When the client is billed in another currency, send `commission_exchange_rate` unless a rate for the pair is saved in Settings › Currencies (`COMMISSION_EXCHANGE_RATE_REQUIRED`). The same applies to `fee.compensation_exchange_rate` when the compensation is in another currency.

**Splits**: while fee tracking is on, `splits` is required: the team members to credit, totalling 100% with any `team_pool` partners. Send `splits: []` to credit nobody. The app pre-fills the job's team for a person to review; the API does not guess. Only admins can change a placement's splits later, so send them now.

**Offer**: send `offer_id`, or leave it out to link the candidate's accepted offer on the job when there is exactly one that no other placement uses. Offers are never created or changed.

**Retries**: a candidate with an active placement (any status but cancelled) gets `409 PLACEMENT_EXISTS` with the existing `placement_id` in `error.details`, so retrying after a failed or timed-out request does not log the placement twice. Wait for the first request to finish before retrying: two requests sent at the same moment can both be logged. Send `allow_duplicate: true` to log another one on purpose.

This does not move the candidate to a pipeline stage, send emails, claim a retainer pack retainer or apply the workspace's automatic company Do Not Contact setting (set it with `PATCH /v1/companies/{id}` if needed). Contract placements, including any placement on a contract job, are logged in the app.

Returns the placement with its fee, fee status, member splits and partner splits.

**Access**: Session and OAuth callers need permission to edit jobs (`org:jobs:edit`), as in the app. API keys need the `fees:write` and `compensation:read` scopes, because the response includes candidate compensation.



## OpenAPI

````yaml /api-reference/openapi-v1.json post /v1/placements
openapi: 3.1.0
info:
  title: Stardex API (v1)
  version: 1.0.0
  description: >-
    Stardex ATS API — manage candidates, jobs, companies, and recruiting
    workflows.
servers:
  - url: https://api.stardex.ai
    description: Production API server
security:
  - bearerAuth: []
tags:
  - name: Persons
    description: Manage person records — contacts, work history, and custom fields.
  - name: Jobs
    description: Manage job postings — pipeline stages, team members, and custom fields.
  - name: Candidates
    description: Manage candidate records and pipeline stage transitions.
  - name: Companies
    description: Browse and retrieve company records.
  - name: Lists
    description: Create, search, and retrieve saved person and company lists.
  - name: Person Activities
    description: Create and manage activity records (notes, emails, meetings) for persons.
  - name: Team Members
    description: List team members for use in search filters and assignments.
  - name: Custom Fields
    description: Retrieve custom field definitions and tag options for search filters.
  - name: Campaigns
    description: >-
      Create and edit email campaigns, enroll people through enrollment batches,
      and manage who is enrolled.
paths:
  /v1/placements:
    post:
      tags:
        - Placements
      summary: Log a placement
      description: >-
        Logs a permanent placement for a candidate on a job, with the same rules
        and defaults as the placement form in the app. `start_date` is always
        required.


        **Fee**: while fee tracking is on, `fee` is required and the total fee
        must be above 0. While it is off, send only the candidate, offer, fee
        status, currency, start date and notes. `total_fee` is the full fee and
        `amount` is what the placement bills after retainers. Retainer and
        milestone installments already billed on the job are deducted by
        default; list the ones to deduct in `deducted_retainer_ids`, or send an
        empty list to deduct none (for example when an earlier hire already used
        the retainer).


        **Currencies**: commissions are recorded in the workspace currency. When
        the client is billed in another currency, send
        `commission_exchange_rate` unless a rate for the pair is saved in
        Settings › Currencies (`COMMISSION_EXCHANGE_RATE_REQUIRED`). The same
        applies to `fee.compensation_exchange_rate` when the compensation is in
        another currency.


        **Splits**: while fee tracking is on, `splits` is required: the team
        members to credit, totalling 100% with any `team_pool` partners. Send
        `splits: []` to credit nobody. The app pre-fills the job's team for a
        person to review; the API does not guess. Only admins can change a
        placement's splits later, so send them now.


        **Offer**: send `offer_id`, or leave it out to link the candidate's
        accepted offer on the job when there is exactly one that no other
        placement uses. Offers are never created or changed.


        **Retries**: a candidate with an active placement (any status but
        cancelled) gets `409 PLACEMENT_EXISTS` with the existing `placement_id`
        in `error.details`, so retrying after a failed or timed-out request does
        not log the placement twice. Wait for the first request to finish before
        retrying: two requests sent at the same moment can both be logged. Send
        `allow_duplicate: true` to log another one on purpose.


        This does not move the candidate to a pipeline stage, send emails, claim
        a retainer pack retainer or apply the workspace's automatic company Do
        Not Contact setting (set it with `PATCH /v1/companies/{id}` if needed).
        Contract placements, including any placement on a contract job, are
        logged in the app.


        Returns the placement with its fee, fee status, member splits and
        partner splits.


        **Access**: Session and OAuth callers need permission to edit jobs
        (`org:jobs:edit`), as in the app. API keys need the `fees:write` and
        `compensation:read` scopes, because the response includes candidate
        compensation.
      operationId: createPlacement
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePlacementBody'
      responses:
        '201':
          description: Placement logged
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/Placement'
                required:
                  - success
                  - data
              example:
                success: true
                data:
                  id: b8c9d0e1-f2a3-4567-1234-678901234567
                  job_id: d4e5f6a7-b8c9-0123-def0-234567890123
                  type: placement
                  label: null
                  amount: 40000
                  total_fee: 50000
                  currency_code: USD
                  fee_type: percentage
                  fee_percentage: 25
                  compensation: 160000
                  compensation_currency_code: GBP
                  compensation_exchange_rate: 1.25
                  firm_commission_percent: 20
                  commission_currency_code: USD
                  commission_exchange_rate: 1
                  firm_commission_amount: 7500
                  is_placeholder: false
                  sequence: null
                  start_date: '2026-12-01'
                  expected_date: '2026-12-31'
                  actual_payment_date: null
                  candidate_id: c3d4e5f6-a7b8-9012-cdef-123456789012
                  offer_id: e5f6a7b8-c9d0-1234-ef01-345678901234
                  retainer_id: null
                  fee_status_id: a7b8c9d0-e1f2-3456-0123-567890123456
                  fee_status_name: Pending
                  fee_status_color: '#F59E0B'
                  fee_status_type: pending
                  linked_retainer_pack_id: null
                  claimed_pack_retainer_id: null
                  pack_retainer_amount: null
                  engagement_type: permanent
                  bill_rate: null
                  billing_frequency: null
                  payment_terms_days: 30
                  is_draft: false
                  contract_placement_id: null
                  period_start_date: null
                  period_end_date: null
                  notes: Signed offer received on Nov 28.
                  fee_base: base_salary
                  splits:
                    - team_member_id: f6a7b8c9-d0e1-2345-f012-456789012345
                      role: Recruiter
                      split_percentage: 60
                      split_amount: 18000
                    - team_member_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      role: Sourcer
                      split_percentage: 30
                      split_amount: 9000
                  partner_splits:
                    - client_contact_id: 0a1b2c3d-4e5f-6789-0abc-def123456789
                      mode: off_the_top
                      split_percentage: 5
                      split_amount: 2500
                    - client_contact_id: 1b2c3d4e-5f60-7890-1bcd-ef2345678901
                      mode: team_pool
                      split_percentage: 10
                      split_amount: 3000
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false for error responses.
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Machine-readable error code (e.g. "VALIDATION_ERROR",
                          "NOT_FOUND").
                      message:
                        type: string
                        description: Human-readable error description.
                      details:
                        type: object
                        additionalProperties: {}
                        description: >-
                          Extra facts about the error when they help you fix it,
                          such as a limit and when it resets.
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '403':
          description: >-
            The caller cannot edit jobs (`JOB_EDIT_REQUIRED`), or the API key
            lacks the `compensation:read` scope (`COMPENSATION_SCOPE_REQUIRED`)
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false for error responses.
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Machine-readable error code (e.g. "VALIDATION_ERROR",
                          "NOT_FOUND").
                      message:
                        type: string
                        description: Human-readable error description.
                      details:
                        type: object
                        additionalProperties: {}
                        description: >-
                          Extra facts about the error when they help you fix it,
                          such as a limit and when it resets.
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '404':
          description: Candidate not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false for error responses.
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Machine-readable error code (e.g. "VALIDATION_ERROR",
                          "NOT_FOUND").
                      message:
                        type: string
                        description: Human-readable error description.
                      details:
                        type: object
                        additionalProperties: {}
                        description: >-
                          Extra facts about the error when they help you fix it,
                          such as a limit and when it resets.
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '409':
          description: The candidate already has an active placement (`PLACEMENT_EXISTS`)
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false for error responses.
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Machine-readable error code (e.g. "VALIDATION_ERROR",
                          "NOT_FOUND").
                      message:
                        type: string
                        description: Human-readable error description.
                      details:
                        type: object
                        additionalProperties: {}
                        description: >-
                          Extra facts about the error when they help you fix it,
                          such as a limit and when it resets.
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
              example:
                success: false
                error:
                  code: PLACEMENT_EXISTS
                  message: >-
                    This candidate already has a placement. Send
                    allow_duplicate: true to log another one.
                  details:
                    placement_id: b8c9d0e1-f2a3-4567-1234-678901234567
        '422':
          description: >-
            A missing fee or a fee of 0 while fee tracking is on
            (`FEE_REQUIRED`), fee fields while it is off
            (`FEES_MODULE_DISABLED`), placements turned off
            (`PLACEMENTS_MODULE_DISABLED`), a contract offer or contract job, a
            missing exchange rate (`COMPENSATION_EXCHANGE_RATE_REQUIRED`,
            `COMMISSION_EXCHANGE_RATE_REQUIRED`), missing splits while fee
            tracking is on (`SPLITS_REQUIRED`), splits not totalling 100%, a
            retainer that is not billed on the job
            (`RETAINER_NOT_BILLED_ON_JOB`), or an unknown offer, fee status,
            team member or partner
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false for error responses.
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Machine-readable error code (e.g. "VALIDATION_ERROR",
                          "NOT_FOUND").
                      message:
                        type: string
                        description: Human-readable error description.
                      details:
                        type: object
                        additionalProperties: {}
                        description: >-
                          Extra facts about the error when they help you fix it,
                          such as a limit and when it resets.
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    enum:
                      - false
                    description: Always false for error responses.
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        description: >-
                          Machine-readable error code (e.g. "VALIDATION_ERROR",
                          "NOT_FOUND").
                      message:
                        type: string
                        description: Human-readable error description.
                      details:
                        type: object
                        additionalProperties: {}
                        description: >-
                          Extra facts about the error when they help you fix it,
                          such as a limit and when it resets.
                    required:
                      - code
                      - message
                required:
                  - success
                  - error
components:
  schemas:
    CreatePlacementBody:
      type: object
      properties:
        candidate_id:
          type: string
          format: uuid
          description: >-
            The candidate's UUID on the job (from GET /v1/jobs/{id}/candidates).
            The placement is logged on that job.
        offer_id:
          type: string
          format: uuid
          description: >-
            Accepted offer to link, from GET /v1/job-offers. Must be this
            candidate's offer on the same job. Left out, the candidate's
            accepted offer on the job is linked when there is exactly one that
            no other placement uses, as the app does; otherwise none is linked.
            Offers are never created or changed. Contract offers are not
            supported yet.
        fee_status_id:
          type: string
          format: uuid
          description: >-
            Fee status. Get IDs from GET /v1/fee-statuses. Defaults to the
            workspace's default status.
        fee:
          oneOf:
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - fixed
                amount:
                  type: number
                  exclusiveMinimum: 0
                  description: The full placement fee, in `currency_code`. Must be above 0.
              required:
                - type
                - amount
            - type: object
              properties:
                type:
                  type: string
                  enum:
                    - percentage
                percentage:
                  type: number
                  exclusiveMinimum: 0
                  maximum: 100
                  description: Fee rate charged to the client (e.g. 20 for 20%).
                compensation:
                  type: number
                  exclusiveMinimum: 0
                  description: >-
                    Candidate compensation the rate applies to, in
                    `compensation_currency_code`.
                fee_base:
                  type: string
                  enum:
                    - base_salary
                    - total_comp
                  description: >-
                    What `compensation` is: `total_comp` (total compensation,
                    the default) or `base_salary`.
                compensation_currency_code:
                  type: string
                  pattern: ^[A-Za-z]{3}$
                  description: >-
                    Currency of `compensation` (e.g. "GBP"). Defaults to
                    `currency_code`.
                compensation_exchange_rate:
                  type: number
                  exclusiveMinimum: 0
                  description: >-
                    How many units of `currency_code` one unit of
                    `compensation_currency_code` is worth. Only needed when the
                    currencies differ; defaults to the rate saved in Settings ›
                    Currencies.
              required:
                - type
                - percentage
                - compensation
          description: >-
            Required while fee tracking is on, and not accepted while it is off.
            `fixed` takes an `amount`; `percentage` takes a `percentage` of the
            candidate `compensation`. The total fee must be above 0. Retainers
            already billed on the job are deducted from what the placement bills
            unless `deducted_retainer_ids` says otherwise.
        currency_code:
          type: string
          pattern: ^[A-Za-z]{3}$
          description: >-
            Currency the client is billed in (e.g. "USD"). Defaults to the job's
            currency, then the workspace currency.
        firm_commission_percent:
          type: number
          minimum: 0
          maximum: 100
          description: >-
            Share of the fee the firm keeps before the team commission is split
            (0-100). This is not the fee rate. Defaults to the workspace default
            (0 in a one-person workspace or when the firm commission section is
            hidden).
        commission_exchange_rate:
          type: number
          exclusiveMinimum: 0
          description: >-
            How many units of the workspace's default currency one unit of
            `currency_code` is worth. Commissions are recorded in the workspace
            currency at this rate. Only needed when the two currencies differ
            and no rate is saved for the pair in Settings › Currencies.
        deducted_retainer_ids:
          type: array
          items:
            type: string
            format: uuid
          description: >-
            Retainer and milestone installments already billed on the job to
            deduct from what this placement bills, by their `fee_events[].id`
            from GET /v1/jobs/{id}. Leave out to deduct every billed
            installment, as the app does by default. Send an empty list to
            deduct none, for example when an earlier hire on the job already
            used the retainer.
        splits:
          type: array
          items:
            type: object
            properties:
              team_member_id:
                type: string
                format: uuid
                description: Team member to credit. Get IDs from GET /v1/team-members.
              role:
                type:
                  - string
                  - 'null'
                description: >-
                  Optional label for why this person is credited (e.g.
                  "Sourcer").
              split_percentage:
                type: number
                exclusiveMinimum: 0
                maximum: 100
                description: >-
                  This member's share of the team commission, above 0 and at
                  most 100.
            required:
              - team_member_id
              - split_percentage
          description: >-
            Required while fee tracking is on (`SPLITS_REQUIRED`). Team members
            credited for the placement. Members plus `team_pool` partners must
            total 100%. Send an empty list to credit nobody. The job's team is
            listed in GET /v1/jobs/{id}.
        partner_splits:
          type: array
          items:
            type: object
            properties:
              client_contact_id:
                type: string
                format: uuid
                description: >-
                  Referral partner to pay. Must be a referral partner on the job
                  (GET /v1/jobs/{id}/referral-partners).
              mode:
                type: string
                enum:
                  - off_the_top
                  - team_pool
                description: >-
                  `off_the_top`: paid from the total fee before the firm and
                  team share it. `team_pool`: shares the team commission with
                  the members in `splits`.
              split_percentage:
                type: number
                exclusiveMinimum: 0
                maximum: 100
                description: Partner share, above 0 and at most 100.
            required:
              - client_contact_id
              - mode
              - split_percentage
          description: >-
            Referral partner payouts. `off_the_top` partners total at most 100%.
            Send an empty list to pay no partner. Left out, no partner is paid.
        start_date:
          type: string
          format: date
          description: Candidate's start date (YYYY-MM-DD).
        payment_terms_days:
          type: integer
          minimum: 0
          maximum: 365
          description: >-
            Days the client has to pay the invoice (30 for Net 30, 0 for due on
            receipt). Defaults to 30.
        expected_date:
          type: string
          format: date
          description: >-
            When payment is expected (YYYY-MM-DD). Defaults to `start_date` plus
            `payment_terms_days`.
        notes:
          type: string
          description: Notes on the placement.
        allow_duplicate:
          type: boolean
          description: >-
            By default a second placement for the same candidate is refused with
            `409 PLACEMENT_EXISTS` (unless the first is cancelled), so a retry
            after a failed or timed-out request does not log it twice (two
            requests sent at the same moment can both be logged). Send `true` to
            log another placement anyway.
      required:
        - candidate_id
        - start_date
    Placement:
      allOf:
        - $ref: '#/components/schemas/JobFeeEvent'
        - type: object
          properties:
            job_id:
              type: string
              format: uuid
              description: Job the placement is logged on.
            notes:
              type:
                - string
                - 'null'
              description: Notes on the placement.
            fee_base:
              type:
                - string
                - 'null'
              enum:
                - base_salary
                - total_comp
              description: >-
                For a percentage fee, what `compensation` is: `base_salary` or
                `total_comp`. Null for a fixed fee or no fee.
            splits:
              type: array
              items:
                type: object
                properties:
                  team_member_id:
                    type: string
                    format: uuid
                    description: Credited team member UUID.
                  role:
                    type:
                      - string
                      - 'null'
                    description: Why this person is credited, if set.
                  split_percentage:
                    type: number
                    description: Member's share of the team commission.
                  split_amount:
                    type: number
                    description: >-
                      Member's commission in `commission_currency_code`, worked
                      out from the placement.
                required:
                  - team_member_id
                  - role
                  - split_percentage
                  - split_amount
              description: Team members credited for the placement.
            partner_splits:
              type: array
              items:
                type: object
                properties:
                  client_contact_id:
                    type: string
                    format: uuid
                    description: Referral partner UUID.
                  mode:
                    type: string
                    enum:
                      - off_the_top
                      - team_pool
                    description: '`off_the_top` or `team_pool`.'
                  split_percentage:
                    type: number
                    description: Partner share.
                  split_amount:
                    type: number
                    description: >-
                      Partner payout in `currency_code`, worked out from the
                      placement.
                required:
                  - client_contact_id
                  - mode
                  - split_percentage
                  - split_amount
              description: Referral partners paid from the placement.
          required:
            - job_id
            - notes
            - fee_base
            - splits
            - partner_splits
    JobFeeEvent:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Fee event UUID.
        type:
          type: string
          enum:
            - retainer
            - milestone
            - placement
            - contract_payment
          description: >-
            Fee event type. "placement" is a completed placement fee (for a
            contract placement, the contract itself); "retainer" and "milestone"
            are retained-search billing events; "contract_payment" is one
            invoice for a billing period of a contract placement.
        label:
          type:
            - string
            - 'null'
          description: Optional label for the fee event.
        amount:
          type:
            - number
            - 'null'
          description: >-
            Billable amount for this fee event. For placements, the full fee
            minus the retainers deducted from it: retainers billed on this job
            and, when the placement claimed one, a retainer pack retainer (see
            pack_retainer_amount). Never below 0. For a contract payment, the
            invoice amount (bill rate times the hours in its period); 0 on the
            contract placement itself, whose money is on its payments. Null if
            unset.
        total_fee:
          type:
            - number
            - 'null'
          description: >-
            Full fee for the event (for placements, the commission base before
            splits). For a contract payment, the gross profit for its period
            (bill rate minus pay rate, times the hours); for the contract
            placement, the estimated gross profit over the whole contract. Null
            if unset.
        currency_code:
          type:
            - string
            - 'null'
          description: >-
            ISO 4217 currency code for the fee amounts (e.g. "USD"). Null if
            unset.
        fee_type:
          type:
            - string
            - 'null'
          description: How the fee is calculated (e.g. "percentage", "fixed").
        fee_percentage:
          type:
            - number
            - 'null'
          description: Fee percentage used when fee_type is percentage-based.
        compensation:
          type:
            - number
            - 'null'
          description: Candidate compensation the fee percentage is applied to.
        compensation_currency_code:
          type:
            - string
            - 'null'
          description: >-
            ISO 4217 currency code of compensation (e.g. "GBP"). Can differ from
            currency_code, the currency the client is billed in. Null for flat
            fees.
        compensation_exchange_rate:
          type:
            - number
            - 'null'
          description: >-
            Exchange rate used to convert the percentage fee from the
            compensation currency into currency_code: 1 unit of
            compensation_currency_code equals this many units of currency_code.
            Null for flat fees.
        firm_commission_percent:
          type:
            - number
            - 'null'
          description: Firm's commission percentage for this event (0–100).
        commission_currency_code:
          type: string
          description: >-
            ISO 4217 currency code that the firm's commission and the team
            member credit splits are recorded in (your workspace currency when
            the fee was created).
        commission_exchange_rate:
          type: number
          description: >-
            Exchange rate from currency_code to commission_currency_code: 1 unit
            of currency_code equals this many units of commission_currency_code.
            1 when both currencies are the same.
        firm_commission_amount:
          type:
            - number
            - 'null'
          description: >-
            Firm's commission for this event in commission_currency_code. Null
            when not calculated.
        is_placeholder:
          type: boolean
          description: >-
            True if this is a projected/placeholder event rather than a
            confirmed one.
        sequence:
          type:
            - number
            - 'null'
          description: Ordering position within the fee schedule.
        start_date:
          type:
            - string
            - 'null'
          description: Start date (YYYY-MM-DD), if any.
        expected_date:
          type:
            - string
            - 'null'
          description: >-
            Expected billing/payment date (YYYY-MM-DD). For a contract payment,
            its due date.
        actual_payment_date:
          type:
            - string
            - 'null'
          description: Actual payment date (YYYY-MM-DD), once paid.
        candidate_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            Placed candidate UUID for placement events. Matches IDs from GET
            /v1/candidates/{id}.
        offer_id:
          type:
            - string
            - 'null'
          format: uuid
          description: Associated job offer UUID, if any.
        retainer_id:
          type:
            - string
            - 'null'
          format: uuid
          description: Parent retainer UUID for retainer installment events, if any.
        fee_status_id:
          type:
            - string
            - 'null'
          format: uuid
          description: Fee status UUID, if any.
        fee_status_name:
          type:
            - string
            - 'null'
          description: Fee status display name (e.g. "Invoiced", "Paid").
        fee_status_color:
          type:
            - string
            - 'null'
          description: Hex color of the fee status badge.
        fee_status_type:
          type:
            - string
            - 'null'
          enum:
            - pending
            - invoiced
            - paid
            - cancelled
          description: Underlying fee status category.
        linked_retainer_pack_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            Retainer pack UUID this placement is part of, from the client
            company's retainer packs. Null for other events and for placements
            outside any pack.
        claimed_pack_retainer_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            UUID of the retainer pack retainer this placement used. Null when
            the placement claimed none, including extra hires linked to the pack
            at no retainer.
        pack_retainer_amount:
          type:
            - number
            - 'null'
          description: >-
            Amount of the claimed retainer pack retainer, deducted from this
            placement amount. Null when no pack retainer was claimed.
        engagement_type:
          type: string
          enum:
            - permanent
            - contract
          description: >-
            Whether the fee belongs to a `permanent` or a `contract` placement.
            A contract placement is one `placement` event (the contract itself:
            amount 0, total_fee the estimated gross profit over the whole
            contract) plus one `contract_payment` event per billing period.
        bill_rate:
          type:
            - number
            - 'null'
          description: >-
            Contract placements: what the client is billed per hour, in
            currency_code. Set on the contract's `placement` event; null on its
            payments and on permanent fees.
        billing_frequency:
          type:
            - string
            - 'null'
          description: >-
            Contract placements: how often the client is invoiced: `weekly`,
            `biweekly` (every 2 weeks) or `monthly`. Set on the contract's
            `placement` event; null otherwise.
        payment_terms_days:
          type:
            - number
            - 'null'
          description: >-
            Days the client has to pay an invoice (for example 30 for Net 30; 0
            means due on receipt). For a contract payment, expected_date is the
            end of its billing period plus these days. Null when not set.
        is_draft:
          type: boolean
          description: >-
            True for a contract payment whose billing period has not ended yet:
            a planned invoice that counts as forecast only. It becomes a regular
            payment (false) the day after its period ends, or as soon as it is
            marked Invoiced or Paid. Always false for other fee events.
        contract_placement_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            For a `contract_payment`: the UUID of the contract `placement` event
            it belongs to. Null for other fee events.
        period_start_date:
          type:
            - string
            - 'null'
          description: >-
            For a `contract_payment`: first day of the billing period it
            invoices (YYYY-MM-DD). Null for other fee events.
        period_end_date:
          type:
            - string
            - 'null'
          description: >-
            For a `contract_payment`: last day of the billing period it invoices
            (YYYY-MM-DD). Null for other fee events.
      required:
        - id
        - type
        - label
        - amount
        - total_fee
        - currency_code
        - fee_type
        - fee_percentage
        - compensation
        - compensation_currency_code
        - compensation_exchange_rate
        - firm_commission_percent
        - commission_currency_code
        - commission_exchange_rate
        - firm_commission_amount
        - is_placeholder
        - sequence
        - start_date
        - expected_date
        - actual_payment_date
        - candidate_id
        - offer_id
        - retainer_id
        - fee_status_id
        - fee_status_name
        - fee_status_color
        - fee_status_type
        - linked_retainer_pack_id
        - claimed_pack_retainer_id
        - pack_retainer_amount
        - engagement_type
        - bill_rate
        - billing_frequency
        - payment_terms_days
        - is_draft
        - contract_placement_id
        - period_start_date
        - period_end_date
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Authenticate with a Bearer token: API key, OAuth token, or session
        token.

````

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