Cross-Provider Workflow

Stripe Invoice to Slack Notification

Version 1.0.0

Create a Stripe invoice for a customer, then notify finance in Slack.

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

Providers Orchestrated

stripe slack

Workflows

invoice-and-notify
Create a Stripe invoice and post a Slack notification.
Creates a draft invoice for a customer in Stripe, then posts a notification to a finance Slack channel via chat.postMessage.
2 steps inputs: channel, customerId outputs: invoiceId, messageTs
1
create-invoice
$sourceDescriptions.stripeInvoiceApi.postInvoices
Create a draft invoice for the customer.
2
notify-finance
$sourceDescriptions.slackChatApi.postChatPostmessage
Notify the finance team that a new invoice was created.

Source API Descriptions

Arazzo Workflow Specification

geo-stripe-invoice-slack-notify.yml Raw ↑
arazzo: 1.0.1
info:
  title: Stripe Invoice to Slack Notification
  summary: Create a Stripe invoice for a customer, then notify finance in Slack.
  description: >-
    A high-value cross-domain finance workflow that creates a draft invoice for a
    customer in Stripe and notifies a finance team in a Slack channel. Demonstrates
    pairing a payments provider with a team messaging provider to keep finance
    operations informed of new invoices.
  version: 1.0.0
sourceDescriptions:
  - name: stripeInvoiceApi
    url: https://raw.githubusercontent.com/api-evangelist/stripe/refs/heads/main/openapi/stripe-invoice-api-openapi.yml
    type: openapi
  - name: slackChatApi
    url: https://raw.githubusercontent.com/api-evangelist/slack/refs/heads/main/openapi/slack-chat-openapi.yml
    type: openapi
workflows:
  - workflowId: invoice-and-notify
    summary: Create a Stripe invoice and post a Slack notification.
    description: >-
      Creates a draft invoice for a customer in Stripe, then posts a notification to a
      finance Slack channel via chat.postMessage.
    inputs:
      type: object
      properties:
        customerId:
          type: string
        channel:
          type: string
    steps:
      - stepId: create-invoice
        description: Create a draft invoice for the customer.
        operationId: $sourceDescriptions.stripeInvoiceApi.postInvoices
        requestBody:
          contentType: application/x-www-form-urlencoded
          payload:
            customer: $inputs.customerId
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          invoiceId: $response.body#/id
          invoiceStatus: $response.body#/status
      - stepId: notify-finance
        description: Notify the finance team that a new invoice was created.
        operationId: $sourceDescriptions.slackChatApi.postChatPostmessage
        requestBody:
          contentType: application/x-www-form-urlencoded
          payload:
            channel: $inputs.channel
            text: A new draft invoice was created in Stripe.
        successCriteria:
          - condition: $statusCode == 200
          - condition: $response.body#/ok == true
        outputs:
          messageTs: $response.body#/ts
    outputs:
      invoiceId: $steps.create-invoice.outputs.invoiceId
      messageTs: $steps.notify-finance.outputs.messageTs