@cfxlabsinc/b2b-services
    Preparing search index...

    Sends SMS on behalf of a customer to a third-party recipient — e.g. the escrow "you've been sent money, tap to claim" text or a "X is requesting $Y from you" payment-request text, branded with the customer's own name ("MoveMoney: JANE DOE sent you money").

    This is deliberately distinct from the other senders in this package (EmailNotificationSender, EventPublisher), which notify the b2b customer themselves about their own account activity (identity/deposit/withdraw status, webhook events). Here the customer is the author of the message, not the audience: the recipient is an end user the customer is transacting with, who may have no CFX account at all. See the package README for the "on behalf of" vs "to the customer" distinction.

    Routes by destination: US numbers → Vibes, international → Twilio.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Send an SMS notification to each recipient.

      Routing: US numbers → Vibes; non-US / unparseable → Twilio. Recipients are sent sequentially; a provider error propagates immediately.

      Parameters

      • __namedParameters: {
            idempotencyKey: string;
            notification: SmsNotification;
            recipients: { phoneNumber: string }[];
        }
        • idempotencyKey: string

          Stable per-send id; passed to Vibes as submitterMessageId.

        • notification: SmsNotification
        • recipients: { phoneNumber: string }[]

          E.164 phone numbers.

      Returns Promise<void>