@adcp/sdk API Reference - v17.0.0-rc.0
    Preparing search index...

    Interface ReportPlanAdjustmentRequest

    Two-party append-only adjustment lifecycle. The authenticated seller reports commercial evidence; the authenticated plan owner later accepts or disputes that exact record. Reporting alone never changes net cost or headroom.

    interface ReportPlanAdjustmentRequest {
        adcp_version?: string;
        adcp_major_version?: number;
        action: "review" | "report";
        plan_id: string;
        outcome_id?: string;
        adjustment_id?: string;
        decision?: "accept" | "dispute";
        seller_reference?: string;
        seller_adjustment_id?: string;
        adjustment_type?: "refund" | "credit" | "makegood" | "decommitment";
        amount?: { amount: number; currency: string };
        reason?: string;
        effective_at?: string;
        evidence?: {
            evidence_id: string;
            evidence_type:
                | "credit_note"
                | "decommitment_agreement"
                | "refund_settlement"
                | "makegood_agreement";
            digest: string;
            issued_at: string;
        };
        idempotency_key: string;
        context?: ContextObject;
        ext?: ExtensionObject;
    }
    Index
    adcp_version?: string

    Release-precision AdCP version (VERSION.RELEASE, e.g. "3.0", "3.1", "3.1-beta"). On a request: the buyer's release pin — the seller validates against its supported_versions and returns VERSION_UNSUPPORTED on cross-major mismatch, or downshifts to the highest supported release within the same major. On a response: the release the seller actually served — clients SHOULD validate the response against that release's schema, not against their pin. Patches are not negotiated; surface them as build_version on capabilities for operational visibility. When omitted, falls back to adcp_major_version (deprecated) or server default. Buyers SHOULD emit both adcp_version and adcp_major_version through 3.x to remain compatible with sellers that only read the legacy field. NORMALIZATION: SDKs that read full-semver values from bundle metadata (e.g. ComplianceIndex.published_version = "3.1.0-beta.1") MUST normalize to release-precision ("3.1-beta.1") before emitting on the wire — meta-field values are NOT valid wire values.

    adcp_major_version?: number

    DEPRECATED in favor of adcp_version (release-precision string). Servers MUST continue to honor this field through 3.x. Removed in 4.0. Original semantics: the AdCP major version the buyer's payloads conform to. Sellers validate against their supported major_versions and return VERSION_UNSUPPORTED if unsupported. When omitted, the seller assumes its highest supported version.

    action: "review" | "report"

    report is seller-authenticated and creates a non-authoritative record; review is plan-owner-authenticated and accepts or disputes it.

    plan_id: string

    Plan containing the source outcome.

    1

    outcome_id?: string

    Completed outcome whose authoritative commitment is being adjusted.

    1

    adjustment_id?: string

    Adjustment to accept or dispute. Required for review.

    decision?: "accept" | "dispute"

    Buyer review decision. Acceptance is blocked while delivery evidence for the governed action is disputed in an open governance period; a historical closed_unresolved period is audit evidence, not a billing determination.

    seller_reference?: string

    Seller resource identifier. Must exactly match the reference retained on the source outcome.

    1

    255

    seller_adjustment_id?: string

    Stable identifier of the adjustment in the authenticated seller's system.

    1

    255

    adjustment_type?: "refund" | "credit" | "makegood" | "decommitment"

    Commercial meaning. Verified decommitments restore headroom in every mode; verified refunds and credits restore it only in verified_net_cost mode; makegoods never restore cash headroom.

    amount?: { amount: number; currency: string }

    Positive adjustment amount in the plan currency.

    Type Declaration

    • amount: number

      Finite positive amount. Cumulative adjustments for an outcome cannot exceed its authoritative commitment.

    • currency: string

      Three-letter uppercase currency code matching the plan currency.

      ^[A-Z]{3}$

    reason?: string

    Human-readable reason retained in the audit trail.

    1

    1000

    effective_at?: string

    When the seller's adjustment became effective.

    date-time

    evidence?: {
        evidence_id: string;
        evidence_type:
            | "credit_note"
            | "decommitment_agreement"
            | "refund_settlement"
            | "makegood_agreement";
        digest: string;
        issued_at: string;
    }

    Integrity-bound commercial source record supplied by the seller. Its evidence_type must correspond to adjustment_type.

    Type Declaration

    • evidence_id: string

      Immutable identifier in the authenticated seller's namespace. Reuse with different adjustment evidence is a conflict.

      1

      255

    • evidence_type:
          | "credit_note"
          | "decommitment_agreement"
          | "refund_settlement"
          | "makegood_agreement"
    • digest: string

      ^sha256:[a-f0-9]{64}$

    • issued_at: string

      date-time

    idempotency_key: string

    Caller-generated retry key. Exact replays return the original report or review; reuse with another payload is rejected.

    16

    255

    ^[A-Za-z0-9_.:-]{16,255}$

    context?: ContextObject