Documentation

Using Coil

Reports, Mileage, and Audits

Use Coil's calculations, record trips, and inspect the effects of agent changes.

Location Payout Report

Revenue excludes sales tax before commissions are calculated. Net revenue percentage payouts multiply net revenue (the amount actually charged after discounts, excluding sales tax, with refunded sales removed) by the payout percent. Net-profit-share payouts use revenue minus COGS and card fees, plus the recorded platform-fee deduction when opted in. Net revenue percentage payouts ignore platform fees. Other location expenses do not reduce the commission basis.

Sales waiting for inventory appear in detail with Cost pending. Missing costs can change payouts when stock is matched. Negative payouts remain informational only. Reports create no payments or receipts.

API/MCP clients use get_location_payout_report with reports:read, inclusive local dateFrom/dateTo, and optional locationId, page, and limit. Responses echo the resolved period and time zone.

  1. Open Reports and choose Location Payout. Overview, Sales Tax Return, Sales, and Purchase Tax are separate report tabs; the shared date control applies to the selected report except Sales Tax Return, which has its own filing-period picker.
  2. Review Location, Sold, Revenue, COGS, Card Fees, Net Profit, and Payout Owed in the topline CSV. Net Profit is revenue less COGS and card fees. Select a location or click its name to see one item-summary row per product, followed by every sale in that period, paged by date.
  3. Choose Download payout CSV, then select topline summary, item summary, or full sales detail. Sales exports require a selected location and include the whole period, not just the visible page. The payout view and CSV omit net profit and sales-tax liabilities.

Sales Tax Return

The worksheet follows Pennsylvania's Sales, Use and Hotel Occupancy Tax return. Monthly and quarterly returns are due on the 20th of the month after the period ends. Following PA's vending rule, tax-included food and drink (product category Food or Drink) is taxed on the period's total receipts ÷ (1 + rate), such as receipts ÷ 1.06, while other items such as trading cards and toys keep the tax recorded on each separate sale. Because of this, the return's sales tax can be a few cents lower than the dashboard, which adds up per-sale tax. Tax-included sales of a product now marked not taxable count as non-taxable sales at their full price, since the tax backed out when the sale was recorded was never owed; tax charged separately to a customer stays reportable. The dashboard still shows the tax as recorded. Sales without a stored rate use their location's rate, then the workspace default. The vendor discount is 1% of sales tax (not use tax), capped at $25 monthly, $75 quarterly, or $150 semi-annually, and applies only when the return and payment are on time. Annual and other custom periods show no discount.

The TPPR credit (Taxes Paid–Purchases Resold) returns the sales tax you paid when buying inventory that you later sold. For each unit sold in the period, Coil credits its lot's recorded purchase sales tax divided by the lot's unit count. Purchases made more than 3 years before the return's due date are excluded and need a refund petition instead. The credit can't reduce the amount due below zero, and the report shows any excess to carry forward. Record purchase tax on lots and keep the receipts to support the credit.

Payments recorded under Tax payments in Receipts are compared with the return. For the period they cover, the report shows tax paid (not counting penalty and interest) and anything left to pay or overpaid. Earlier periods with recorded payments are recalculated with today's data, and the total they were underpaid is added to the current return as Underpaid on earlier returns, so it can be paid with this return. When a later payment covers it, the balance clears. Earlier overpayments are shown but not subtracted. A period with a recorded payment is judged on time by its first payment date.

Use tax has two sources, reported on the same return and never earning the vendor discount. Business purchases: expense receipts whose type is taxable (equipment, machine parts & supplies, tools & storage, printing & marketing, software & subscriptions) owe 6% of the price before tax, less any sales tax the seller charged, in the period of the receipt date. Marketplace, private-party, and out-of-state purchases with no sales tax usually owe the full 6%; shortfalls within a few cents of rounding count as paid. Commissions, rent, professional services, fees, and vehicle & travel default to not taxable. Expenses with no type are listed under Check before filing. Inventory: units you removed for personal use, giveaways, or quality checks when no sales tax was paid at purchase. Dashboard resale credit and the summary CSV's resale_tax_credit use the same TPPR rule for any date range.

  1. Open Reports and choose Sales Tax Return. Pick the year, then Q1–Q4, Full year, or a single month. It opens on the most recently completed quarter.
  2. Review the myPATH return (PA-3) card, listed in the order of the return: total gross sales, net taxable sales, total amount of tax due, discount, net sales tax due, use tax due, total tax due, TPPR credit, and amount due. Enter-tagged lines are typed into myPATH; Auto-tagged lines are filled in by myPATH, so check they match. Copy buttons paste exact amounts.
  3. myPATH fills Total Amount of Tax Due as 6% of net taxable sales. Coil adds up the tax on each sale, so the two can differ by a few cents; when they do, the card shows both, and you override myPATH with Coil's amount so the return matches the tax you collected.
  4. Confirm the on-time setting. It defaults to off once the due date has passed, because a late return gets no vendor discount; PA also adds penalty and interest, which myPATH calculates.
  5. Review Food and drink taxability. PA taxes only some vending food and drinks, so set Taxable on each product in Products (for example, candy, plain water, and protein bars are not taxable; soft, sports, and energy drinks are). The report recalculates from the current setting.
  6. Read Check before filing. Sales still waiting for stock and lots with unreviewed purchase tax can understate the TPPR credit, so resolve them first when you can.
  7. Compare the worksheet with the return in your state's filing system (myPATH in Pennsylvania) before submitting. Coil does not file or pay the return.

