Stripe · Arazzo Workflow

Stripe Calculate and Settle Tax

Version 1.0.0

Calculate tax for a set of line items, then record a Tax transaction from that calculation.

1 workflow 1 source API 1 provider
View Spec View on GitHub CommerceFinancial-ServicesFintechPaymentsT1ArazzoWorkflows

Provider

stripe

Workflows

calculate-and-settle-tax
Calculate tax for line items, then record a Tax transaction from the calculation.
Creates a Tax Calculation for the supplied currency and line items, then creates a Tax Transaction from that calculation using a supplied reference so the tax is recorded for reporting and filing.
2 steps inputs: currency, lineItems, reference outputs: calculationId, status, transactionId
1
createTaxCalculation
Calculate tax for the supplied currency and line items.
2
createTaxTransaction
Record a Tax Transaction from the calculation so the tax is captured for reporting and filing.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Stripe Calculate and Settle Tax
  summary: Calculate tax for a set of line items, then record a Tax transaction from that calculation.
  description: >-
    The canonical Stripe Tax settlement pattern. The workflow first calculates
    tax for a set of line items in a given currency, producing a Tax Calculation
    object, then records a Tax Transaction from that calculation so the amounts
    are captured for reporting and filing. Each step spells out its form-encoded
    request inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-220.20
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-220.20
      capability_name: Indirect Tax Management
      spec: stripe-tax-api-openapi.yml
      confidence: 0.7
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: taxApi
  url: ../openapi/stripe-tax-api-openapi.yml
  type: openapi
workflows:
- workflowId: calculate-and-settle-tax
  summary: Calculate tax for line items, then record a Tax transaction from the calculation.
  description: >-
    Creates a Tax Calculation for the supplied currency and line items, then
    creates a Tax Transaction from that calculation using a supplied reference
    so the tax is recorded for reporting and filing.
  inputs:
    type: object
    required:
    - currency
    - lineItems
    - reference
    properties:
      currency:
        type: string
        description: Three-letter ISO currency code for the calculation (e.g. usd).
      lineItems:
        type: array
        description: >-
          Line items to calculate tax for. Each entry accepts amount (in the
          smallest currency unit), reference, quantity, tax_code, and
          tax_behavior. Example: a single item with amount 1000 and reference
          "L1".
        items:
          type: object
      reference:
        type: string
        description: >-
          Unique reference for the resulting Tax Transaction, typically your
          order or invoice id (e.g. myOrder_123).
  steps:
  - stepId: createTaxCalculation
    description: Calculate tax for the supplied currency and line items.
    operationId: PostTaxCalculations
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        currency: $inputs.currency
        line_items: $inputs.lineItems
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      calculationId: $response.body#/id
      amountTotal: $response.body#/amount_total
      taxAmountExclusive: $response.body#/tax_amount_exclusive
  - stepId: createTaxTransaction
    description: >-
      Record a Tax Transaction from the calculation so the tax is captured for
      reporting and filing.
    operationId: PostTaxTransactionsCreateFromCalculation
    requestBody:
      contentType: application/x-www-form-urlencoded
      payload:
        calculation: $steps.createTaxCalculation.outputs.calculationId
        reference: $inputs.reference
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      transactionId: $response.body#/id
      status: $response.body#/status
  outputs:
    calculationId: $steps.createTaxCalculation.outputs.calculationId
    transactionId: $steps.createTaxTransaction.outputs.transactionId
    status: $steps.createTaxTransaction.outputs.status

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/stripe-calculate-and-settle-tax-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.