Documentation

Using Coil

Inventory and Purchasing

Receive purchases, track expiration, and keep warehouse and machine stock consistent.

Choose the Product

Search Products before creating a new record. Adopt an approved catalog entry when it matches, or create a custom workspace product. Product defaults and targets are specific to your workspace.

Avg. COGS on Products is the weighted average cost of the units you have on hand, the same number Inventory shows. Products with nothing on hand show a dash.

Set Taxable on food and drink products when you create them. States tax only some vending food and drinks: in Pennsylvania, soft, sports, and energy drinks and flavored water are taxable, while candy and gum, plain water, milk, and protein bars are not. Agents must state taxable when they create a food or drink product.

Import Catalog Products

Coil administrators can add approved global catalog products at Admin > Catalog by pasting JSON into Paste JSON or choosing a JSON file. Both inputs accept an array of product objects or an object with a products array, with at most 250 products. Choose Preview JSON for pasted text, review the products, and confirm Add products. Invalid JSON or product fields block the import; editing pasted text clears its preview so it must be reviewed again. Importing catalog products does not create workspace inventory.

Record a Purchase

For receipt items, productSubtotal and salesTaxAmount are per lot. unitCount is units per lot; lotQuantity multiplies the number of lots. Check the receipt's purchase quantity rather than assuming a pack or case equals one sellable unit.

When a linked receipt has tax but a lot has no tax amount, Sales Tax Needs Review asks you to allocate the tax paid to that lot. If no tax was charged for the item, keep the amount at $0.00 and choose Confirm $0.00. This records that you reviewed the lot without marking sales tax as paid; the warning then disappears. Existing lots with positive tax amounts or salesTaxPaid already set remain treated as reviewed.

  1. Select the product, supplier/source, acquisition date, quantity, and price paid.
  2. Record sales tax and shipping separately so the landed cost is allocated across the lot's units.
  3. Set expiration on the lot where applicable. Use documented cost basis when supported by purchase records, or estimated basis with notes when appropriate.
  4. Per-unit costs are usually fractions of a cent, such as $0.67 of sales tax split over 4 units ($0.1675 each). Coil keeps and calculates with the exact amount, and shows it rounded to the cent. A dotted underline and ? icon mark a rounded per-unit amount: hover to see the exact value, or tap it on a phone. That is why a rounded unit price times the quantity can differ from the total by a cent.
  5. Attach an original receipt or create the purchase through the Receipts workflow. Verify units per lot and the number of lots before creating inventory.

Give Items Away

Giveaways remove inventory with reason gifted, without creating a sale, revenue, card fees, or location commissions. No location is required. Zero-tax events are retained for history; additional liability appears in Use Tax Owed and the period CSV. This is Coil's tracking rule, not tax advice.

Agents use the stock-removal tools, which also record shrink, expiry, damage, theft, and personal use, and require inventory:remove (included only in the Vending platform sync preset; other keys must add it). Changed units or purchase-tax evidence invalidate the preview. A mistakenly removed unit can be returned to stock in Inventory, removing its use-tax event. Existing giveaway records are not recalculated.

  1. Expand a lot's units in Inventory and choose Mark Removed, then Given away. Select the date and review the additional use tax before saving.
  2. If purchase sales tax was already recorded on the lot, the suggested additional use tax is zero. Otherwise Coil applies the selected use-tax rate to the unit's purchase cost, not its retail price. You can review or override the suggestion in the form.
  3. For several units through an agent, select exact in-stock IDs with list_inventory, then call preview_stock_removal with unitIds, reason gifted, eventDate, and optional taxRate or notes. Review the purchase-tax evidence and additionalUseTax, then approve apply_stock_removal using previewId and requestId within 10 minutes.

Storage and Placement

Unassigned in-stock units are warehouse inventory. Assigned units belong to a machine and its location. Use transfers or a restock visit to move existing stock; receiving the same purchase again creates additional units.

Agent-driven movement uses exact unit IDs and preview/apply tools. It does not record sales, change cost basis, or rewrite sold history.

Defaults Versus Existing Stock

Changing a product's default sale price affects future inventory defaults. Existing units retain their own list prices until you change them separately.

For agents, read get_product, update_product with its current updatedAt, then select exact in-stock units for preview_inventory_price and set_inventory_list_price. Sold and removed records are excluded from agent repricing.

Fix a Lot's Unit Count

If a purchase was entered with the wrong split, such as one box recorded as 1 unit instead of 36 packs, have an agent with inventory:lot_edit correct it with preview_lot_count, review the preview, then apply_lot_count. Raising the count adds units to the warehouse. Lowering it takes away unsold warehouse units only, as a count correction rather than shrink, so shrink and use-tax reports stay real loss.

The lot's total cost stays the same unless you give a corrected product subtotal, and it is spread across the new count. Every unit's cost changes, including units already sold, so past profit can shift slightly; the agent must confirm that before previewing.

Reclassify Units to Another Product

If units in stock are really a different product, such as look-alike flavors the HaHa camera mixes up, or flavors you sell as one assorted product, have an agent with inventory:lot_edit move them with preview_unit_reclassify, review the before and after counts per product and machine, then apply_unit_reclassify. Pick exact units, or a product and a quantity; unsold warehouse units are used first unless you name a machine.

Only the product changes. Each unit keeps its purchase lot, cost, list price, and place, so profit is unaffected, and a lot may then hold units of more than one product while still showing the product it was purchased as. Sold and removed units are never changed.

Which fix to use: reclassify when the units exist but are the wrong product, correct the lot count (preview_lot_count) when a receipt was entered with the wrong number of units, and remove stock (preview_stock_removal) only for real loss such as shrink, theft, damage, or gifts. For an assorted product, map each HaHa flavor to the same Coil product with set_sales_mapping; sales and HaHa stock for all of them then add up under that product.

Cost and History Corrections

Lot-cost corrections recalculate unit cost basis, including for sold/removed units, and can change reported COGS and historical profit. Review the impact before editing costs. Agents can update a lot with its current expectedUpdatedAt; changes to productSubtotal, salesTaxAmount, or shippingAmount also require confirmHistoricalImpact:true. The transaction recalculates every unit's cost basis and returns the new total/unit cost. Historical sale prices and stock removals are not currently editable through agent tools.

Consume an Item Yourself

The default uses the purchase lot's existing salesTaxPaid flag and salesTaxAmount. A paid flag or positive purchase-tax amount suggests no additional use tax. If neither is recorded, personal use and quality checks default to use tax at the selected rate (0.06 by default). Losses such as expiration or damage do not default to use tax.

Use tax is calculated on the unit's cost basis before its allocated purchase sales tax, not its selling price. The dialog shows the amount before saving. An explicit checkbox override remains available, but no cross-state rate/credit calculation is inferred. These defaults assume paid purchase tax already satisfied the applicable liability and has not been refunded.

The server re-reads the workspace lot when saving. Correct missing purchase-tax data on the lot first; receipt tax that has not been allocated to the lot is not automatically treated as that unit's paid tax. Reverting the unit to in-stock clears its removal details and consumption event.

  1. Expand the product/lot and its units in Inventory, then choose Mark Removed on the consumed unit.
  2. Select Personal use, enter the consumption date, and review the suggested additional use tax.
  3. Save the removal. The item leaves stock without recording revenue or a sale; its removal history is retained even when tax owed is zero.