← Voltar para Flows

Subscription Cancelation Flow

Name
Subscription Cancelation Flow
Description
Usuário cancela assinatura premium e recebe confirmação.
Validated
Not Validated

Steps

  1. 1
    cancelSubscription(Payment Service)
    Input Mapping
    userId: "$trigger.userId"
    idempotencyKey: "$trigger.idempotencyKey"
    subscriptionId: "$trigger.subscriptionId"
    authStripeSecretKeyRef: "$trigger.authStripeSecretKeyRef"
    Output Handlers
    Output KeyNext StepBranch To FlowMerge To Context
    successStep 2: sendNotificationYes
  2. 2
    sendNotification(Notification Service)
    Input Mapping
    data:
    status: "$step1.status"
    effectiveDate: "$step1.effectiveDate"
    subscriptionId: "$trigger.subscriptionId"
    channel: "email"
    priority: "normal"
    template: "subscription_canceled"
    recipientId: "$trigger.userId"
    correlationId: "$trigger.correlationId"
    idempotencyKey: "sub_cancel:$trigger.userId:$trigger.eventId"
    Output Handlers
    Output KeyNext StepBranch To FlowMerge To Context
    successYes