---
title: "ContractAssignment"
url: "https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a/schemas/ContractAssignment"
---

> Full API specification: https://developer-staging.agentsync.io/apis/platform-api/versions/8177e94d-86f2-48a5-8ed6-d5fbcb69f38a.md

# ContractAssignment

One contract assignment: the list's fields, the states set on the assignment itself and its access override.

## OpenAPI definition

```yaml
openapi: 3.1.1
info:
  title: AgentSync Platform API
  version: 0.0.1
servers:
  - url: https://api.{environment}.agentsync.io/platform
    description: AgentSync API gateway
    variables:
      environment:
        default: sandbox
        enum:
          - sandbox
components:
  schemas:
    ContractAssignmentSummary:
      type: object
      description: "A contract assignment under a contract your organization is a
        party to: one producer, a person or a firm, placed on one of the
        contract's products."
      required:
        - id
        - contractId
        - productId
        - producerType
        - status
        - carrierStatus
        - partnerStatus
        - effectiveAt
      properties:
        id:
          $ref: "#/components/schemas/ContractAssignmentId"
        contractId:
          $ref: "#/components/schemas/ContractId"
          description: The TypeID of the contract the assignment is under.
          example: contract_01h455vb4pex5vsknk084sn02q
        productId:
          $ref: "#/components/schemas/ProductId"
          description: The TypeID of the bucket or product the producer is placed on.
          example: product_01h455vb4pex5vsknk084sn02q
        producerType:
          type: string
          description: individual when the producer is a person, named by personId; firm
            when it is an organization, named by firmOrganizationId.
          enum:
            - individual
            - firm
          example: individual
        personId:
          $ref: "#/components/schemas/PersonId"
          description: The producer's person TypeID. Absent on a firm's assignment.
          example: person_01h455vb4pex5vsknk084sn02q
        firmOrganizationId:
          $ref: "#/components/schemas/OrganizationId"
          description: The producer's organization TypeID. Absent on a person's assignment.
          example: org_01h455vb4pex5vsknk084sn02q
        writingNumber:
          type: string
          description: The writing number set on this assignment. Absent when none is set
            on it.
          example: W-1001
        status:
          type: string
          description: "Derived from the two statuses beside it: terminated once the
            assignment is terminated; else the carrier's pending or suspended;
            else active when both say active; else inactive."
          enum:
            - active
            - inactive
            - pending
            - suspended
            - terminated
          example: active
        carrierStatus:
          type: string
          description: The carrier's status for the assignment.
          enum:
            - active
            - inactive
            - pending
            - suspended
          example: active
        partnerStatus:
          type: string
          description: The distribution organization's status for the assignment.
          enum:
            - active
            - inactive
          example: active
        uplineContractAssignmentId:
          $ref: "#/components/schemas/ContractAssignmentId"
          description: The TypeID of the assignment directly above this one. Absent on a
            top-level assignment, and when the upline is not shown to your
            organization.
          example: contractassignment_01h455vb4pex5vsknk084sn02r
        changeRequestId:
          $ref: "#/components/schemas/ChangeRequestId"
          description: The TypeID of the change request that created the assignment.
            Absent on one created directly.
          example: changerequest_01h455vb4pex5vsknk084sn02q
        effectiveAt:
          type: string
          format: date-time
          description: When the assignment took effect.
          example: 2026-02-01T00:00:00Z
        terminatedAt:
          type: string
          format: date-time
          description: When the assignment was terminated. Absent until it is.
          example: 2026-06-30T00:00:00Z
      example:
        id: contractassignment_01h455vb4pex5vsknk084sn02q
        contractId: contract_01h455vb4pex5vsknk084sn02q
        productId: product_01h455vb4pex5vsknk084sn02q
        producerType: individual
        personId: person_01h455vb4pex5vsknk084sn02q
        writingNumber: W-1001
        status: active
        carrierStatus: active
        partnerStatus: active
        effectiveAt: 2026-02-01T00:00:00Z
    AccessOverrideEntry:
      type: object
      description: One entry of an access override. A field that is null does not
        constrain the entry.
      required:
        - id
        - productId
        - states
        - effectiveOn
        - expiresOn
        - commissionLevelIds
        - annualizationIds
      properties:
        id:
          $ref: "#/components/schemas/AccessOverrideEntryId"
        productId:
          $ref: "#/components/schemas/ProductId"
          description: The TypeID of the bucket or product the entry is for.
          example: product_01h455vb4pex5vsknk084sn02q
        states:
          type:
            - array
            - "null"
          description: The two-letter state codes the entry is limited to. Null for any
            state.
          items:
            type: string
            description: A two-letter US state code.
            example: CO
          example:
            - CO
            - TX
        effectiveOn:
          type:
            - string
            - "null"
          format: date
          description: The first day the entry applies, as YYYY-MM-DD. Null when it has no
            start.
          example: 2026-03-01
        expiresOn:
          type:
            - string
            - "null"
          format: date
          description: The last day the entry applies, as YYYY-MM-DD. Null when it has no
            end.
          example: 2027-02-28
        commissionLevelIds:
          type:
            - array
            - "null"
          description: The commission level IDs the entry is limited to. Null for any level.
          items:
            $ref: "#/components/schemas/CommissionLevelId"
          example:
            - commissionlevel_01h455vb4pex5vsknk084sn02q
        annualizationIds:
          type:
            - array
            - "null"
          description: The annualization IDs the entry is limited to. Null for any
            annualization.
          items:
            $ref: "#/components/schemas/AnnualizationId"
          example:
            - annualization_01h455vb4pex5vsknk084sn02q
      example:
        id: accessoverrideentry_01h455vb4pex5vsknk084sn02q
        productId: product_01h455vb4pex5vsknk084sn02q
        states:
          - CO
          - TX
        effectiveOn: 2026-03-01
        expiresOn: null
        commissionLevelIds: null
        annualizationIds: null
    ContractAssignmentId:
      type: string
      description: A contract assignment's ID, a TypeID with the prefix contractassignment.
      pattern: ^contractassignment_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: contractassignment_01h455vb4pex5vsknk084sn02q
    ContractId:
      type: string
      description: A contract's ID, a TypeID with the prefix contract.
      pattern: ^contract_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: contract_01h455vb4pex5vsknk084sn02q
    ProductId:
      type: string
      description: The ID of a product or bucket of products, a TypeID with the prefix
        product.
      pattern: ^product_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: product_01h455vb4pex5vsknk084sn02q
    PersonId:
      type: string
      description: A person's ID, a TypeID with the prefix person.
      pattern: ^person_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: person_01h455vb4pex5vsknk084sn02q
    OrganizationId:
      type: string
      description: "An organization's ID: a TypeID with the prefix org. It never
        changes, and is the same ID for the organization across the AgentSync
        API."
      pattern: ^org_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: org_01h455vb4pex5vsknk084sn02q
    ChangeRequestId:
      type: string
      description: A change request's ID, a TypeID with the prefix changerequest.
      pattern: ^changerequest_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: changerequest_01h455vb4pex5vsknk084sn02q
    AccessOverrideEntryId:
      type: string
      description: An access override entry's ID, a TypeID with the prefix
        accessoverrideentry.
      pattern: ^accessoverrideentry_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: accessoverrideentry_01h455vb4pex5vsknk084sn02q
    CommissionLevelId:
      type: string
      description: A commission level's ID, a TypeID with the prefix commissionlevel.
      pattern: ^commissionlevel_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: commissionlevel_01h455vb4pex5vsknk084sn02q
    AnnualizationId:
      type: string
      description: An annualization's ID, a TypeID with the prefix annualization.
      pattern: ^annualization_[0-7][0-9a-hjkmnp-tv-z]{25}$
      example: annualization_01h455vb4pex5vsknk084sn02q
    ContractAssignment:
      description: "One contract assignment: the list's fields, the states set on the
        assignment itself and its access override."
      allOf:
        - $ref: "#/components/schemas/ContractAssignmentSummary"
        - type: object
          description: The fields only the detail carries.
          required:
            - states
            - accessOverride
          properties:
            accessOverride:
              type:
                - object
                - "null"
              description: The access override as authored on this assignment. Null when it
                has none.
              required:
                - version
                - entries
              properties:
                version:
                  type: integer
                  description: The override's version, which grows with each change to it.
                  example: 3
                entries:
                  type: array
                  description: The override's entries.
                  items:
                    $ref: "#/components/schemas/AccessOverrideEntry"
              example:
                version: 3
                entries:
                  - id: accessoverrideentry_01h455vb4pex5vsknk084sn02q
                    productId: product_01h455vb4pex5vsknk084sn02q
                    states:
                      - CO
                      - TX
                    effectiveOn: 2026-03-01
                    expiresOn: null
                    commissionLevelIds: null
                    annualizationIds: null
            states:
              type: array
              description: The two-letter state codes set on this assignment. Empty when it
                inherits its upline's.
              items:
                type: string
                description: A two-letter US state code.
                example: CO
              example:
                - CO
                - TX
          example:
            states:
              - CO
              - TX
            accessOverride: null
      example:
        id: contractassignment_01h455vb4pex5vsknk084sn02q
        contractId: contract_01h455vb4pex5vsknk084sn02q
        productId: product_01h455vb4pex5vsknk084sn02q
        producerType: individual
        personId: person_01h455vb4pex5vsknk084sn02q
        writingNumber: W-1001
        status: active
        carrierStatus: active
        partnerStatus: active
        effectiveAt: 2026-02-01T00:00:00Z
        states:
          - CO
          - TX
        accessOverride: null
```
