absolutepay (Node SDK) - v0.7.1
    Preparing search index...

    Recurring billing: subscriptions (+ the Subscriptions.plans sub-resource for plan templates).

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    plans: Plans

    Recurring billing plan templates (plans.list / plans.create).

    Methods

    • Cancel a subscription so no further cycles are charged (scope: subscriptions:write).

      Parameters

      • merchantSubNo: string

        The subscription reference (merchantSubNo).

      Returns Promise<Record<string, unknown>>

      The updated subscription record.

      On failure (e.g. 404 unknown subscription, 409 already canceled).

    • Fetch the per-cycle deduction (charge) history for a subscription (scope: subscriptions:read).

      Parameters

      • merchantSubNo: string

        The subscription reference (merchantSubNo).

      Returns Promise<Page<Record<string, unknown>>>

      The raw { items, nextCursor } (nextCursor always null) of deduction records.

      On failure (e.g. 404 unknown subscription).

    • List subscriptions (scope: subscriptions:read). Keyset-paginated.

      Parameters

      • query: PageQuery & { status?: string } = {}

        Filters + pagination; pass a prior page's nextCursor as before.

        • Optionalstatus?: string

          Optional status filter (e.g. "active", "canceled").

      Returns Promise<Page<Record<string, unknown>>>

      The raw { items, nextCursor } page of subscription records.

      On failure (e.g. 401/403 missing subscriptions:read).