Cross-Provider Workflow

Stripe Charge to Slack Alert and SendGrid Receipt

Version 1.0.0

Charge with Stripe, alert Slack ops, then email the customer a receipt.

1 workflow 3 source APIs 3 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

stripe slack sendgrid

Workflows

charge-alert-and-receipt
Charge in Stripe, alert Slack, then email a SendGrid receipt.
Creates a charge in Stripe, posts a sale alert to a Slack channel, and emails the customer a receipt via SendGrid.
3 steps inputs: amount, channel, currency, customerEmail, source outputs: chargeId, receiptStatus, slackPosted
1
create-charge
$sourceDescriptions.stripeApi.postCharges
Create a charge for the order in Stripe.
2
slack-alert
$sourceDescriptions.slackApi.postChatPostmessage
Post a sale alert into a Slack ops channel.
3
email-receipt
$sourceDescriptions.sendgridApi.SendMail
Email the customer a receipt via SendGrid Mail Send.

Source API Descriptions

Arazzo Workflow Specification

pay-stripe-charge-to-slack-and-sendgrid-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: Stripe Charge to Slack Alert and SendGrid Receipt
  summary: Charge with Stripe, alert Slack ops, then email the customer a receipt.
  description: >-
    A three-provider workflow that captures a payment through Stripe's Charges API,
    posts an internal sale alert into a Slack channel for the operations team, and
    emails the customer a receipt through SendGrid's Mail Send API. Demonstrates
    fanning a single payment event out to both internal ops and the customer.
  version: 1.0.0
sourceDescriptions:
  - name: stripeApi
    url: https://raw.githubusercontent.com/api-evangelist/stripe/refs/heads/main/openapi/stripe-charges-api-openapi.yml
    type: openapi
  - name: slackApi
    url: https://raw.githubusercontent.com/api-evangelist/slack/refs/heads/main/openapi/slack-chat-api-openapi.yml
    type: openapi
  - name: sendgridApi
    url: https://raw.githubusercontent.com/api-evangelist/sendgrid/refs/heads/main/openapi/sendgrid-mail-send-api-openapi.yml
    type: openapi
workflows:
  - workflowId: charge-alert-and-receipt
    summary: Charge in Stripe, alert Slack, then email a SendGrid receipt.
    description: >-
      Creates a charge in Stripe, posts a sale alert to a Slack channel, and emails
      the customer a receipt via SendGrid.
    inputs:
      type: object
      properties:
        amount:
          type: integer
        currency:
          type: string
        source:
          type: string
        channel:
          type: string
        customerEmail:
          type: string
    steps:
      - stepId: create-charge
        description: Create a charge for the order in Stripe.
        operationId: $sourceDescriptions.stripeApi.postCharges
        requestBody:
          contentType: application/x-www-form-urlencoded
          payload:
            amount: $inputs.amount
            currency: $inputs.currency
            source: $inputs.source
        successCriteria:
          - condition: $statusCode == 200
          - condition: $response.body#/status == "succeeded"
        outputs:
          chargeId: $response.body#/id
          chargeStatus: $response.body#/status
      - stepId: slack-alert
        description: Post a sale alert into a Slack ops channel.
        operationId: $sourceDescriptions.slackApi.postChatPostmessage
        requestBody:
          contentType: application/json
          payload:
            channel: $inputs.channel
            text: New charge $steps.create-charge.outputs.chargeId succeeded.
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          messageTs: $response.body#/ts
          posted: $response.body#/ok
      - stepId: email-receipt
        description: Email the customer a receipt via SendGrid Mail Send.
        operationId: $sourceDescriptions.sendgridApi.SendMail
        requestBody:
          contentType: application/json
          payload:
            personalizations:
              - to:
                  - email: $inputs.customerEmail
                subject: Your receipt
            from:
              email: receipts@example.com
            content:
              - type: text/plain
                value: Thank you. Charge $steps.create-charge.outputs.chargeId confirmed.
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          emailStatus: $statusCode
    outputs:
      chargeId: $steps.create-charge.outputs.chargeId
      slackPosted: $steps.slack-alert.outputs.posted
      receiptStatus: $steps.email-receipt.outputs.emailStatus

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/pay-stripe-charge-to-slack-and-sendgrid-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.