Skip to main content
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 for each item on a menu, with a few plain facts about it.
  2. Who the merchant is. Save a merchant profile and choose whether that merchant collects meals tax.
  3. How the order is handed over. Send 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.
Where meals tax fits

Collecting meals tax

Each merchant chooses whether Numeral calculates meals tax for it. The choice is collect_meals_tax on the merchant profile.
collect_meals_tax is false by default. No meals tax is calculated for a merchant until you set it to true.
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.
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.
Turn on collection for a merchant
Turn it off for one location

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 shows a Meals tax tab with two sections.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.
Dashboard and API

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

string
The ID of the meals product, ml_pr_….
string, value is "meals_product"
String representing the object’s type.
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.
string
The product’s name.
string or null
The merchant the product belongs to, or null for your account’s own product.
object
The food facts. Every fact is returned; one you haven’t stated is null. See Food facts.
boolean
true if made with a test API key.
timestamp
Unix seconds when the product was created. updated_at follows the same pattern.
The Meals product object

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

enum
required
How the customer gets the item.
boolean
required
true if the merchant combined two or more ingredients: built a sandwich, tossed a salad, mixed a drink.
boolean
required
true if the merchant made or cooked it. false if they resell it as they bought it.
boolean
required
true for bread, pastries, cakes, cookies, pies, muffins and similar baked goods.
enum
required

Required for some items

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).
object
Send it for a drink. Required when merchant_furnished_cup is true.
enum
required
HOT or COLD (cold or iced).
boolean
Contains sugar or another sweetener.
boolean
Contains milk or a milk product.
number
Percent of the drink that is juice, 0–100.
boolean
Calculation lines only. Can’t be stored on a product.
boolean
Calculation lines only. Can’t be stored on a product.
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.
enum
SINGLE_SERVING (meant for one person) or MULTI_SERVING (meant to share: a tray, a quart, a dozen, family size).
enum
COUNT (priced per item or per piece) or WEIGHT_VOLUME (priced per pound, ounce, pint or quart).
boolean
true if forks, spoons, straws or napkins are given with this item. Leave it out to follow the merchant profile’s utensil_practice.
boolean
An everyday basic food, such as plain bread or rolls, rather than a treat.
boolean
Contains raw meat, fish or eggs that the customer cooks before eating.
boolean
Must be kept cold or hot to stay safe, such as dairy, cooked meat or cut fruit.
number
Package size in ounces.
integer
Units in the package, 1 or more.
integer
Servings in one item, 1 or more. Calculation lines only. Can’t be stored on a product.
A hot pizza
A fountain soda
A cookie

Create a meals product

Creates a meals product.

Parameters

string
required
Your ID for the product, up to 255 characters. Must not be in use by any other product in your catalog.
string
required
The product’s name, up to 255 characters.
object
required
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.
Don’t send product_category. A meals product doesn’t take one.

Returns

A Meals product object. Returns 409 DUPLICATE_PRODUCT when the reference_product_id is already in use.
POST /tax/meals/products

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

string
required
Your ID for the product.
string
The merchant the product belongs to. Leave it out for your account’s own product.
string
The product’s new name.
object
The food facts to change.

Returns

The updated Meals product object.
POST /tax/meals/products/:reference_product_id

Retrieve a meals product

Parameters

string
required
Your ID for the product.
string
The merchant the product belongs to. Leave it out for your account’s own product.

Returns

A Meals product object, or 404 PRODUCT_NOT_FOUND.
GET /tax/meals/products/:reference_product_id

Delete a meals product

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

Parameters

string
required
Your ID for the product.
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.
DELETE /tax/meals/products/:reference_product_id
Response

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 for which profile a calculation uses.

Attributes

string, value is "meals_merchant_profile"
String representing the object’s type.
string or null
The merchant’s Numeral id, or null for your account’s own profile.
string or null
Your ID for the location this profile is for, or null for the default profile.
boolean
Whether Numeral calculates meals tax for this merchant or location. false by default.
object
The facts you saved. See Profile facts.
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.
enum
STATED when the profile states a menu, DERIVED when the whole menu comes from the merchant’s meals products.
boolean
true if made with a test API key.
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.
enum
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).
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).
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).
enum
NONE, ON_PREMISES (licensed to serve alcohol to drink at the location) or OFF_PREMISES (licensed to sell sealed alcohol to take away).
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).
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.
object
Shares of the merchant’s sales, each a number from 0 to 1: prepared_food_share, bakery_share, grocery_share, individual_serving_share.
integer
Everything the merchant sold last year, in cents.
integer
Food and drink the merchant sold last year, in cents.
integer
Sales made at farmers markets and roadside stands last year, in cents.
The Merchant profile object

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

