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

# Meals tax

> Calculate sales tax and local meals taxes on food orders

> [!WARNING]
>
> **Meals tax is in beta.** It is off for every account until Numeral turns it on. To join the beta, ask your Numeral sales or onboarding representative to add your account. Until then, every `/tax/meals` endpoint returns `403 MEALS_TAX_NOT_ENABLED`.

Meals tax is for food and drink orders in the United States. One calculation returns the sales tax on each line and any local meals taxes (restaurant, meals and prepared food taxes) that apply to it, as separate amounts.

You tell Numeral three things:

1. **What the food is.** Create a [meals product](#the-meals-product-object) for each item on a menu, with a few plain facts about it.
2. **Who the merchant is.** Save a [merchant profile](#the-merchant-profile-object) and choose whether that merchant [collects meals tax](#collecting-meals-tax).
3. **How the order is handed over.** Send a [meals calculation](#create-a-meals-calculation) with the fulfillment method and the address.

Meals tax needs API version `2026-11-01` or later. Send `X-API-Version` on every request.

```text Where meals tax fits theme={null}
Set up (once)
├─ POST /tax/meals/products           → a meals product per menu item
└─ POST /tax/meals/merchant_profile   → the merchant's profile, collect_meals_tax

Each order
├─ POST /tax/meals/calculations       → sales tax + meals tax per line
├─ POST /tax/meals/transactions       → record the sale
└─ POST /tax/refunds                  → refund it, in full or in part
```

Endpoints
[Create a meals productPOST/tax/meals/products](#create-a-meals-product)
[Update a meals productPOST/tax/meals/products/:id](#update-a-meals-product)
[Retrieve a meals productGET/tax/meals/products/:id](#retrieve-a-meals-product)
[Delete a meals productDELETE/tax/meals/products/:id](#delete-a-meals-product)
[Save a merchant profilePOST/tax/meals/merchant\_profile](#save-a-merchant-profile)
[Retrieve a merchant profileGET/tax/meals/merchant\_profile](#retrieve-a-merchant-profile)
[Delete a merchant profileDELETE/tax/meals/merchant\_profile](#delete-a-merchant-profile)
[Create a meals calculationPOST/tax/meals/calculations](#create-a-meals-calculation)
[Create a meals transactionPOST/tax/meals/transactions](#create-a-meals-transaction)

## Collecting meals tax

Each merchant chooses whether Numeral calculates meals tax for it. The choice is `collect_meals_tax` on the [merchant profile](#the-merchant-profile-object).

> [!WARNING]
>
> `collect_meals_tax` is `false` by default. No meals tax is calculated for a merchant until you set it to `true`.

| `collect_meals_tax` | Sales tax | Meals tax |
| - | - | - |
| `false` (default) | Calculated | Not calculated. `meals_tax_amount` is `0`. |
| `true` | Calculated | Calculated wherever Numeral supports it. |

Turning it off never turns off sales tax.

**It is set per merchant and, if you want, per location.** A profile belongs to a merchant, or to your own account when you send no `merchant_id`. Add `reference_location_id` to keep a separate profile, with its own `collect_meals_tax`, for one of the merchant's locations.

**How a calculation picks the profile.** It uses the first one that exists:

1. The merchant's profile for the order's `reference_location_id`.
2. The merchant's default profile (saved with no `reference_location_id`).
3. Your account's default profile (saved with no `merchant_id`).
4. Numeral's default profile, which does not collect meals tax. The response then carries a `MERCHANT_PROFILE_DEFAULTED` [advisory](#advisories).

A merchant with no profile of its own follows your account's default profile, including its `collect_meals_tax`.

**Things to know**

* On an update, leaving `collect_meals_tax` out keeps the stored value. It is never reset by omission.
* A `profile` sent inline on a calculation (`fulfillment.location.profile`) can't turn collection on or off. Only a saved profile can.
* Deleting a profile sends calculations to the next profile in the list above.
* Test and live profiles are separate. Set `collect_meals_tax` in each mode.
* You can also change it by hand on the [Merchants section of the dashboard](#meals-tax-in-the-dashboard).

```bash Turn on collection for a merchant theme={null}
curl https://api.numeralhq.com/tax/meals/merchant_profile \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Version: 2026-11-01' \
  -d '{
    "merchant_id": "my-merchant-123",
    "collect_meals_tax": true
  }'
```

```bash Turn it off for one location theme={null}
curl https://api.numeralhq.com/tax/meals/merchant_profile \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Version: 2026-11-01' \
  -d '{
    "merchant_id": "my-merchant-123",
    "reference_location_id": "airport-kiosk",
    "collect_meals_tax": false
  }'
```

## Meals tax in the dashboard

Everything you set up through the API can also be set up by hand. Once your account is in the beta, the [Numeral developer dashboard](https://dashboard.numeralhq.com/developers) shows a **Meals tax** tab with two sections.

| Section | What you can do |
| - | - |
| **Products** | See every meals product, create one, edit its food facts, duplicate it, or delete it. Each fact is listed with what it means. |
| **Merchants** | See whether each merchant collects meals tax and turn it on or off. Edit the merchant's profile, and add a profile for one of its locations. |

Meals transactions appear on the **Transactions** tab with the rest of your transactions. Open one to see its sales tax and meals tax separately.

The dashboard and the API work on the same data, so a product or profile saved in one shows up in the other. Use the test and live toggle to choose which mode you are editing.

```text Dashboard and API theme={null}
Meals tax › Products     ↔  /tax/meals/products
Meals tax › Merchants    ↔  /tax/meals/merchant_profile
Transactions             ↔  /tax/meals/transactions
```

## The Meals product object

A meals product is one food or drink item, described by its `food` facts. You state the facts; Numeral never fills them in for you. A meals product has no `product_category`.

### Attributes

**id** `string`

The ID of the meals product, `ml_pr_…`.

**object** `string, value is "meals_product"`

String representing the object's type.

**reference\_product\_id** `string`

Your ID for the product. Unique across your whole product catalog in the same mode (test or live): no other product, of any merchant or any type, can use it.

**reference\_product\_name** `string`

The product's name.

**merchant\_id** `string or null`

The merchant the product belongs to, or `null` for your account's own product.

**food** `object`

The food facts. Every fact is returned; one you haven't stated is `null`. See [Food facts](#food-facts).

**testmode** `boolean`

`true` if made with a test API key.

**created\_at** `timestamp`

Unix seconds when the product was created. `updated_at` follows the same pattern.

```json The Meals product object theme={null}
{
  "id": "ml_pr_1795457375338c1f0a9d2",
  "object": "meals_product",
  "reference_product_id": "es-pizza",
  "reference_product_name": "Large cheese pizza",
  "merchant_id": null,
  "food": {
    "preparation": "HEATED",
    "combined_by_merchant": true,
    "made_by_merchant": true,
    "bakery_item": false,
    "packaging": "OPEN",
    "form": null,
    "staple": null,
    "sold_by": null,
    "portion": "MULTI_SERVING",
    "merchant_furnished_cup": null,
    "utensils_provided": null,
    "contains_raw_animal_food": null,
    "tcs": null,
    "beverage": null,
    "package_size_oz": null,
    "units_per_package": null
  },
  "testmode": true,
  "created_at": 1795457000,
  "updated_at": 1795457000
}
```

## Food facts

The `food` block describes the item. Five facts are always required. A request that leaves one out returns `FOOD_FACTS_REQUIRED`, naming every missing fact.

### Required facts

**food.preparation** `enum` *required*

How the customer gets the item.

| Value | Meaning |
| - | - |
| `HEATED` | Heated by the merchant and handed over hot. |
| `COLD_READY_TO_EAT` | Eaten as it is, with no heating. A sandwich or a salad. |
| `COOKED_SOLD_COLD_TO_REHEAT` | Fully cooked, then chilled for the customer to warm up. A meal-prep meal. |
| `REQUIRES_COOKING` | The customer cooks it before eating. A take-and-bake pizza or raw dumplings. |
| `RAW_INGREDIENT` | An uncooked ingredient sold on its own. |

**food.combined\_by\_merchant** `boolean` *required*

`true` if the merchant combined two or more ingredients: built a sandwich, tossed a salad, mixed a drink.

**food.made\_by\_merchant** `boolean` *required*

`true` if the merchant made or cooked it. `false` if they resell it as they bought it.

**food.bakery\_item** `boolean` *required*

`true` for bread, pastries, cakes, cookies, pies, muffins and similar baked goods.

**food.packaging** `enum` *required*

| Value | Meaning |
| - | - |
| `OPEN` | Handed over on a plate, or in a bag or container packed at the time of sale. |
| `MERCHANT_SEALED` | Packed and sealed by the merchant ahead of time. |
| `FACTORY_SEALED` | Sealed by the manufacturer and sold unopened. |

### Required for some items

**food.form** `enum`

Required when `bakery_item` is `true`. `WHOLE` (a whole cake, pie or loaf) or `SINGLE_PORTION` (a slice, or one individual pastry, muffin or cookie).

**food.beverage** `object`

Send it for a drink. Required when `merchant_furnished_cup` is `true`.

**food.beverage.temperature** `enum` *required*

`HOT` or `COLD` (cold or iced).

**food.beverage.sweetened** `boolean`

Contains sugar or another sweetener.

**food.beverage.contains\_milk** `boolean`

Contains milk or a milk product.

**food.beverage.juice\_percent** `number`

Percent of the drink that is juice, `0`–`100`.

**food.beverage.carbonated** `boolean`

Calculation lines only. Can't be stored on a product.

**food.beverage.alcoholic** `boolean`

Calculation lines only. Can't be stored on a product.

**food.merchant\_furnished\_cup** `boolean`

Required for a drink. `true` if it is poured or filled into a cup or glass the merchant provides, rather than a sealed bottle or can.

### Optional facts

State the ones you know. Leave a fact out, or send `null`, when you don't.

**food.portion** `enum`

`SINGLE_SERVING` (meant for one person) or `MULTI_SERVING` (meant to share: a tray, a quart, a dozen, family size).

**food.sold\_by** `enum`

`COUNT` (priced per item or per piece) or `WEIGHT_VOLUME` (priced per pound, ounce, pint or quart).

**food.utensils\_provided** `boolean`

`true` if forks, spoons, straws or napkins are given with this item. Leave it out to follow the merchant profile's `utensil_practice`.

**food.staple** `boolean`

An everyday basic food, such as plain bread or rolls, rather than a treat.

**food.contains\_raw\_animal\_food** `boolean`

Contains raw meat, fish or eggs that the customer cooks before eating.

**food.tcs** `boolean`

Must be kept cold or hot to stay safe, such as dairy, cooked meat or cut fruit.

**food.package\_size\_oz** `number`

Package size in ounces.

**food.units\_per\_package** `integer`

Units in the package, `1` or more.

**food.servings\_per\_item** `integer`

Servings in one item, `1` or more. Calculation lines only. Can't be stored on a product.

```json A hot pizza theme={null}
{
  "preparation": "HEATED",
  "combined_by_merchant": true,
  "made_by_merchant": true,
  "bakery_item": false,
  "packaging": "OPEN",
  "portion": "MULTI_SERVING"
}
```

```json A fountain soda theme={null}
{
  "preparation": "COLD_READY_TO_EAT",
  "combined_by_merchant": false,
  "made_by_merchant": false,
  "bakery_item": false,
  "packaging": "OPEN",
  "merchant_furnished_cup": true,
  "beverage": {
    "temperature": "COLD",
    "sweetened": true,
    "contains_milk": false
  }
}
```

```json A cookie theme={null}
{
  "preparation": "COLD_READY_TO_EAT",
  "combined_by_merchant": true,
  "made_by_merchant": true,
  "bakery_item": true,
  "form": "SINGLE_PORTION",
  "packaging": "OPEN"
}
```

## Create a meals product

Creates a meals product.

### Parameters

**reference\_product\_id** `string` *required*

Your ID for the product, up to 255 characters. Must not be in use by any other product in your catalog.

**reference\_product\_name** `string` *required*

The product's name, up to 255 characters.

**food** `object` *required*

The [food facts](#food-facts).

**merchant\_id** `string`

The merchant the product belongs to: the merchant's `id` or your `reference_merchant_id`. Leave it out for your account's own product.

> [!NOTE]
>
> Don't send `product_category`. A meals product doesn't take one.

### Returns

A [Meals product object](#the-meals-product-object). Returns `409 DUPLICATE_PRODUCT` when the `reference_product_id` is already in use.

```bash POST /tax/meals/products theme={null}
curl https://api.numeralhq.com/tax/meals/products \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Version: 2026-11-01' \
  -d '{
    "reference_product_id": "es-pizza",
    "reference_product_name": "Large cheese pizza",
    "food": {
      "preparation": "HEATED",
      "combined_by_merchant": true,
      "made_by_merchant": true,
      "bakery_item": false,
      "packaging": "OPEN",
      "portion": "MULTI_SERVING"
    }
  }'
```

## Update a meals product

Updates a meals product. Send `reference_product_name`, `food`, or both.

The `food` you send is merged onto the stored facts: a fact you leave out keeps its stored value. Send `null` to clear an optional fact. The merged facts must still include every required fact.

### Parameters

**reference\_product\_id** `string` *required*

Your ID for the product.

**merchant\_id** `string`

The merchant the product belongs to. Leave it out for your account's own product.

**reference\_product\_name** `string`

The product's new name.

**food** `object`

The [food facts](#food-facts) to change.

### Returns

The updated [Meals product object](#the-meals-product-object).

```bash POST /tax/meals/products/:reference_product_id theme={null}
curl https://api.numeralhq.com/tax/meals/products/es-pizza \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Version: 2026-11-01' \
  -d '{
    "food": {
      "portion": "SINGLE_SERVING"
    }
  }'
```

## Retrieve a meals product

### Parameters

**reference\_product\_id** `string` *required*

Your ID for the product.

**merchant\_id** `string`

The merchant the product belongs to. Leave it out for your account's own product.

### Returns

A [Meals product object](#the-meals-product-object), or `404 PRODUCT_NOT_FOUND`.

```bash GET /tax/meals/products/:reference_product_id theme={null}
curl https://api.numeralhq.com/tax/meals/products/es-pizza \
  -H 'Authorization: Bearer <token>' \
  -H 'X-API-Version: 2026-11-01'
```

## Delete a meals product

Deletes a meals product. Its `reference_product_id` can then be used again.

### Parameters

**reference\_product\_id** `string` *required*

Your ID for the product.

**merchant\_id** `string`

The merchant the product belongs to. Leave it out for your account's own product.

### Returns

The product's `id`, `object`, `reference_product_id`, `merchant_id` and `testmode`, with `deleted_at` in Unix seconds.

```bash DELETE /tax/meals/products/:reference_product_id theme={null}
curl -X DELETE https://api.numeralhq.com/tax/meals/products/es-pizza \
  -H 'Authorization: Bearer <token>' \
  -H 'X-API-Version: 2026-11-01'
```

```json Response theme={null}
{
  "id": "ml_pr_1795457375338c1f0a9d2",
  "object": "meals_product",
  "reference_product_id": "es-pizza",
  "merchant_id": null,
  "testmode": true,
  "deleted_at": 1795460000
}
```

## The Merchant profile object

A merchant profile holds a merchant's `collect_meals_tax` choice and a few facts about how the merchant operates. See [Collecting meals tax](#collecting-meals-tax) for which profile a calculation uses.

### Attributes

**object** `string, value is "meals_merchant_profile"`

String representing the object's type.

**merchant\_id** `string or null`

The merchant's Numeral `id`, or `null` for your account's own profile.

**reference\_location\_id** `string or null`

Your ID for the location this profile is for, or `null` for the default profile.

**collect\_meals\_tax** `boolean`

Whether Numeral calculates meals tax for this merchant or location. `false` by default.

**profile** `object`

The facts you saved. See [Profile facts](#profile-facts).

**menu** `object`

What the merchant sells: `sells_heated_food`, `pours_drinks`, `serves_ready_to_eat_portions`, `sells_tcs_food` and `bakery_only`, each a boolean. Values you stated in `profile.menu` are returned as stated. The rest are worked out from the merchant's meals products.

**menu\_source** `enum`

`STATED` when the profile states a `menu`, `DERIVED` when the whole menu comes from the merchant's meals products.

**testmode** `boolean`

`true` if made with a test API key.

**created\_at** `timestamp`

Unix seconds when the profile was created. `updated_at` follows the same pattern.

### Profile facts

Every fact is optional. State the ones you know.

**profile.establishment\_type** `enum`

| Value | Meaning |
| - | - |
| `HOME_KITCHEN` | Cooks and sells food made in their own home. |
| `BAKERY` | Mainly sells baked goods. |
| `RESTAURANT` | Prepares meals to order. |
| `BAR` | Mainly serves drinks. |
| `CATERER` | Prepares food for events and large orders. |
| `FOOD_TRUCK` | Sells from a truck, cart or trailer. |
| `GROCERY_DELI` | A store that sells groceries, with or without a deli counter. |
| `MARKET_STALL` | Sells at a farmers market, fair or roadside stand. |

**profile.kitchen** `enum`

`HOME` (the merchant's own home kitchen), `PERMITTED_COMMERCIAL` (a commercial kitchen the merchant runs under a permit), `COMMISSARY` (a shared kitchen the merchant rents time in) or `MOBILE_UNIT` (a kitchen in a truck, trailer or cart).

**profile.food\_permit** `enum`

`NONE`, `COTTAGE_REGISTRATION` (registered to sell food made at home under cottage food law) or `RETAIL_FOOD_PERMIT` (holds a retail food or food service permit).

**profile.on\_premises\_consumption** `enum`

`NONE` (customers can't eat at the merchant's location), `OWN_SEATING` (the merchant has its own tables, chairs or counter) or `HOST_OR_SHARED_SEATING` (seating someone else provides, such as a food hall or market).

**profile.alcohol\_license** `enum`

`NONE`, `ON_PREMISES` (licensed to serve alcohol to drink at the location) or `OFF_PREMISES` (licensed to sell sealed alcohol to take away).

**profile.utensil\_practice** `enum`

`NONE` (doesn't give out utensils), `AVAILABLE` (utensils are there for customers to take) or `HANDED_OVER` (utensils are handed over with the order).

**profile.menu** `object`

What the merchant sells, when you'd rather state it than have it worked out from the merchant's meals products. Any of `sells_heated_food`, `pours_drinks`, `serves_ready_to_eat_portions`, `sells_tcs_food`, `bakery_only`, each a boolean.

**profile.sales\_mix** `object`

Shares of the merchant's sales, each a number from `0` to `1`: `prepared_food_share`, `bakery_share`, `grocery_share`, `individual_serving_share`.

**profile.annual\_gross\_sales** `integer`

Everything the merchant sold last year, in cents.

**profile.annual\_food\_sales** `integer`

Food and drink the merchant sold last year, in cents.

**profile.annual\_market\_sales** `integer`

Sales made at farmers markets and roadside stands last year, in cents.

```json The Merchant profile object theme={null}
{
  "object": "meals_merchant_profile",
  "merchant_id": "merch_1765503753979c37c5f24",
  "reference_location_id": null,
  "collect_meals_tax": true,
  "profile": {
    "establishment_type": "RESTAURANT",
    "kitchen": "PERMITTED_COMMERCIAL",
    "food_permit": "RETAIL_FOOD_PERMIT",
    "on_premises_consumption": "OWN_SEATING",
    "alcohol_license": "NONE",
    "utensil_practice": "HANDED_OVER"
  },
  "menu": {
    "sells_heated_food": true,
    "pours_drinks": true,
    "serves_ready_to_eat_portions": true,
    "sells_tcs_food": false,
    "bakery_only": false
  },
  "menu_source": "DERIVED",
  "testmode": true,
  "created_at": 1795457000,
  "updated_at": 1795457000
}
```

## Save a merchant profile

Creates the profile, or updates it when one already exists for the same `merchant_id` and `reference_location_id`.

* Leave `collect_meals_tax` out to keep the stored value. On a new profile it starts as `false`.
* Leave `profile` out to keep the stored facts. A `profile` you send **replaces** the stored one whole, so send every fact you want to keep.

### Parameters

**merchant\_id** `string`

The merchant's `id` or your `reference_merchant_id`. Leave it out for your account's own profile.

**reference\_location\_id** `string`

Your ID for one of the merchant's locations, up to 255 characters. Leave it out for the default profile. Send the same value as `fulfillment.location.reference_location_id` on a calculation to use this profile.

**collect\_meals\_tax** `boolean`

Whether to calculate meals tax for this merchant or location. See [Collecting meals tax](#collecting-meals-tax).

**profile** `object`

The [profile facts](#profile-facts).

### Returns

The [Merchant profile object](#the-merchant-profile-object). Returns `404 MERCHANT_NOT_FOUND` when `merchant_id` doesn't match one of your merchants in the same mode.

```bash POST /tax/meals/merchant_profile theme={null}
curl https://api.numeralhq.com/tax/meals/merchant_profile \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Version: 2026-11-01' \
  -d '{
    "merchant_id": "my-merchant-123",
    "collect_meals_tax": true,
    "profile": {
      "establishment_type": "RESTAURANT",
      "kitchen": "PERMITTED_COMMERCIAL",
      "food_permit": "RETAIL_FOOD_PERMIT",
      "on_premises_consumption": "OWN_SEATING",
      "alcohol_license": "NONE",
      "utensil_practice": "HANDED_OVER"
    }
  }'
```

## Retrieve a merchant profile

Returns the profile saved for exactly this `merchant_id` and `reference_location_id`. It does not fall back to another profile the way a calculation does.

### Parameters

**merchant\_id** `string`

The merchant's `id` or your `reference_merchant_id`. Leave it out for your account's own profile.

**reference\_location\_id** `string`

Your ID for the location. Leave it out for the default profile.

### Returns

The [Merchant profile object](#the-merchant-profile-object), or `404 MERCHANT_PROFILE_NOT_FOUND` when none is saved.

```bash GET /tax/meals/merchant_profile theme={null}
curl 'https://api.numeralhq.com/tax/meals/merchant_profile?merchant_id=my-merchant-123' \
  -H 'Authorization: Bearer <token>' \
  -H 'X-API-Version: 2026-11-01'
```

## Delete a merchant profile

Deletes the profile saved for exactly this `merchant_id` and `reference_location_id`. Calculations then use the [next profile that applies](#collecting-meals-tax).

Deleting a merchant deletes all of its profiles.

### Parameters

**merchant\_id** `string`

The merchant's `id` or your `reference_merchant_id`. Leave it out for your account's own profile.

**reference\_location\_id** `string`

Your ID for the location. Leave it out for the default profile.

### Returns

The profile's `object`, `merchant_id`, `reference_location_id` and `testmode`, with `deleted: true` and `deleted_at` in Unix seconds.

```bash DELETE /tax/meals/merchant_profile theme={null}
curl -X DELETE 'https://api.numeralhq.com/tax/meals/merchant_profile?merchant_id=my-merchant-123&reference_location_id=airport-kiosk' \
  -H 'Authorization: Bearer <token>' \
  -H 'X-API-Version: 2026-11-01'
```

```json Response theme={null}
{
  "object": "meals_merchant_profile",
  "merchant_id": "merch_1765503753979c37c5f24",
  "reference_location_id": "airport-kiosk",
  "testmode": true,
  "deleted": true,
  "deleted_at": 1795460000
}
```

## Create a meals calculation

Calculates the sales tax and meals tax on a food order. Addresses must be in the United States and the currency must be `USD`.

The response is a [calculation](https://docs.numeral.com/v2026-11-01/objects/calculations.md) with meals fields added. A line's `tax_amount` is its `sales_tax_amount` plus its `meals_tax_amount`.

### Parameters

**fulfillment** `object` *required*

How and where the order is handed over.

**fulfillment.method** `enum` *required*

`DINE_IN`, `TAKE_OUT`, `DELIVERY` or `SHIPMENT`.

**fulfillment.location** `object`

The merchant's location for this order.

* `address`: where the food is prepared and handed over. Required unless you send a `merchant` that has a `default_address`.
* `reference_location_id`: your ID for the location. Selects the [merchant profile](#collecting-meals-tax) saved for it.
* `profile`: [profile facts](#profile-facts) for this order only. They are applied over the saved profile, fact by fact. They can't change `collect_meals_tax`.

**fulfillment.delivery** `object`

Required for `DELIVERY` and `SHIPMENT`, refused otherwise.

* `provider` (required): `MERCHANT` when the merchant delivers, `THIRD_PARTY` when someone else does.
* `provider_name`: the delivery company's name.

**fulfillment.sales\_channel** `enum`

`HOME_PICKUP`, `STOREFRONT`, `FARMERS_MARKET`, `ROADSIDE_STAND`, `EVENT_BOOTH`, `CATERING` or `ONLINE`. Defaults to `HOME_PICKUP` for `TAKE_OUT`, `STOREFRONT` for `DINE_IN`, and `ONLINE` for `DELIVERY` and `SHIPMENT`.

**fulfillment.curbside** `boolean` (default: false)

`true` when the order is brought out to the customer's car.

**fulfillment.coverage** `enum` (default: advise)

What to do when meals tax can't be fully calculated for the order.

* `advise`: return the calculation, with [advisories](#advisories) where one applies.
* `strict`: refuse the order with `422 MEALS_TAX_COVERAGE_GAP`.

**order\_details** `object` *required*

**order\_details.customer\_currency\_code** `string` *required*

Must be `USD`.

**order\_details.tax\_included\_in\_amount** `boolean` *required*

`true` when each line `amount` already includes its sales tax and meals tax.

**order\_details.line\_items** `array of objects` *required*

1 to 1,000 lines. See [Line items](#line-items).

**order\_details.transacted\_at** `timestamp`

Unix seconds when the sale happened. Defaults to now.

**order\_details.automatic\_tax** `enum` (default: auto)

Must be `auto` for US addresses.

**customer** `object`

The buyer.

* `address`: the delivery address. Required for `DELIVERY` and `SHIPMENT`. Refused for `DINE_IN` and `TAKE_OUT`, where the food is handed over at the location.
* `id`: a [customer](https://docs.numeral.com/v2026-11-01/objects/customers.md) ID.
* `type`: `CONSUMER` (default) or `BUSINESS`.
* `tax_ids`: the buyer's [tax IDs](https://docs.numeral.com/essentials/tax-ids.md).

**merchant** `object`

The merchant making the sale, as on a [platform calculation](https://docs.numeral.com/v2026-11-01/objects/platform.md): `merchant_id` (required), `type`, `tax_ids`, `address`. When you send `merchant`, also send `roles`.

**roles** `array of enums`

Your roles in the sale: `marketplace_provider`, `merchant_of_record`, `payment_processor`. Required with `merchant`.

**fee\_details** `object`

The fees you charge the merchant, as on a [platform calculation](https://docs.numeral.com/v2026-11-01/objects/platform.md). Needs `merchant`. The response returns them in `fees`, apart from the order's totals.

**metadata** `object`

String key-value pairs.

### Line items

Each line is one of three kinds:

| Kind | Send |
| - | - |
| A meals product | `reference_product_id` of a [meals product](#the-meals-product-object). Add `food` to change facts for this order only. |
| Food described on the line | `reference_product_name` and a complete `food` block. Nothing is saved to your catalog. |
| Something that isn't food | `product_category`, or the `reference_product_id` of an ordinary [product](https://docs.numeral.com/v2026-11-01/objects/products.md). A delivery fee is a line with `product_category: "SHIPPING"`. |

**line\_items\[].amount** `integer` *required*

Price of one unit, in cents. Tax is calculated on `amount` × `quantity`.

**line\_items\[].quantity** `integer` *required*

Units sold. A positive whole number.

**line\_items\[].reference\_line\_item\_id** `string`

Your ID for the line.

**line\_items\[].reference\_product\_id** `string`

Your ID for a meals product or an ordinary product.

**line\_items\[].reference\_product\_name** `string`

The item's name. Required when the line has no `reference_product_id` and no `product_category`.

**line\_items\[].food** `object`

[Food facts](#food-facts) for this line. On a meals product's line they are applied over the product's facts. Not accepted together with `product_category`.

**line\_items\[].bundle\_id** `string`

Give the same value to lines sold together for one price, such as a combo meal.

**line\_items\[].product\_category** `string`

A [product category](https://docs.numeral.com/essentials/product-categories.md), for a line that isn't food.

### Returns

A [calculation](https://docs.numeral.com/v2026-11-01/objects/calculations.md) with these fields added. `product_tax_code` is not returned on meals line items.

**calculation\_type** `string, value is "MEALS_TAX"`

**line\_items\[].sales\_tax\_amount** `integer`

The line's sales tax, in cents.

**line\_items\[].meals\_tax\_amount** `integer`

The line's meals tax, in cents. `0` when none applies or the merchant doesn't collect it.

**line\_items\[].tax\_jurisdictions** `array of objects`

One row per tax. Meals tax rows have `tax_type: "MEALS"`; the others are the line's sales tax. Each row has the same fields as on a [calculation](https://docs.numeral.com/v2026-11-01/objects/calculations.md). `note` is always an empty string on meals calculations.

**line\_items\[].delivery\_fee\_treatment** `object`

On a delivery fee line only. `result` is `TAXABLE`, `EXEMPT`, `FOLLOWS_FOOD` or `NOT_EVALUATED`. `taxable_share` is the share of the fee that was taxed, from `0` to `1`, or `null` when not evaluated.

**total\_sales\_tax\_amount** `integer`

Sales tax on the whole order, in cents.

**total\_meals\_tax\_amount** `integer`

Meals tax on the whole order, in cents. `total_tax_amount` is the two together.

**fulfillment** `object`

The fulfillment you sent, with `sales_channel` filled in. `location.jurisdictions` lists the jurisdictions the merchant's location is in. `destination.jurisdictions` lists the same for the delivery address, and `destination` is `null` when the order isn't delivered.

**advisories** `array of objects`

Things to know about the result. Empty when there are none. See [Advisories](#advisories).

**fees** `object`

Only when you sent `fee_details`: `platform_calculation_id`, the fee `line_items` and their `totals`.

```bash POST /tax/meals/calculations theme={null}
curl https://api.numeralhq.com/tax/meals/calculations \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Version: 2026-11-01' \
  -d '{
    "fulfillment": {
      "method": "TAKE_OUT",
      "location": {
        "address": {
          "address_line_1": "200 W Dixie Ave",
          "address_city": "Elizabethtown",
          "address_province": "KY",
          "address_postal_code": "42701",
          "address_country": "US"
        }
      }
    },
    "order_details": {
      "customer_currency_code": "USD",
      "tax_included_in_amount": false,
      "line_items": [
        {
          "reference_line_item_id": "pizza",
          "reference_product_id": "es-pizza",
          "amount": 1200,
          "quantity": 1
        },
        {
          "reference_line_item_id": "soda",
          "reference_product_id": "chk-soda",
          "amount": 300,
          "quantity": 1
        },
        {
          "reference_line_item_id": "cookie",
          "reference_product_id": "chk-cookie",
          "amount": 250,
          "quantity": 2
        }
      ]
    }
  }'
```

```json Response theme={null}
{
  "testmode": true,
  "id": "calc_179545737537815edee61-4162-4397-9c08-5ea13e453a74",
  "object": "tax.calculation",
  "customer_currency_code": "USD",
  "line_items": [
    {
      "line_item_id": "li_179545737533821c0dcca-1475-4bcd-91e9-b2a9952a88cf",
      "product": {
        "reference_line_item_id": "pizza",
        "reference_product_id": "es-pizza",
        "reference_product_name": "Large cheese pizza"
      },
      "tax_jurisdictions": [
        {
          "jurisdiction": "US-KY",
          "tax_type": "SALES",
          "rate_type": "GENERAL STATE SALES TAX",
          "tax_authority_type": "STATE",
          "tax_authority_name": "Kentucky",
          "tax_rate": 0.06,
          "tax_basis": 1224,
          "tax_due_decimal": 73.44,
          "fee_amount": 0,
          "note": ""
        },
        {
          "jurisdiction": "US-KY/elizabethtown",
          "tax_type": "MEALS",
          "rate_type": "RESTAURANT_TAX",
          "tax_authority_type": "CITY",
          "tax_authority_name": "Elizabethtown",
          "tax_rate": 0.02,
          "tax_basis": 1200,
          "tax_due_decimal": 24,
          "fee_amount": 0,
          "note": ""
        }
      ],
      "tax_amount": 97,
      "amount_excluding_tax": 1200,
      "amount_including_tax": 1297,
      "quantity": 1,
      "sales_tax_amount": 73,
      "meals_tax_amount": 24
    },
    {
      "line_item_id": "li_1795457375338ad54a942-e4b6-4558-b3c7-361741589c4a",
      "product": {
        "reference_line_item_id": "soda",
        "reference_product_id": "chk-soda",
        "reference_product_name": "Fountain soda"
      },
      "tax_jurisdictions": [
        {
          "jurisdiction": "US-KY",
          "tax_type": "SALES",
          "rate_type": "GENERAL STATE SALES TAX",
          "tax_authority_type": "STATE",
          "tax_authority_name": "Kentucky",
          "tax_rate": 0.06,
          "tax_basis": 306,
          "tax_due_decimal": 18.36,
          "fee_amount": 0,
          "note": ""
        },
        {
          "jurisdiction": "US-KY/elizabethtown",
          "tax_type": "MEALS",
          "rate_type": "RESTAURANT_TAX",
          "tax_authority_type": "CITY",
          "tax_authority_name": "Elizabethtown",
          "tax_rate": 0.02,
          "tax_basis": 300,
          "tax_due_decimal": 6,
          "fee_amount": 0,
          "note": ""
        }
      ],
      "tax_amount": 24,
      "amount_excluding_tax": 300,
      "amount_including_tax": 324,
      "quantity": 1,
      "sales_tax_amount": 18,
      "meals_tax_amount": 6
    },
    {
      "line_item_id": "li_17954573753382436ec47-f961-48c4-b1e7-73ec79b4d1ff",
      "product": {
        "reference_line_item_id": "cookie",
        "reference_product_id": "chk-cookie",
        "reference_product_name": "Chocolate chip cookie"
      },
      "tax_jurisdictions": [
        {
          "jurisdiction": "US-KY",
          "tax_type": "SALES",
          "rate_type": "GENERAL STATE SALES TAX",
          "tax_authority_type": "STATE",
          "tax_authority_name": "Kentucky",
          "tax_rate": 0.06,
          "tax_basis": 510,
          "tax_due_decimal": 30.6,
          "fee_amount": 0,
          "note": ""
        },
        {
          "jurisdiction": "US-KY/elizabethtown",
          "tax_type": "MEALS",
          "rate_type": "RESTAURANT_TAX",
          "tax_authority_type": "CITY",
          "tax_authority_name": "Elizabethtown",
          "tax_rate": 0.02,
          "tax_basis": 500,
          "tax_due_decimal": 10,
          "fee_amount": 0,
          "note": ""
        }
      ],
      "tax_amount": 41,
      "amount_excluding_tax": 500,
      "amount_including_tax": 541,
      "quantity": 2,
      "sales_tax_amount": 31,
      "meals_tax_amount": 10
    }
  ],
  "total_tax_amount": 162,
  "tax_included_in_amount": false,
  "total_amount_excluding_tax": 2000,
  "total_amount_including_tax": 2162,
  "expires_at": 1795543775,
  "customer": {
    "type": "CONSUMER"
  },
  "automatic_tax": "auto",
  "address_resolution_status": "EXACT",
  "address_used": {
    "address_line_1": "200 W Dixie Ave",
    "address_city": "Elizabethtown",
    "address_province": "KY",
    "address_postal_code": "42701",
    "address_country": "US"
  },
  "location_source": "address",
  "resolution_precision": "STREET",
  "effective_tax_rate": 0.081,
  "calculation_type": "MEALS_TAX",
  "fulfillment": {
    "method": "TAKE_OUT",
    "sales_channel": "HOME_PICKUP",
    "curbside": false,
    "location": {
      "reference_location_id": null,
      "jurisdictions": [
        "US-KY",
        "US-KY/elizabethtown"
      ]
    },
    "destination": null,
    "delivery": null
  },
  "total_sales_tax_amount": 122,
  "total_meals_tax_amount": 40,
  "advisories": []
}
```

```json A delivery order theme={null}
{
  "fulfillment": {
    "method": "DELIVERY",
    "location": {
      "address": {
        "address_line_1": "1000 N King St",
        "address_city": "Wilmington",
        "address_province": "DE",
        "address_postal_code": "19801",
        "address_country": "US"
      }
    },
    "delivery": {
      "provider": "MERCHANT"
    }
  },
  "order_details": {
    "customer_currency_code": "USD",
    "tax_included_in_amount": false,
    "line_items": [
      {
        "reference_line_item_id": "pizza",
        "reference_product_id": "es-pizza",
        "amount": 1200,
        "quantity": 1
      },
      {
        "reference_line_item_id": "fee",
        "product_category": "SHIPPING",
        "amount": 500,
        "quantity": 1
      }
    ]
  },
  "customer": {
    "address": {
      "address_line_1": "1 S Market St",
      "address_city": "Wilmington",
      "address_province": "DE",
      "address_postal_code": "19801",
      "address_country": "US"
    }
  }
}
```

## Advisories

An advisory tells you something about a result that you may want to act on. Each has a `code`, a `jurisdiction` (or `null`), a `message`, and sometimes `line_ids`: the positions of the lines it is about in your request's `line_items`, counting from `0`, as strings.

| `code` | Meaning |
| - | - |
| `MEALS_TAX_NOT_EVALUATED` | Numeral doesn't have meals tax coverage for this jurisdiction, or for the listed lines, yet. No meals tax was calculated for it. |
| `TAX_NOT_FULLY_CALCULATED` | Meals tax could not be fully calculated for the listed lines. |
| `LOW_CONFIDENCE` | The tax on the listed lines is under review and may change. |
| `SOURCE_UNVERIFIED` | The rate or rule for this jurisdiction is being confirmed and may change. |
| `LOCATION_AMBIGUOUS` | The address could not be placed precisely enough to confirm every local meals tax on the order. A local meals tax may be missing from, or included in, the result. `jurisdiction` is `null`. |
| `MERCHANT_PROFILE_DEFAULTED` | No saved or inline merchant profile applied to the order, so Numeral's default profile was used. Save a [merchant profile](#save-a-merchant-profile). |

With `fulfillment.coverage: "strict"`, an order that would return any advisory above except `MERCHANT_PROFILE_DEFAULTED` is refused with `422 MEALS_TAX_COVERAGE_GAP` instead.

> [!NOTE]
>
> Meals tax coverage grows during the beta. Ask your Numeral representative which jurisdictions are covered for your merchants.

```json An advisory theme={null}
{
  "code": "MEALS_TAX_NOT_EVALUATED",
  "jurisdiction": "US-DE",
  "message": "We don't have meals tax research covering these lines yet, so meals tax on them may be incomplete.",
  "line_ids": [
    "1"
  ]
}
```

```json Refused under strict coverage theme={null}
{
  "code": 422,
  "type": "MEALS_TAX_COVERAGE_GAP",
  "message": "Unable to create meals calculation. Meals tax coverage is incomplete for this order: LOCATION_AMBIGUOUS: The address could not be placed precisely enough to confirm every local meals tax on this order."
}
```

## Create a meals transaction

Records a sale from a meals calculation. It works for every meals calculation, with or without a `merchant`.

### Parameters

**calculation\_id** `string` *required*

The `id` returned by [Create a meals calculation](#create-a-meals-calculation).

**reference\_order\_id** `string` *required*

Your ID for the order.

**reference\_payment\_id** `string`

Your ID for the payment.

**transaction\_processed\_at** `timestamp`

Unix seconds when the sale was processed. Defaults to now.

**fee\_calculation\_id** `string`

The `fees.platform_calculation_id` from the calculation. Send it to record your fees with the order.

**metadata** `object`

String key-value pairs.

### Returns

A [transaction](https://docs.numeral.com/v2026-11-01/objects/transactions.md) with `calculation_type`, `total_sales_tax_amount`, `total_meals_tax_amount`, and `sales_tax_amount` and `meals_tax_amount` on each line.

### After the sale

A meals transaction works with the ordinary transaction endpoints. Their responses carry the same meals fields.

| To | Use |
| - | - |
| Retrieve it | `GET /tax/transactions/:id` |
| Refund it | `POST /tax/refunds` |
| List its refunds | `GET /tax/transactions/:id/refunds` |
| Reverse a refund | `POST /tax/refund_reversals` |

On a partial refund, send one `tax_amount_refunded` for the line, as usual. Numeral splits it between sales tax and meals tax in proportion to the original line.

```bash POST /tax/meals/transactions theme={null}
curl https://api.numeralhq.com/tax/meals/transactions \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Version: 2026-11-01' \
  -d '{
    "calculation_id": "calc_179545737537815edee61-4162-4397-9c08-5ea13e453a74",
    "reference_order_id": "meals-check-e71b7deb31"
  }'
```

```json Response theme={null}
{
  "testmode": true,
  "id": "tr_1795457377742fdb7d21d-84b6-4495-8e30-211a7a60eb0e",
  "object": "tax.transaction",
  "calculation_id": "calc_179545737537815edee61-4162-4397-9c08-5ea13e453a74",
  "filing_currency_code": "USD",
  "customer_currency_code": "USD",
  "line_items": [
    {
      "line_item_id": "li_179545737533821c0dcca-1475-4bcd-91e9-b2a9952a88cf",
      "product": {
        "reference_line_item_id": "pizza",
        "reference_product_id": "es-pizza",
        "reference_product_name": "Large cheese pizza"
      },
      "tax_jurisdictions": [
        {
          "jurisdiction": "US-KY",
          "tax_type": "SALES",
          "rate_type": "GENERAL STATE SALES TAX",
          "tax_authority_type": "STATE",
          "tax_authority_name": "Kentucky",
          "tax_rate": 0.06,
          "tax_basis": 1224,
          "tax_due_decimal": 73.44,
          "fee_amount": 0,
          "note": ""
        },
        {
          "jurisdiction": "US-KY/elizabethtown",
          "tax_type": "MEALS",
          "rate_type": "RESTAURANT_TAX",
          "tax_authority_type": "CITY",
          "tax_authority_name": "Elizabethtown",
          "tax_rate": 0.02,
          "tax_basis": 1200,
          "tax_due_decimal": 24,
          "fee_amount": 0,
          "note": ""
        }
      ],
      "tax_amount": 97,
      "amount_excluding_tax": 1200,
      "amount_including_tax": 1297,
      "quantity": 1,
      "type": "b2c",
      "sales_tax_amount": 73,
      "meals_tax_amount": 24
    }
  ],
  "reference_order_id": "meals-check-e71b7deb31",
  "transaction_processed_at": 1795457377,
  "calculation_type": "MEALS_TAX",
  "total_sales_tax_amount": 122,
  "total_meals_tax_amount": 40
}
```

```bash A partial refund theme={null}
curl https://api.numeralhq.com/tax/refunds \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Version: 2026-11-01' \
  -d '{
    "transaction_id": "tr_1795457377742fdb7d21d-84b6-4495-8e30-211a7a60eb0e",
    "type": "partial",
    "line_items": [
      {
        "line_item_id": "li_179545737533821c0dcca-1475-4bcd-91e9-b2a9952a88cf",
        "sales_amount_refunded": -600,
        "tax_amount_refunded": -48,
        "quantity": 1
      }
    ]
  }'
```

```json Refund response theme={null}
{
  "object": "tax.refund",
  "id": "ref_tr_1795457378339146bd1d9-7661-45cb-8086-8bcb96ac96f9",
  "refund_processed_at": 1795457378,
  "refund_type": "partial",
  "testmode": true,
  "line_items": [
    {
      "line_item_id": "li_1795457378346cc7d4919-2500-4bd8-bfda-12defbdc5a56",
      "product": {
        "reference_line_item_id": "pizza",
        "reference_product_id": "es-pizza",
        "reference_product_name": "Large cheese pizza"
      },
      "tax_jurisdictions": [
        {
          "jurisdiction": "US-KY",
          "tax_type": "SALES",
          "rate_type": "GENERAL STATE SALES TAX",
          "tax_authority_type": "STATE",
          "tax_authority_name": "Kentucky",
          "tax_rate": 0.06,
          "tax_basis": 600,
          "tax_due_decimal": 36,
          "fee_amount": 0,
          "note": ""
        },
        {
          "jurisdiction": "US-KY/elizabethtown",
          "tax_type": "MEALS",
          "rate_type": "RESTAURANT_TAX",
          "tax_authority_type": "CITY",
          "tax_authority_name": "Elizabethtown",
          "tax_rate": 0.02,
          "tax_basis": 600,
          "tax_due_decimal": 12,
          "fee_amount": 0,
          "note": ""
        }
      ],
      "tax_amount": -48,
      "amount_excluding_tax": -600,
      "amount_including_tax": -648,
      "quantity": 1,
      "type": "b2c",
      "sales_tax_amount": -36,
      "meals_tax_amount": -12
    }
  ],
  "calculation_type": "MEALS_TAX",
  "total_sales_tax_amount": -36,
  "total_meals_tax_amount": -12
}
```

## Errors

Meals tax endpoints use the standard [error format](https://docs.numeral.com/api-reference/v2026-11-01/error-codes.md) and add these types.

| Status | `type` | Meaning |
| - | - | - |
| `403` | `MEALS_TAX_NOT_ENABLED` | Your account isn't in the meals tax beta. Ask your Numeral sales or onboarding representative to add it. |
| `400` | `INVALID_REQUEST` | The request isn't valid. Also returned when `X-API-Version` is earlier than `2026-11-01`. |
| `400` | `FOOD_FACTS_REQUIRED` | A meals product or a food line is missing required [food facts](#food-facts). The message names each one. |
| `409` | `DUPLICATE_PRODUCT` | The `reference_product_id` is already in use in your catalog. |
| `404` | `PRODUCT_NOT_FOUND` | No product with this `reference_product_id`. |
| `404` | `MERCHANT_NOT_FOUND` | No merchant with this `merchant_id` in the same mode. |
| `404` | `MERCHANT_PROFILE_NOT_FOUND` | No profile is saved for this `merchant_id` and `reference_location_id`. |
| `422` | `UNSUPPORTED_DESTINATION` | The location or the delivery address is outside the United States. |
| `422` | `MEALS_TAX_COVERAGE_GAP` | `coverage` is `strict` and meals tax can't be fully calculated for the order. |

```json Not in the beta theme={null}
{
  "code": 403,
  "type": "MEALS_TAX_NOT_ENABLED",
  "message": "Meals tax is not enabled for this account. Contact Numeral support to enable it."
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.