Datima.ai

Guides · 5-minute read

Record a batch: the date, the quantity, and where it sits.

How to add, edit, zero and delete a batch in Datima for Shopify: the two required fields, lot codes, bins and received dates, and what each one drives.

What a batch is

A batch is a quantity of one variant that expires on one date: 24 tubs of yogurt best before 14 March, 12 bottles of vitamin D that expire in June. Shopify counts how many units you have; Datima records which units, by date. The dashboard, the weekly digest, the deductions on every sale, the markdowns and the write-off all start from the batches you record here.

Two fields are required: the expiry date and the quantity. Everything else — lot code, bin, received date, note — is optional and never in the way.

Add a batch by hand

Open Products, find the product (search by product, SKU or barcode) and press Add batch on its row. The same button sits on the product's own page, next to its batches.

The product list with a callout: pick any product and press Add batch.

The form asks for the date and how many units arrived. The first time, it explains what each field drives: the expiry date drives every alert and the order sales are deducted in; quantity is how many units arrived; lot code, bin and note are optional.

The Add batch form with expiry date, quantity and an optional lot code filled in.
FieldRequiredWhat it does
Expiry dateyesDecides which dashboard card the batch lands on, the order sales deduct in, the markdown tier and when Write off appears.
QuantityyesUnits received. Sales count down from it; the remaining figure is what the dashboard values.
Lot codenoThe code on the carton. Shown on every row, in the shipment history and in the digest.
BinnoWhere it sits inside the location (COLD-A-11), for whoever picks.
ReceivednoThe delivery date. Used when you correct a shipment: only batches received on or before the sale are offered.
NotenoFree text for you.

Save. The first time, the app recaps what happens from now on: which card the batch shows under, that sales will come off the batch that expires first, and that the variant now carries its earliest expiry date as a metafield your theme can read.

The success step after the first batch: a recap of what was saved and three lines on what happens from now on.

Dates in the past are allowed. Stock that has already expired shows under Expired on the dashboard — finding it is often why people install the app.

Where your batches show

On the product list, every row carries a badge for its soonest date — ⚠ 12 Nov 2026 · 29d, ✕ 3 Oct 2026 · overdue, or Not set — and Show batches opens the rows underneath, one line per batch: A3155 · expires 12 Nov 2026 · 18 of 24, with its bin when it has one. The product's own page lists the same batches with Edit, the shipment history under them, and the line Tracked 42 · Shopify 42 · ✓ In sync that says whether your batches add up to Shopify's count.

A product row in the list with Show batches open: Vitamin D3 2000 IU 120 capsules · 2 batches · 51 units · bins: B2, and under it each batch with its expiry date, remaining of received and bin B2; the expired batch has a Write off button.
Show batches opens one line per batch under the row.

Edit a batch

Press Edit on the batch. Change the date and the batch moves to its new card and its new place in the deduction order; nothing moves on Shopify. Change the quantity when a count was wrong. Adding or editing a batch never changes Shopify's inventory — Datima reads that count and compares, it does not write it. The one exception is Write off, which you press on purpose.

Zero, or delete

Two ways to end a batch, and they mean different things:

  • Zero… sets the remaining quantity to zero and keeps the history: every shipment that came off the batch still points at it. This is what used up means. A batch that has had sales cannot be deleted; the app offers to zero it instead.
  • Delete removes the batch from Datima. Shopify's inventory does not change — the units are still counted as available there. To take expired units out of Shopify, use Write off instead; the dialog says so.

When you have many

One at a time is for the odd delivery. For a whole catalog, import a spreadsheet that already lists your products; for one delivery across many products, use the bulk bar. Both go through the same rules as the form, so a batch is a batch whichever way it came in.

Questions? support@datima.ai · Last updated 14 October 2026