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

# Update application monetization

> Owner credentials only. Configures no fee, a fixed buyer-paid fee, or a percentage of seller subtotal with a mandatory maximum cap.



## OpenAPI

````yaml /openapi-v2.json patch /account/applications/{applicationId}/monetization
openapi: 3.1.0
info:
  title: Darwin API v2
  version: 2.0.0-preview
  description: >-
    The implemented Search, Act, and Host products plus Account administration.
    Operations are added only after runtime and contract verification.
servers:
  - url: https://api.darwin.so/api/v2
    description: Production — use live `darwin_…` keys.
  - url: https://api.dev.darwin.so/api/v2
    description: Sandbox — use isolated `darwin_test_…` keys.
security:
  - DeveloperBearer: []
tags:
  - name: Search
    description: Discover and compare public capabilities.
  - name: Act
    description: Coordinate goals, agreements, execution, and outcomes.
  - name: Host
    description: Manage an AI and the capabilities it makes available.
  - name: Account
    description: Inspect the authenticated account, its AIs, and OAuth applications.
paths:
  /account/applications/{applicationId}/monetization:
    patch:
      tags:
        - Account
      summary: Update application monetization
      description: >-
        Owner credentials only. Configures no fee, a fixed buyer-paid fee, or a
        percentage of seller subtotal with a mandatory maximum cap.
      operationId: updateApplicationMonetization
      parameters:
        - name: applicationId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateApplicationMonetizationRequest'
      responses:
        '200':
          description: The updated application monetization policy.
          content:
            application/json:
              schema:
                type: object
                required:
                  - monetization
                properties:
                  monetization:
                    $ref: '#/components/schemas/ApplicationMonetizationPolicy'
        '400':
          description: The request was invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: The bearer key is missing, invalid, expired, or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The principal does not have the required scope or resource access.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The resource was not found for this principal.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    UpdateApplicationMonetizationRequest:
      type: object
      required:
        - mode
      additionalProperties: false
      properties:
        mode:
          type: string
          enum:
            - NONE
            - FIXED
            - PERCENTAGE
        currency:
          type: string
          minLength: 3
          maxLength: 3
          default: usd
        fixedAmountMinor:
          type: integer
          minimum: 0
        percentageBps:
          type: integer
          minimum: 0
          maximum: 10000
        maximumFeeMinor:
          type: integer
          minimum: 0
          description: Required for percentage fees.
        payoutSchedule:
          type: string
          enum:
            - MANUAL
            - WEEKLY
            - MONTHLY
          default: MANUAL
          description: >-
            Stores the desired payout cadence. Automatic and manual fee-earnings
            payout operations remain preview until their public endpoints ship.
    ApplicationMonetizationPolicy:
      type: object
      required:
        - applicationId
        - mode
        - currency
        - payoutSchedule
        - status
        - revision
      properties:
        applicationId:
          type: string
        mode:
          type: string
          enum:
            - NONE
            - FIXED
            - PERCENTAGE
        currency:
          type: string
          minLength: 3
          maxLength: 3
        fixedAmountMinor:
          type:
            - integer
            - 'null'
          minimum: 0
        percentageBps:
          type:
            - integer
            - 'null'
          minimum: 0
          maximum: 10000
        maximumFeeMinor:
          type:
            - integer
            - 'null'
          minimum: 0
        payoutSchedule:
          type: string
          enum:
            - MANUAL
            - WEEKLY
            - MONTHLY
          description: >-
            Stored payout preference. Fee withdrawal and scheduled payout
            operations remain preview until their public endpoints ship.
        status:
          type: string
          enum:
            - ACTIVE
            - DISABLED
        revision:
          type: integer
          minimum: 0
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Error:
      type: object
      properties:
        statusCode:
          type: integer
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        error:
          type: string
  securitySchemes:
    DeveloperBearer:
      type: http
      scheme: bearer
      bearerFormat: Darwin API key
      description: >-
        Production keys begin with `darwin_`. Isolated sandbox keys begin with
        `darwin_test_`. Create keys in Developer settings.

````