Drippay Contracts API

Per-customer commercial agreements with custom pricing, prepaid commits, and spend caps. All contract endpoints require a secret key (`sk_*`) with the `ADMIN` role.

OpenAPI Specification

drippay-contracts-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Drip BillableMetrics Contracts API
  description: "\n# Drip API\n\n**Usage-based billing + execution ledger.**\n\n---\n\n## 60-Second Quickstart (Core SDK)\n\n### 1. Install\n\n```bash\nnpm install @drip-sdk/node\n```\n\n### 2. Set your API key\n\n```bash\n# Secret key - full API access (server-side only, never expose publicly)\nexport DRIP_API_KEY=sk_test_...\n\n# Use a secret key for the customer, billing, runs, pricing-plan, and webhook\n# flows documented in this reference.\n```\n\nOr use a \".env\" file (recommended):\n\n```bash\nnpm install dotenv\n# .env\nDRIP_API_KEY=sk_test_...\n```\n\nLoad your \".env\" at the top of your entry file:\n\n```typescript\nimport 'dotenv/config';\n```\n\n### 3. Create a customer and track usage\n\n```typescript\nimport 'dotenv/config';\nimport { drip } from '@drip-sdk/node';\n\n// Create a customer first\nconst customer = await drip.createCustomer({ externalCustomerId: 'user_123' });\n\n// Internal tracking only (no billing)\nawait drip.trackUsage({ customerId: customer.id, meter: 'api_calls', quantity: 1 });\n```\n\nThe `drip` singleton reads `DRIP_API_KEY` from your environment automatically.\n\n### Alternative: Explicit Configuration\n\n```typescript\nimport 'dotenv/config';\nimport { Drip } from '@drip-sdk/node';\n\n// Auto-reads DRIP_API_KEY from environment\nconst client = new Drip();\n\n// Or pass config explicitly with an Admin/Operator secret key\nconst clientWithSecret = new Drip({ apiKey: 'sk_test_...' });\n```\n\n### Full Example (Node.js)\n\n```typescript\nimport 'dotenv/config';\nimport { drip } from '@drip-sdk/node';\n\nasync function main() {\n  // Verify connectivity\n  await drip.ping();\n\n  // Create a customer (at least one of externalCustomerId or onchainAddress required)\n  const customer = await drip.createCustomer({ externalCustomerId: 'user_123' });\n\n  // Internal tracking (no billing)\n  await drip.trackUsage({\n    customerId: customer.id,\n    meter: 'llm_tokens',\n    quantity: 842,\n    metadata: { model: 'gpt-4o-mini' },\n  });\n\n  // Billable usage\n  await drip.charge({\n    customerId: customer.id,\n    meter: 'api_calls',\n    quantity: 1,\n  });\n\n  // Record an execution lifecycle\n  await drip.recordRun({\n    customerId: customer.id,\n    workflow: 'research-agent',\n    events: [\n      { eventType: 'llm.call', quantity: 1700, units: 'tokens' },\n      { eventType: 'tool.call', quantity: 1 },\n    ],\n    status: 'COMPLETED',\n  });\n\n  console.log(`Customer ${customer.id}: usage + run recorded`);\n}\n\nmain();\n```\n\n```python\nfrom drip import drip\n\n# Create a customer first\ncustomer = drip.create_customer(external_customer_id=\"user_123\")\n\n# Internal tracking only (no billing)\ndrip.track_usage(customer_id=customer.id, meter=\"api_calls\", quantity=1)\n```\n\nThe `drip` singleton reads `DRIP_API_KEY` from your environment automatically.\n\n### Alternative: Explicit Configuration (Python)\n\n```python\nfrom drip import Drip\n\n# Auto-reads DRIP_API_KEY from environment\nclient = Drip()\n\n# Or pass config explicitly with an Admin/Operator secret key\nclient_with_secret = Drip(api_key=\"sk_test_...\")\n```\n\n### Full Example (Python)\n\n```python\nfrom drip import drip\n\n# Verify connectivity\ndrip.ping()\n\n# Create a customer (at least one of external_customer_id or onchain_address required)\ncustomer = drip.create_customer(external_customer_id=\"user_123\")\n\n# Internal tracking (no billing)\ndrip.track_usage(\n    customer_id=customer.id,\n    meter=\"llm_tokens\",\n    quantity=842,\n    metadata={\"model\": \"gpt-4o-mini\"}\n)\n\n# Billable usage\ndrip.charge(\n    customer_id=customer.id,\n    meter=\"api_calls\",\n    quantity=1\n)\n\n# Record execution lifecycle\ndrip.record_run(\n    customer_id=customer.id,\n    workflow=\"research-agent\",\n    events=[\n        {\"event_type\": \"llm.call\", \"quantity\": 1700, \"units\": \"tokens\"},\n        {\"event_type\": \"tool.call\", \"quantity\": 1},\n    ],\n    status=\"COMPLETED\"\n)\n\nprint(f\"Customer {customer.id}: usage + run recorded\")\n```\n\n**Expected result:**\n- No errors\n- Events appear in your Drip dashboard within seconds\n\n**Install:** `npm install @drip-sdk/node` or `pip install drip-sdk`\n\n**Set API key:** `export DRIP_API_KEY=sk_test_...` or use a \".env\" file with `DRIP_API_KEY=sk_test_...` and load it with `import 'dotenv/config'` (for Node.js)\n\n---\n\n## REST API Quick Start\n\n### Step 1: Create a customer\n\n```bash\ncurl -X POST https://api.drippay.dev/v1/customers \\\n  -H \"Authorization: Bearer sk_test_YOUR_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"externalCustomerId\": \"user_123\"}'\n```\n\n**You'll get back:**\n```json\n{\n  \"id\": \"cmlxxxxxx...\",\n  \"externalCustomerId\": \"user_123\",\n  \"status\": \"ACTIVE\"\n}\n```\n\n### Step 2: Create pricing\n\nUse the same meter string in your pricing plan and your usage calls:\n\n```bash\ncurl -X POST https://api.drippay.dev/v1/pricing-plans \\\n  -H \"Authorization: Bearer sk_test_YOUR_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"name\": \"API Calls\",\n    \"unitType\": \"api_calls\",\n    \"unitPriceUsd\": 0.001\n  }'\n```\n\n### Step 3: Charge usage\n\n```bash\ncurl -X POST https://api.drippay.dev/v1/usage \\\n  -H \"Authorization: Bearer sk_test_YOUR_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"customerId\": \"CUSTOMER_ID_FROM_STEP_1\",\n    \"usageType\": \"api_calls\",\n    \"quantity\": 100,\n    \"idempotencyKey\": \"charge_001\"\n  }'\n```\n\n---\n\n## SDK Methods\n\n### Node.js (`@drip-sdk/node`)\n\n| Method | Description |\n|--------|-------------|\n| `createCustomer()` | Create a customer |\n| `getCustomer()` | Get customer details |\n| `listCustomers()` | List all customers |\n| `trackUsage()` | Record internal usage without billing |\n| `charge()` | Record usage and charge (requires pricing plan) |\n| `emitEvent()` | Record an execution event |\n| `recordRun()` | Record a complete agent run |\n| `startRun()` | Start a run |\n| `endRun()` | End a run |\n| `getBalance()` | Get customer balance |\n\n### Python (`drip-sdk`)\n\n| Method | Description |\n|--------|-------------|\n| `create_customer()` | Create a customer |\n| `get_customer()` | Get customer details |\n| `list_customers()` | List all customers |\n| `track_usage()` | Record internal usage without billing |\n| `charge()` | Record usage and charge (requires pricing plan) |\n| `emit_event()` | Record an execution event |\n| `record_run()` | Record a complete agent run |\n| `start_run()` | Start a run |\n| `end_run()` | End a run |\n| `get_balance()` | Get customer balance |\n\n---\n\n## Two Modes\n\n| Mode | How | When |\n|------|-----|------|\n| **Tracking only** | `trackUsage()` / `track_usage()` | Pilots, analytics, no billing yet |\n| **Billing** | `charge()` + pricing plan | Ready to charge customers |\n\nBoth modes record usage in the ledger. The difference is whether a charge is created.\n\nUse `POST /v1/usage/internal` when you want tracking only.\n\n---\n\n## Authentication\n\n```\nAuthorization: Bearer sk_test_YOUR_KEY\n```\n\n### Key Types\n\n| Key Prefix | Use For |\n|------------|---------|\n| `sk_test_*` / `sk_live_*` | Server-side API access (secret key) |\n| `pk_test_*` / `pk_live_*` | Public key identifier. The role-protected endpoints in this reference require a secret key |\n\n### API Key Roles\n\nSecret keys (`sk_*`) are assigned a role that controls which endpoints they can access. Roles are hierarchical: higher roles include all permissions of lower roles.\n\n| Role | Level | Permissions |\n|------|-------|-------------|\n| `READONLY` | Lowest | List and read resources (customers, charges, pricing plans, events) |\n| `OPERATOR` | Mid | + Create customers, charge usage, track internal usage, emit events, manage runs |\n| `ADMIN` | Highest | + Create/update/delete pricing plans, manage contracts, manage API keys |\n\nPublic keys (`pk_*`) are always `READONLY`: they cannot create or modify resources.\n\n> **Important:** To create, update, or delete **pricing plans** and **contracts**, you must use a secret key (`sk_*`) with the **ADMIN** role. Using a lower-role key returns `403 Forbidden`.\n\n---\n\n## Idempotency\n\nAlways include `idempotencyKey` in POST requests to prevent duplicates:\n\n```json\n{\n  \"customerId\": \"cmlxxxxxx...\",\n  \"usageType\": \"api_calls\",\n  \"quantity\": 1,\n  \"idempotencyKey\": \"req_unique_12345\"\n}\n```\n\nSame key = same result. Safe to retry on network failures.\n\n---\n\n## Error Codes\n\n| Status | Meaning | Fix |\n|--------|---------|-----|\n| **400** | Bad request | Check request body matches schema |\n| **401** | Invalid API key | Verify `Authorization: Bearer sk_...` header |\n| **404** | Not found | Customer/pricing plan doesn't exist. Create customer first. |\n| **409** | Duplicate | Resource with this ID already exists |\n| **422** | Validation error | Check required fields and types |\n\n---\n\n## Important Notes\n\n- **Always create a customer first** for billable onboarding flows. You cannot use made-up customer IDs.\n- **`POST /v1/events`** records execution events (what happened). It does **not** auto-create charges.\n- **`POST /v1/usage`** records usage and creates charges if a matching pricing plan exists.\n- **`POST /v1/usage/internal`** records usage without billing.\n- **Numbers as strings**: Monetary amounts are returned as strings (e.g., `\"0.001000\"`) to preserve precision.\n"
  version: 1.0.0
  contact:
    name: Drip Support
    email: support@drippay.dev
  x-logo:
    url: https://drippay.dev/logo.svg
    altText: Drip
