# Zamp

> Calculate sales tax, validate addresses and read transactions, registrations and filings in Zamp.

App · 8 actions. Web page: https://docs.lodol.com/docs/integrations/zamp

## Actions

### Calculate sales tax

Calculate tax on a transaction without recording it for filing.

**Inputs**

- Id (`id`, text, required): Id.
- Name (`name`, text): Name.
- Transacted at (`transacted_at`, date and time, required): Transacted at.
- Currency (`currency`, text): Currency.
- Tax collected (`tax_collected`, number, required): Tax collected.
- Total (`total`, number, required): Total.
- Ship from address (`ship_from_address`, object): Ship from address.
- Ship to address (`ship_to_address`, object, required): Ship to address.
- Line items (`line_items`, list, required): Line items.
- Shipping (`shipping`, number): Shipping.
- Discount (`discount`, number): Discount.
- Handling (`handling`, number): Handling.

**Outputs**

- `data` (object): The response from Zamp.

**Example output**

```json
{
  "data": {
    "id": "example",
    "taxDue": 1.0,
    "taxes": []
  }
}
```

### Get transaction

Read one transaction and its tax breakdown.

**Inputs**

- Id (`id`, text, required): Id.

**Outputs**

- `data` (object): The response from Zamp.

**Example output**

```json
{
  "data": {
    "id": "example",
    "taxDue": 1.0,
    "taxes": []
  }
}
```

### List companies

Read companies visible to the key.

**Inputs**

- Company id (`company_id`, text): Company id.

**Outputs**

- `data` (list): The response from Zamp.

**Example output**

```json
{
  "data": []
}
```

### List filings

Find tax filings by company, due date or completion status.

**Inputs**

- Company (`company_id`, text): Company id.
- State (`state`, text): State.
- Min due on (`min_due_on`, date): Min due on.
- Max due on (`max_due_on`, date): Max due on.
- Is completed (`is_completed`, true/false): Is completed.
- Cursor (`cursor`, text): Cursor.

**Outputs**

- `data` (object): The response from Zamp.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example",
    "prevCursor": "example"
  }
}
```

### List product tax codes

Find codes for classifying products for sales tax.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Zamp.

**Example output**

```json
{
  "data": []
}
```

### List registrations

Read tax registrations by company or state.

**Inputs**

- Company (`company_id`, text): Company id.
- State (`state`, text): State.

**Outputs**

- `data` (list): The response from Zamp.

**Example output**

```json
{
  "data": []
}
```

### List transactions

Read a page of transactions recorded with this key.

**Inputs**

- Limit (`limit`, number): Limit. From 1 to 100.
- Cursor (`cursor`, text): Cursor.
- Min transacted at (`min_transacted_at`, date and time): Min transacted at.
- Max transacted at (`max_transacted_at`, date and time): Max transacted at.

**Outputs**

- `data` (object): The response from Zamp.

**Example output**

```json
{
  "data": {
    "data": [],
    "nextCursor": "example"
  }
}
```

### Validate US address

Check a US address and return its normalized form and coordinates.

**Inputs**

- Line1 (`line1`, text, required): Line1.
- City (`city`, text, required): City.
- State (`state`, text, required): State.
- Zip (`zip`, text, required): Zip.
- Line2 (`line2`, text): Line2.

**Outputs**

- `data` (object): The response from Zamp.

**Example output**

```json
{
  "data": {
    "originalAddress": {
      "city": "example",
      "line1": "example",
      "state": "example",
      "zip": "example"
    },
    "validatedAddress": {}
  }
}
```