Review Calculated Results

Dashboard and Reports calculate revenue, COGS, fees, net profit, taxes, and location payouts from workspace data. Check dates, inventory events, and settings before relying on the result or exporting it. Reading a report does not settle a payment or remit taxes.

Sales Tax to Remit includes tax charged separately and tax backed out of tax-included prices; the summary CSV lists both. Sales still waiting for stock count toward revenue, tax, fees, and payouts with no cost until matched, and the dashboard shows how many units are waiting.

Use Tax Owed and use_tax_owed in period exports add use tax on untaxed business purchases (by receipt date and expense type) to personal-use removals' additional tax for the consumption period; the CSV also splits them into use_tax_owed_expenses and use_tax_owed_inventory and counts expenses_needing_use_tax_review. Tax-paid removals record zero additional tax and do not count as sales. Removal events snapshot the cost, purchase-tax evidence, rate, basis, and amount; later cost edits do not silently recalculate an already recorded liability.

Agent Reporting

get_inventory_summary returns aggregated stock/valuation. get_dashboard, get_history, and export_period_summary use inclusive calendar dateFrom/dateTo values in the workspace time zone, spanning at most 366 days. Each response echoes resolved UTC period boundaries (end exclusive) and the time zone; CSV includes period_start, period_end, and period_time_zone. DST is respected. Sales, receipts, mileage, and location expenses use the same boundary rules. CSV responses are capped at 256 KB; narrow an oversized request. Agents should use these calculations rather than recreate accounting logic from partial unit lists.

Net-profit-share payouts preserve losses across the selected period. A losing period shows a negative payout with a Losing period label. This is informational only: nothing is charged to the location, no negative payout receipt is created, and no loss is carried forward.

Record Platform Payouts

A payout is income you can trace to the bank, not new revenue. Its sales were already recorded from the vending platform, so a payout never adds sales, revenue, or inventory changes. Reports keep using recorded sales and estimated card fees.

Coil's side of the check is card sales sold in the payout's period in the workspace time zone, including tax and sales that were later refunded, since refunds are their own line on the statement. A HaHa payout without a machine breakdown is compared with all HaHa card sales; a Nayax payout needs the breakdown. A payout number can be recorded once per platform, and a statement file already attached to another payout asks before saving again.

Agents with income:read and income:write can record and review payouts with create_platform_payout, list_platform_payouts, and get_platform_payout.

  1. Open Income and choose Add Payout when Nayax, HaHa, or another payment platform deposits money. Pick who paid, the payout date, and the sales dates the payout covers.
  2. Copy the statement's gross card sales, processing fees, platform fees, refunds, and the net deposited. The amounts must add up to the deposit; put any other line on the statement under Adjustments. Calculate net deposited fills it in from the other amounts.
  3. Add each machine's gross sales from the statement and pick its Coil machine, then attach the statement PDF or image.
  4. Check the Sales check column. Matches sales means the payout's gross equals the card sales Coil recorded for those machines and dates. Off by shows the difference; open it to see each machine and the actual processing fees next to Coil's estimated card fees.

Record Mileage

Record the actual ordered start, stops, end, date, miles, and applicable mileage rate. The rate is snapshotted on each trip. Supply the correct rate explicitly for historical dates rather than assuming today's default. An agent can delete a mistaken trip with delete_mileage_trip by repeating its tripId in confirmTripId. Agent route calculation uses Coil's configured Google Maps service and may incur provider charges.

Inspect Agent Changes

Settings shows recent request activity. list_automation_audit and get_automation_audit expose redacted before/after changes to keys with audit:read; larger unit snapshots are paged.

New management mutations commit their audit changes in the same MongoDB transaction. Existing receipt/Blob workflows append snapshots after successful actions and are not a transaction across services. A failed or pending request may need reconciliation; do not generate a new request ID to force it through.