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

# Post a buyer report

> Record a buyer disposition (`success` or `rejected`) for a call delivered from a campaign, so lead-buying outcomes land in your reporting and the audit trail.



## OpenAPI

````yaml /api-reference/openapi.json post /dni/campaigns/{campaign_code}/buyer-report
openapi: 3.1.0
info:
  title: Compensable API
  version: 0.1.0
  description: >-
    Customer-facing endpoints of the Compensable control plane. Authenticate
    with a tenant API key: `Authorization: Bearer cmp_live_…`.
servers:
  - url: https://api.compensable.live
    description: Production
security: []
paths:
  /dni/campaigns/{campaign_code}/buyer-report:
    post:
      tags:
        - Number tracking (DNI)
      summary: Post a buyer report
      description: >-
        Record a buyer disposition (`success` or `rejected`) for a call
        delivered from a campaign, so lead-buying outcomes land in your
        reporting and the audit trail.
      operationId: post_buyer_report_dni_campaigns__campaign_code__buyer_report_post
      parameters:
        - name: campaign_code
          in: path
          required: true
          schema:
            type: string
            title: Campaign Code
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BuyerReportRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuyerReportResponse'
        '401':
          description: Missing or invalid API key (`invalid_api_key`).
        '403':
          description: >-
            Key lacks the required scope (`insufficient_scope`), or API access
            is not enabled for the organization (`tracking_disabled`).
        '404':
          description: Campaign or call not found in your organization.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyBearer: []
components:
  schemas:
    BuyerReportRequest:
      properties:
        call_id:
          type: string
          maxLength: 128
          minLength: 1
          title: Call Id
        disposition:
          type: string
          enum:
            - success
            - rejected
          title: Disposition
        report_id:
          anyOf:
            - type: string
              maxLength: 64
              minLength: 1
            - type: 'null'
          title: Report Id
        notes:
          anyOf:
            - type: string
              maxLength: 2048
            - type: 'null'
          title: Notes
      additionalProperties: false
      type: object
      required:
        - call_id
        - disposition
      title: BuyerReportRequest
    BuyerReportResponse:
      properties:
        event_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Event Id
        created:
          type: boolean
          title: Created
      type: object
      required:
        - event_id
        - created
      title: BuyerReportResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyBearer:
      type: http
      scheme: bearer
      bearerFormat: cmp_live_…
      description: >-
        Tenant API key, sent as `Authorization: Bearer cmp_live_…`. Keys are
        org-scoped and carry explicit scopes (`enroll`, `execute`). Any missing,
        malformed, unknown, revoked, or expired credential returns a generic 401
        `invalid_api_key`.

````