@cfxlabsinc/b2b-services
    Preparing search index...
    initiateLedgerAccountAchDebitWithdrawalWorkflow: (
        __namedParameters: { withdrawalId: string },
    ) => Promise<"FAILED" | "RETURNED" | "SUCCESS"> = initializeLedgerAccountWithdrawal

    Initiates an ACH direct debit withdrawal from a source ledger account.

    Debits funds from user's wallet into a pending ledger account, optionally sweeps via Victor bank transfer, and creates a redemption.

    Type Declaration

      • (
            __namedParameters: { withdrawalId: string },
        ): Promise<"FAILED" | "RETURNED" | "SUCCESS">
      • Common initialization prefix for ledger-account-backed withdrawals across all rails. Validates the payment instrument, debits the source ledger account, sweeps to the Victor virtual account when applicable (no-op on rails that don't sweep), and creates the per-withdrawal redemption. Returns "FAILED" for validation/debit failures, "RETURNED" if the sweep triggered a refund, or "SUCCESS" otherwise. Rail workflows call this before kicking off any rail-specific provider activity.

        Parameters

        • __namedParameters: { withdrawalId: string }

        Returns Promise<"FAILED" | "RETURNED" | "SUCCESS">