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

# Contract Amendment Create Api

> Creates an amendment for an existing contract.



## OpenAPI

````yaml post /api/v1/contract/{contract_uuid}/amendment
openapi: 3.1.0
info:
  title: NinjaAPI
  version: 1.0.0
  description: ''
servers:
  - url: https://api.justpaid.io
security: []
paths:
  /api/v1/contract/{contract_uuid}/amendment:
    post:
      summary: Contract Amendment Create Api
      description: Creates an amendment for an existing contract.
      operationId: loopfour_backend_contract_external_api_contract_amendment_create_api
      parameters:
        - in: path
          name: contract_uuid
          schema:
            format: uuid
            title: Contract Uuid
            type: string
          required: true
        - name: contract_uuid
          in: path
          description: UUID of the contract to amend
          required: true
          schema:
            type: string
          example: 123e4567-e89b-12d3-a456-426614174000
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContractAmendmentCreateIn'
        required: true
      responses:
        '201':
          description: Amendment created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContractAmendmentOut'
              example:
                uuid: 456e4567-e89b-12d3-a456-426614174000
                original_contract_uuid: 123e4567-e89b-12d3-a456-426614174000
                effective_date: '2024-06-01'
                status: pending
                amendment_changes:
                  - Contract amount updated from $100k to $150k
        '400':
          description: Contract is not in ACCEPTED status
        '404':
          description: Contract not found
      security:
        - HttpBearerAuth: []
components:
  schemas:
    ContractAmendmentCreateIn:
      description: Input schema for creating a contract amendment.
      properties:
        effective_date:
          description: Date when the amendment becomes effective
          example: '2024-06-01'
          format: date
          title: Effective Date
          type: string
        contract_summary:
          anyOf:
            - type: string
            - type: 'null'
          description: Summary of the amendment changes
          example: Updated pricing for Q3 2024
          title: Contract Summary
        contract_start_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          description: New contract start date (if changing)
          example: '2024-01-01'
          title: Contract Start Date
        contract_end_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          description: New contract end date (if changing)
          example: '2025-01-01'
          title: Contract End Date
        contract_amount:
          anyOf:
            - type: number
            - type: 'null'
          description: Updated contract amount (if changing)
          example: 150000
          title: Contract Amount
        payment_terms:
          anyOf:
            - enum:
                - due upon receipt
                - net 3
                - net 7
                - net 15
                - net 30
                - net 45
                - net 60
                - net 90
                - net 120
              type: string
            - type: 'null'
          description: >-
            Updated payment terms (if changing). Valid values: due upon receipt,
            net 3, net 7, net 15, net 30, net 45, net 60, net 90, net 120
          example: net 60
          title: Payment Terms
      required:
        - effective_date
      title: ContractAmendmentCreateIn
      type: object
    ContractAmendmentOut:
      description: Output schema for contract amendment.
      properties:
        original_contract_uuid:
          description: UUID of the original contract
          format: uuid
          title: Original Contract Uuid
          type: string
        uuid:
          format: uuid
          title: Uuid
          type: string
        effective_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Effective Date
        effective_end_date:
          anyOf:
            - format: date
              type: string
            - type: 'null'
          title: Effective End Date
        status:
          default: pending
          maxLength: 20
          title: Status
          type: string
        amendment_changes:
          anyOf:
            - type: object
            - type: 'null'
          title: Amendment Changes
        summary:
          anyOf:
            - type: string
            - type: 'null'
          title: Summary
      required:
        - original_contract_uuid
      title: ContractAmendmentOut
      type: object
  securitySchemes:
    HttpBearerAuth:
      type: http
      scheme: bearer

````

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