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

    Interface PeriodLineExperimental

    One period of one subscription on one account: an owed obligation with its status, or (with includeNotOwed) a period that is not owed, with why. Keys are wire-style so exports match across SDKs.

    Reporting subscriptions (AdCP 3.3).

    interface PeriodLine {
        account_id: string;
        subscription_id: string;
        subscription_version: number;
        offering_id: string;
        report_definition_id: string;
        media_buy_ids: string[];
        period: { start: string; end: string; timezone: string };
        status: PeriodStatus;
        reason:
            | "owed"
            | "not_in_scope"
            | "excluded:excluded_by_buyer"
            | "not_authorized"
            | "before_coverage_start"
            | "subscription_inactive"
            | "excluded:offering_unsupported"
            | "outside_flight"
            | "after_stop"
            | "before_confirmation"
            | "before_package_added"
            | "excluded:capacity"
            | "excluded:overridden"
            | "excluded:action_required"
            | "gap:unauthorized"
            | "cutover_stretch"
            | "owed_under_other_version"
            | "period_not_ended"
            | "owed:regrant_backfill"
            | "owed:withheld"
            | "buy_not_visible";
        responsible_party: "none"
        | "buyer"
        | "seller";
        message: string;
        stub?: true;
        expected_at?: string;
        reporting_obligation_id?: string;
        reporting_revision_id?: string;
        finality?: "snapshot" | "official";
        receipt?: { status: "owed_by_buyer" | "rejected_by_buyer" };
    }
    Index
    account_id: string
    subscription_id: string
    subscription_version: number
    offering_id: string
    report_definition_id: string
    media_buy_ids: string[]

    Byte-sorted, the obligation's frozen media_buy_ids.

    period: { start: string; end: string; timezone: string }
    status: PeriodStatus
    reason:
        | "owed"
        | "not_in_scope"
        | "excluded:excluded_by_buyer"
        | "not_authorized"
        | "before_coverage_start"
        | "subscription_inactive"
        | "excluded:offering_unsupported"
        | "outside_flight"
        | "after_stop"
        | "before_confirmation"
        | "before_package_added"
        | "excluded:capacity"
        | "excluded:overridden"
        | "excluded:action_required"
        | "gap:unauthorized"
        | "cutover_stretch"
        | "owed_under_other_version"
        | "period_not_ended"
        | "owed:regrant_backfill"
        | "owed:withheld"
        | "buy_not_visible"

    The coverage reason code (reason-codes.json).

    responsible_party: "none" | "buyer" | "seller"

    Who has to act: the seller for late and missing_obligation, the buyer for withheld.

    message: string

    One sentence for a person; the same template text explain uses.

    stub?: true

    A billing cutover stub (adcp#8617).

    expected_at?: string

    The seller's expected_at for the obligation, when it has one.

    reporting_obligation_id?: string
    reporting_revision_id?: string

    The current revision of the required finality, when delivered.

    finality?: "snapshot" | "official"
    receipt?: { status: "owed_by_buyer" | "rejected_by_buyer" }

    For a delivered consumer_receipt (billing) period without an accepted receipt: owed_by_buyer while the buyer has stated nothing (responsible_party: 'buyer'; submit it with the receipts policy or submitReceipts), or rejected_by_buyer once the buyer rejected the revision (responsible_party: 'seller', which has to correct and re-deliver).