@shieldz/sdk
    Preparing search index...

    Interface Invoice

    interface Invoice {
        amount_usd_cents: number;
        client_reference_id: string | null;
        created_at: number;
        customer_email: string | null;
        expires_at: number;
        id: string;
        idempotent_replay?: boolean;
        line_items: LineItem[] | null;
        memo: string | null;
        metadata: unknown;
        mode: Mode;
        object: "invoice";
        paid_after_expiry: boolean;
        paid_at: number | null;
        paid_on:
            | {
                asset_symbol: string
                | null;
                chain_id: string;
                tx_hash: string | null;
            }
            | null;
        pay_url: string;
        payment_address: string
        | null;
        payment_amount_atomic: string | null;
        payment_chain_id: string | null;
        payment_link: string | null;
        payment_targets: PaymentTarget[];
        settlement: Settlement;
        shipping: ShippingAddress | null;
        status: InvoiceStatus;
        submitted_tx_hash: string | null;
        zcash:
            | {
                amount_zec_atomic: string;
                u1_address: string;
                zec_usd_rate_at_creation: number
                | null;
            }
            | null;
    }
    Index
    amount_usd_cents: number
    client_reference_id: string | null

    Your own order or cart id.

    created_at: number

    Unix milliseconds.

    customer_email: string | null
    expires_at: number

    Unix milliseconds.

    id: string

    Unguessable public id; also the path segment in pay_url.

    idempotent_replay?: boolean

    Present and true when an idempotency_key replay returned the original invoice.

    line_items: LineItem[] | null

    What was bought, priced by Shieldz from your catalog (null for a plain amount).

    memo: string | null
    metadata: unknown
    mode: Mode
    object: "invoice"
    paid_after_expiry: boolean
    paid_at: number | null

    Unix milliseconds; null until paid.

    paid_on:
        | {
            asset_symbol: string
            | null;
            chain_id: string;
            tx_hash: string | null;
        }
        | null
    pay_url: string

    The hosted checkout URL to send your customer to.

    payment_address: string | null
    payment_amount_atomic: string | null
    payment_chain_id: string | null

    Legacy single-chain fields (kept for backward compatibility).

    payment_link: string | null

    The payment link the invoice came from (plink_…).

    payment_targets: PaymentTarget[]
    settlement: Settlement
    shipping: ShippingAddress | null

    Shipping address from the payment link page. Only returned to your API key.

    submitted_tx_hash: string | null
    zcash:
        | {
            amount_zec_atomic: string;
            u1_address: string;
            zec_usd_rate_at_creation: number
            | null;
        }
        | null