Create Tax Regions Workflow (workflows/create-tax-regions.ts)

medusa · packages/core/core-flows/src/tax/workflows/create-tax-regions.ts · typescript · MIT
database, integration, automation, payments, lang:typescript, tag:medusa

Orchestrates the creation of one or more tax regions within the Medusa e-commerce engine. Use when building custom administrative flows for tax management.

// Source: https://github.com/medusajs/medusa | License: MIT | Copyright 2021 Medusajs
// Provided via justclaw.it.com; keep this notice with the code.
import type {
  CreateTaxRegionDTO,
  TaxRegionDTO,
} from "@medusajs/framework/types"
import {
  WorkflowData,
  WorkflowResponse,
  createWorkflow,
} from "@medusajs/framework/workflows-sdk"
import { createTaxRegionsStep } from "../steps"

/**
 * The tax regions to create.
 */
export type CreateTaxRegionsWorkflowInput = CreateTaxRegionDTO[]

/**
 * The created tax regions.
 */
export type CreateTaxRegionsWorkflowOutput = TaxRegionDTO[]

export const createTaxRegionsWorkflowId = "create-tax-regions"
/**
 * This workflow creates one or more tax regions. It's used by the
 * [Create Tax Region Admin API Route](https://docs.medusajs.com/api/ad

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key