> ## Documentation Index
> Fetch the complete documentation index at: https://developer.zamp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Embedded Calculations

> Embed Zamp's tax engine directly in your platform.

# Overview

Connect Zamp's Tax Engine into your platform, and automatically calculate tax during transaction creation.

## Endpoints Used

```text theme={null}
POST /calculations
```

## Recommended Workflows

Embedding Zamp in your platform is a powerful way to ensure the businesses using your platform, or your customers are receiving accurate sales tax calculations.

Offer Zamp natively in your own way, but below are a couple workflows for how calculations can be embedded directly in your platform:

### ECommerce Web Store Tax Estimation

<Steps>
  <Step title="Customer Builds Their Cart">
    An order is built by adding items to their cart and providing their shipping information. Taxability is controlled via already mapped Zamp Product Tax Codes, and will be referenced when making a calculation.
  </Step>

  <Step title="Request for Calculation is Made to Zamp">
    Once the customer has populated a shipping destination, your integration makes a `POST /calculations` call to return a Zamp tax calculation. 
  </Step>

  <Step title="Customer Sees Their Tax Due ">
    The tax due provided by Zamp should be displayed to the customer before they enter payment.

    Zamp provides a jurisdiction-level breakdown of tax due in the response. It is up to you the level of granularity you provide customers. 
  </Step>

  <Step title="Customer Checks Out and Pays">
    Once the customer is comfortable with their order and they complete their order.
  </Step>
</Steps>

### Sales Invoice Tax Estimation

<Steps>
  <Step title="User Generates a Sales Invoice in the Platform">
    As they've likely done hundreds or thousands of times before, a user would generate an invoice with line items, shipping information, exemption information if applicable, etc.
  </Step>

  <Step title="User Calculates Tax via a Button">
    Before saving the invoice, the user should be able to check what tax liability would be for the transaction. A common approach is the existence of a button that can be clicked that would send information to Zamp via a `POST /calculations` call to return a  tax calculation. 
  </Step>

  <Step title="User Reviews Tax Liability">
    Since Zamp returns all jurisdiction-level information for tax due, you can provide a full breakdown to the user, all before they save the invoice.
  </Step>
</Steps>