string
The merchant’s id or your reference_merchant_id. Leave it out for your account’s own profile.
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.
boolean
Whether to calculate meals tax for this merchant or location. See Collecting meals tax.
object

Returns

The Merchant profile object. Returns 404 MERCHANT_NOT_FOUND when merchant_id doesn’t match one of your merchants in the same mode.
POST /tax/meals/merchant_profile

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

string
The merchant’s id or your reference_merchant_id. Leave it out for your account’s own profile.
string
Your ID for the location. Leave it out for the default profile.

Returns

The Merchant profile object, or 404 MERCHANT_PROFILE_NOT_FOUND when none is saved.
GET /tax/meals/merchant_profile

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.Deleting a merchant deletes all of its profiles.

Parameters

string
The merchant’s id or your reference_merchant_id. Leave it out for your account’s own profile.
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.
DELETE /tax/meals/merchant_profile
Response

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 with meals fields added. A line’s tax_amount is its sales_tax_amount plus its meals_tax_amount.

Parameters

object
required
How and where the order is handed over.
enum
required
DINE_IN, TAKE_OUT, DELIVERY or SHIPMENT.
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 saved for it.
  • profile: profile facts for this order only. They are applied over the saved profile, fact by fact. They can’t change collect_meals_tax.
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.
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.
boolean
default:"false"
true when the order is brought out to the customer’s car.
enum
default:"advise"
What to do when meals tax can’t be fully calculated for the order.
  • advise: return the calculation, with advisories where one applies.
  • strict: refuse the order with 422 MEALS_TAX_COVERAGE_GAP.
object
required
string
required
Must be USD.
boolean
required
true when each line amount already includes its sales tax and meals tax.
array of objects
required
1 to 1,000 lines. See Line items.
timestamp
Unix seconds when the sale happened. Defaults to now.
enum
default:"auto"
Must be auto for US addresses.
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 ID.
  • type: CONSUMER (default) or BUSINESS.
  • tax_ids: the buyer’s tax IDs.
object
The merchant making the sale, as on a platform calculation: merchant_id (required), type, tax_ids, address. When you send merchant, also send roles.
array of enums
Your roles in the sale: marketplace_provider, merchant_of_record, payment_processor. Required with merchant.
object
The fees you charge the merchant, as on a platform calculation. Needs merchant. The response returns them in fees, apart from the order’s totals.
object
String key-value pairs.

Line items

Each line is one of three kinds:
integer
required
Price of one unit, in cents. Tax is calculated on amount × quantity.
integer
required
Units sold. A positive whole number.
string
Your ID for the line.
string
Your ID for a meals product or an ordinary product.
string
The item’s name. Required when the line has no reference_product_id and no product_category.
object
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.
string
Give the same value to lines sold together for one price, such as a combo meal.
string
A product category, for a line that isn’t food.

Returns

A calculation with these fields added. product_tax_code is not returned on meals line items.
string, value is "MEALS_TAX"
integer
The line’s sales tax, in cents.
integer
The line’s meals tax, in cents. 0 when none applies or the merchant doesn’t collect it.
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. note is always an empty string on meals calculations.
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.
integer
Sales tax on the whole order, in cents.
integer
Meals tax on the whole order, in cents. total_tax_amount is the two together.
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.
array of objects
Things to know about the result. Empty when there are none. See Advisories.
object
Only when you sent fee_details: platform_calculation_id, the fee line_items and their totals.
POST /tax/meals/calculations
Response
A delivery order

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.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.
Meals tax coverage grows during the beta. Ask your Numeral representative which jurisdictions are covered for your merchants.
An advisory
Refused under strict coverage

Create a meals transaction

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

Parameters

string
required
The id returned by Create a meals calculation.
string
required
Your ID for the order.
string
Your ID for the payment.
timestamp
Unix seconds when the sale was processed. Defaults to now.
string
The fees.platform_calculation_id from the calculation. Send it to record your fees with the order.
object
String key-value pairs.

Returns

A transaction 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.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.
POST /tax/meals/transactions
Response
A partial refund
Refund response

Errors

Meals tax endpoints use the standard error format and add these types.
Not in the beta