servers:
- url: https://api.drippay.dev
  description: Production
- url: http://localhost:3001
  description: Development
security:
- bearerAuth: []
tags:
- name: Contracts
  description: Per-customer commercial agreements with custom pricing, prepaid commits, and spend caps. All contract endpoints require a secret key (`sk_*`) with the `ADMIN` role.
paths:
  /v1/contracts:
    post:
      operationId: createContract
      summary: Create a contract
      tags:
      - Contracts
      description: 'Create a per-customer commercial agreement with custom pricing, prepaid commits, and spend caps.


        Contracts override default pricing plans for a specific customer. Use them for:

        - **Enterprise deals** with negotiated rates (via price overrides)

        - **Prepaid commits** where the customer pays upfront and draws down a balance

        - **Spend caps** to enforce maximum billing per period

        - **Minimum commits** to guarantee a revenue floor

        - **Volume discounts** applied as a percentage across all usage

        - **Free-tier allocations** with included units per usage type


        The `customerId` must reference a customer created via `POST /customers`. If `prepaidAmountUsdc` is provided, the contract is initialized with that amount as `prepaidBalanceUsdc`.


        > **Requires a secret key (`sk_*`) with the `ADMIN` role.**'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Create a per-customer commercial agreement. Use contracts to offer enterprise customers custom pricing, prepaid commits, spend caps, and volume discounts. The customer must already exist (created via `POST /customers`).
              properties:
                customerId:
                  type: string
                  minLength: 1
                  description: ID of the customer this contract applies to. Must be a valid customer ID returned from `POST /customers`.
                  example: cus_abc123def456
                name:
                  type: string
                  minLength: 1
                  maxLength: 255
                  description: Human-readable name for the contract (e.g., "Acme Corp Enterprise Q1 2024")
                  example: Acme Corp Enterprise Agreement
                startDate:
                  type: string
                  format: date-time
                  description: When the contract takes effect (ISO 8601). Can be in the future for scheduled activations.
                  example: '2024-01-01T00:00:00.000Z'
                endDate:
                  type: string
                  format: date-time
                  description: When the contract expires (ISO 8601). Omit for a perpetual contract with no end date.
                  example: '2024-12-31T23:59:59.000Z'
                minimumUsdc:
                  type: string
                  description: Minimum committed spend in USDC. The customer is billed for at least this amount regardless of actual usage. Use for minimum-commit deals.
                  example: '500.00'
                maximumUsdc:
                  type: string
                  description: Maximum spend cap in USDC. Charges that would exceed this cap are blocked. Use for budget-capped agreements.
                  example: '10000.00'
                discountPct:
                  type: string
                  description: Percentage discount applied to all charges (0-100). For example, "15" means 15% off all usage charges under this contract.
                  example: '15'
                prepaidAmountUsdc:
                  type: string
                  description: Prepaid commit amount in USDC. This amount is pre-loaded as a credit balance. Charges draw down from this balance first before falling back to normal billing.
                  example: '1000.00'
                prepaidRollover:
                  type: boolean
                  description: Whether unused prepaid balance rolls over to the next billing period. Defaults to false (unused balance expires).
                  default: false
                includedUnits:
                  type: object
                  additionalProperties:
                    type: number
                  description: Free unit allocations per usage type. Keys are unit types (must match pricing plan `unitType`), values are the number of free units per billing period. Usage within these limits is not charged.
                  example:
                    api_call: 10000
                    token: 1000000
                metadata:
                  type: object
                  additionalProperties: true
                  description: Arbitrary key-value metadata. Useful for storing external references (CRM deal IDs, internal tags, etc.).
                  example:
                    salesforceId: OPP-12345
                    tier: enterprise
              required:
              - customerId
              - name
              - startDate
        description: Create a per-customer commercial agreement. Use contracts to offer enterprise customers custom pricing, prepaid commits, spend caps, and volume discounts. The customer must already exist (created via `POST /customers`).
      responses:
        '201':
          description: Contract created successfully
          content:
            application/json:
              schema:
                type: object
                description: Contract created successfully
                properties:
                  id:
                    type: string
                    description: Unique identifier for the contract
                    example: ctr_abc123def456
                  businessId:
                    type: string
                    description: Business that owns this contract
                    example: biz_789xyz
                  customerId:
                    type: string
                    description: Customer this contract applies to (must be created via POST /customers first)
                    example: cus_abc123def456
                  name:
                    type: string
                    description: Human-readable name for the contract
                    example: Acme Corp Enterprise Agreement
                  status:
                    type: string
                    enum:
                    - ACTIVE
                    - PAUSED
                    - EXPIRED
                    - CANCELLED
                    description: 'Current contract status. Only ACTIVE contracts affect billing. Transitions: ACTIVE → PAUSED, EXPIRED, or CANCELLED.'
                    example: ACTIVE
                  startDate:
                    type: string
                    format: date-time
                    description: When the contract takes effect (ISO 8601)
                    example: '2024-01-01T00:00:00.000Z'
                  endDate:
                    type: string
                    format: date-time
                    nullable: true
                    description: When the contract expires (ISO 8601). Null means the contract is perpetual.
                    example: '2024-12-31T23:59:59.000Z'
                  minimumUsdc:
                    type: string
                    nullable: true
                    description: Minimum committed spend in USDC for the contract period. If the customer spends less, they are still billed for the minimum.
                    example: '500.000000'
                  maximumUsdc:
                    type: string
                    nullable: true
                    description: Maximum spend cap in USDC for the contract period. Charges that would exceed this cap are blocked.
                    example: '10000.000000'
                  discountPct:
                    type: string
                    nullable: true
                    description: Percentage discount applied to all charges under this contract (0-100, up to 2 decimal places)
                    example: '15.00'
                  prepaidAmountUsdc:
                    type: string
                    nullable: true
                    description: Total prepaid commit amount in USDC. This is the initial balance loaded into the contract.
                    example: '1000.000000'
                  prepaidBalanceUsdc:
                    type: string
                    nullable: true
                    description: Remaining prepaid balance in USDC. Decreases as charges are applied. When depleted, charges fall back to normal billing.
                    example: '750.000000'
                  prepaidRollover:
                    type: boolean
                    description: Whether unused prepaid balance rolls over to the next billing period
                    example: false
                  includedUnits:
                    type: object
                    nullable: true
                    additionalProperties:
                      type: number
                    description: Free unit allocations per usage type per billing period. Usage within these limits is not charged. Keys are unit types, values are quantities.
                    example:
                      api_call: 10000
                      token: 1000000
                  metadata:
                    type: object
                    nullable: true
                    additionalProperties: true
                    description: Arbitrary key-value metadata for your own tracking (e.g., Salesforce deal ID, internal notes)
                    example:
                      salesforceId: OPP-12345
                      tier: enterprise
                  createdAt:
                    type: string
                    format: date-time
                    description: When the contract was created
                    example: '2024-01-15T10:30:00.000Z'
                  updatedAt:
                    type: string
                    format: date-time
                    description: When the contract was last updated
                    example: '2024-01-15T10:30:00.000Z'
                  priceOverrides:
                    type: array
                    description: Custom per-unit-type pricing that overrides default pricing plans for this customer
                    items:
                      type: object
                      description: A per-unit-type price override within a contract. Overrides the default pricing plan rate for this customer.
                      properties:
                        id:
                          type: string
                          description: Unique identifier for the price override
                          example: cpo_abc123def456
                        unitType:
                          type: string
                          description: The usage type this override applies to (must match a pricing plan `unitType`)
                          example: api_call
                        unitPriceUsd:
                          type: string
                          description: Custom price per unit in USD (string for decimal precision, up to 6 decimal places)
                          example: '0.000800'
                      required:
                      - id
                      - unitType
                      - unitPriceUsd
                required:
                - id
                - businessId
                - customerId
                - name
                - status
                - startDate
                - prepaidRollover
                - createdAt
                - updatedAt
                - priceOverrides
        '400':
          description: Validation error (missing required fields, invalid format)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                    description: Validation error details
                required:
                - error
                - code
                description: Validation error (missing required fields, invalid format)
        '401':
          description: Unauthorized — missing or invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                    description: Validation error details
                required:
                - error
                - code
                description: Unauthorized — missing or invalid API key
        '403':
          description: Forbidden — API key does not have ADMIN role
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                    description: Validation error details
                required:
                - error
                - code
                description: Forbidden — API key does not have ADMIN role
        '404':
          description: Customer not found — the `customerId` does not exist or does not belong to your business
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                  code:
                    type: string
                    description: Error code
                  details:
                    type: array
                    items:
                      type: object
                      properties:
                        path:
                          type: string
                        message:
                          type: string
                    description: Validation error details
                required:
                - error
                - code
                description: Customer not found — the `customerId` does not exist or does not belong to your business
    get:
      operationId: listContracts
      summary: List contracts
      tags:
      - Contracts
      description: 'List all contracts for your business, optionally filtered by customer or status. Results are ordered by creation date (newest first).


        > **Requires a secret key (`sk_*`) with the `ADMIN` role.**'
      parameters:
      - schema:
          type: string
          example: cus_abc123def456
        in: query
        name: customerId
        required: false
        description: Filter contracts by customer ID
      - schema:
          type: string
          enum:
          - ACTIVE
          - PAUSED
          - EXPIRED
          - CANCELLED
          example: ACTIVE
        in: query
        name: status
        required: false
        description: Filter contracts by status
      responses:
        '200':
          description: List of contracts
          content:
            application/json:
              schema:
                type: object
                description: List of contracts
                properties:
                  contracts:
                    type: array
                    items:
                      type: object
                      description: A per-customer commercial agreement. Contracts allow custom pricing, prepaid commits, spend caps, volume discounts, and included unit allocations that override default pricing plans for a specific customer.
                      properties:
                        id:
                          type: string
                          description: Unique identifier for the contract
                          example: ctr_abc123def456
                        businessId:
                          type: string
                          description: Business that owns this contract
                          example: biz_789xyz
                        customerId:
                          type: string
                          description: Customer this contract applies to (must be created via POST /customers first)
                          example: cus_abc123def456
                        name:
                          type: string
                          description: Human-readable name for the contract
                          example: Acme Corp Enterprise Agreement
                        status:
                          type: string
                          enum:
                          - ACTIVE
                          - PAUSED
                          - EXPIRED
                          - CANCELLED
                          description: 'Current contract status. Only ACTIVE contracts affect billing. Transitions: ACTIVE → PAUSED, EXPIRED, or CANCELLED.'
                          example: ACTIVE
                        startDate:
                          type: string
                          format: date-time
                          description: When the contract takes effect (ISO 8601)
                          example: '2024-01-01T00:00:00.000Z'
                        endDate:
                          type: string
                          format: date-time
                          nullable: true
                          description: When the contract expires (ISO 8601). Null means the contract is perpetual.
                          example: '2024-12-31T23:59:59.000Z'
                        minimumUsdc:
                          type: string
                          nullable: true
                          description: Minimum committed spend in USDC for the contract period. If the customer spends less, they are still billed for the minimum.
                          example: '500.000000'
                        maximumUsdc:
                          type: string
                          nullable: true
                          description: Maximum spend cap in USDC for the contract period. Charges that would exceed this cap are blocked.
                          example: '10000.000000'
                        discountPct:
                          type: string
                          nullable: true
                          description: Percentage discount applied to all charges under this contract (0-100, up to 2 decimal places)
                          example: '15.00'
                        prepaidAmountUsdc:
                          type: string
                          nullable: true
                          description: Total prepaid commit amount in USDC. This is the initial balance loaded into the contract.
                          example: '1000.000000'
                        prepaidBalanceUsdc:
                          type: string
                          nullable: true
                          description: Remaining prepaid balance in USDC. Decreases as charges are applied. When depleted, charges fall back to normal billing.
                          example: '750.000000'
                        prepaidRollover:
                          type: boolean
                          description: Whether unused prepaid balance rolls over to the next billing period
                          example: false
                        includedUnits:
                          type: object
                          nullable: true
                          additionalProperties:
                            type: number
                          description: Free unit allocations per usage type per billing period. Usage within these limits is not charged. Keys are unit types, values are quantities.
                          example:
                            api_call: 10000
                            token: 1000000
                        metadata:
                          type: object
                          nullable: true
                          additionalProperties: true
                          description: Arbitrary key-value metadata for your own tracking (e.g., Salesforce deal ID, internal notes)
                          example:
                            salesforceId: OPP-12345
                            tier: enterprise
                        createdAt:
                          type: string
                          format: date-time
                          description: When the contract was created
                          example: '2024-01-15T10:30:00.000Z'
                        updatedAt:
                          type: string
                          format: date-time
                          description: When the contract was last updated
                          example: '2024-01-15T10:30:00.000Z'
                        priceOverrides:
                          type: array
                          description: Custom per-unit-type pricing that overrides default pricing plans for this customer
                          items:
                            type: object
                            description: A per-unit-type price override within a contract. Overrides the default pricing plan rate for this customer.
                            properties:
                              id:
                                type: string
                                description: Unique identifier for the price override
                                example: cpo_abc123def456
                              unitType:
                                type: string
                                description: The usage type this override applies to (must match a pricing plan `unitType`)
                                example: api_call
                              unitPriceUsd:
                      

# --- truncated at 32 KB (78 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/drippay/refs/heads/main/openapi/drippay-contracts-api-openapi.yml