Avalara · Arazzo Workflow

Avalara Refund a Transaction

Version 1.0.0

Look up a committed sale, then issue a refund transaction against it.

1 workflow 1 source API 1 provider
View Spec View on GitHub TaxesArazzoWorkflows

Provider

avalara

Workflows

refund-transaction
Retrieve a committed transaction and create a refund against it.
Looks up a committed transaction by code, then creates a refund transaction using the supplied refund type and date.
2 steps inputs: companyCode, refundDate, refundPercentage, refundTransactionCode, refundType, transactionCode outputs: originalStatus, refundCode, refundedTax
1
getOriginal
Retrieve the original committed transaction by code to confirm it exists before refunding it.
2
refund
Create a refund transaction based on the original committed transaction using the supplied refund type.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Avalara Refund a Transaction
  summary: Look up a committed sale, then issue a refund transaction against it.
  description: >-
    Issues a refund for a previously committed sale. The workflow retrieves the
    original transaction by code to confirm it exists and is committed, then
    creates a refund transaction against it, supporting full, partial,
    percentage, or tax-only refund types. Every step spells out its 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: avalara-transactions-api-openapi.yml
      confidence: 0.75
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: transactionsApi
  url: ../openapi/avalara-transactions-api-openapi.yml
  type: openapi
workflows:
- workflowId: refund-transaction
  summary: Retrieve a committed transaction and create a refund against it.
  description: >-
    Looks up a committed transaction by code, then creates a refund transaction
    using the supplied refund type and date.
  inputs:
    type: object
    required:
    - companyCode
    - transactionCode
    - refundTransactionCode
    - refundDate
    - refundType
    properties:
      companyCode:
        type: string
        description: Company code that owns the original transaction.
      transactionCode:
        type: string
        description: Code of the committed transaction to refund.
      refundTransactionCode:
        type: string
        description: Unique code to assign to the new refund transaction.
      refundDate:
        type: string
        description: Date of the refund (YYYY-MM-DD).
      refundType:
        type: string
        description: Type of refund (Full, Partial, Percentage, or TaxOnly).
      refundPercentage:
        type: number
        description: Percentage to refund when refundType is Percentage.
  steps:
  - stepId: getOriginal
    description: >-
      Retrieve the original committed transaction by code to confirm it exists
      before refunding it.
    operationId: getTransactionByCode
    parameters:
    - name: companyCode
      in: path
      value: $inputs.companyCode
    - name: transactionCode
      in: path
      value: $inputs.transactionCode
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      originalStatus: $response.body#/status
      originalTotalTax: $response.body#/totalTax
  - stepId: refund
    description: >-
      Create a refund transaction based on the original committed transaction
      using the supplied refund type.
    operationId: refundTransaction
    parameters:
    - name: transactionCode
      in: path
      value: $inputs.transactionCode
    requestBody:
      contentType: application/json
      payload:
        refundTransactionCode: $inputs.refundTransactionCode
        refundDate: $inputs.refundDate
        refundType: $inputs.refundType
        refundPercentage: $inputs.refundPercentage
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      refundCode: $response.body#/code
      refundStatus: $response.body#/status
      refundedTax: $response.body#/totalTax
  outputs:
    originalStatus: $steps.getOriginal.outputs.originalStatus
    refundCode: $steps.refund.outputs.refundCode
    refundedTax: $steps.refund.outputs.refundedTax

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/avalara-refund-transaction-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.