Import and export allocation limits

Add, change or remove allocation limits in bulk with a CSV import or export, or on a schedule with the Allocation Limits Import Data Mapper template.

Where to find it: Import CSV / Export CSV in Products > Settings > Allocation Rules, on a product's Allocation Limits section, or the upload and download icons on the account's Allocations tab. For automatic imports, the Allocation Limits Import Data Mapper template. Part of Set allocation limits.

Add, change or remove many allocation limits at once with a CSV file. Each line is one limit. Export first: the exported file uses the same columns, so you can edit it and import it back.

Use it to:

  • Load a supplier's allocation list for all your accounts at the start of a period.
  • Change many limits or reset schedules in a spreadsheet.
  • Remove limits in bulk.
  • Send limits from another system on a schedule with a Data Mapper.

Where to import and export

WhereExport holdsImport reads
Products > Settings > Allocation RulesEvery limit in the storeEvery line
A product's Allocation Limits sectionThat product's limitsOnly lines with the product's SKU (save the product first)
An account's Allocations tabThe account's and its locations' limits (not inherited group limits). Bulk Actions > Export exports only the selected rows.Only lines for the account (its Account ID) or one of its locations

Lines for other products or accounts are ignored and counted in the summary.

Import a file

  1. Click Export CSV (or the download icon) to get the current limits and the column headers.
  2. Edit the file: change lines, add lines, or put Yes in Remove to delete a limit. Lines you don't change stay as they are.
  3. Click Import CSV (or the upload icon) and upload the file.
  4. Zoey checks the whole file first. If any line is refused, the reasons are listed by line and nothing is imported: fix the file and upload it again.
  5. Check the summary: Limits to add, To change, To remove, Unchanged, and ignored lines.
  6. Click Import. Limits save right away, and the list reloads.

Columns

Column headers can be in any casing. Fill one way of naming the product, one way of naming who, and the limit.

Column headerImport valueDetails
SKU (or Product ID)The product's SKUFor a limit on one product. The SKU must match exactly, including case.
Attribute Code + Attribute Value (or Option ID)e.g. brand + AcmeFor a limit on an attribute value. The attribute must be a drop-down. Use Option ID if an attribute has values that differ only in case.
How It AppliesEach or CombinedRequired for an attribute value. Leave empty (or Each) for a SKU.
Customer Group (or Customer Group ID)The group's nameFor a customer group limit. Can't be NOT LOGGED IN.
Account IDThe account's IDFor an account limit.
Account Location IDThe location's ID, as the admin shows itFor a location limit. If Account ID is filled too, it must be the location's account.
Limit Per Period0 or more (decimals allowed)Required, unless you're removing the limit.
Reset EveryA number, e.g. 1Fill all three reset columns, or none.
Reset UnitDay, Week or Month (plural works too)
Reset Start DateYYYY-MM-DDA day in your store's time zone.
RemoveYes / Y to remove, otherwise No or emptyRemoves the limit (its other columns are ignored). Refused if there's no such limit.

Name, Account, Account Location, Used, Quoted, Left and Next Reset are in the export for reading only; the import ignores them.

📘

Leaving the reset columns empty

  • An existing limit keeps its reset.
  • A new limit on a product uses the product's Default Reset (from its Allocation Limits section). If the product has none, the line is refused.
  • A new limit on an attribute value needs the three reset columns.

Example: this file gives every account in the Wholesale group 20 Acme products per month (one shared total), gives account 1024 its own 50, and removes a toaster limit:

SKUAttribute CodeAttribute ValueHow It AppliesCustomer GroupAccount IDLimit Per PeriodReset EveryReset UnitReset Start DateRemove
brandAcmeCombinedWholesale201Month2027-01-01
brandAcmeCombined1024501Month2027-01-01
toaster1024Yes

Why a line is refused

The summary names the line and the reason, for example: both a product and an attribute value (or neither); no customer group, account or location; a customer group and an account on the same line; an unknown SKU, ID or value; an attribute that isn't a drop-down; Combined on a SKU; the same limit twice in one file ("Same limit as line N"); or a limit you don't have permission to change. Importing never changes a product's Limit How Much Accounts Can Order.

Import with a Data Mapper

To import limits from a file on a schedule, create a Data Mapper with:

  • Zoey Object = Products
  • Template Allocation Limits Import (a File Import)

The file uses the same columns as above; if your file has its own column names, map them to the template's fields on the Data Mapper. Zoey checks the whole file first, then saves the valid lines. Refused lines are listed in the Data Mapper's Audit Log ("Line N: ...") with a summary of what was added, changed and removed. See Import and export products with Data Mappers and Set up a Data Mapper.

💬

Ask Zoey AI

Try asking: "What columns do I need to import allocation limits?" or "Why was a line in my allocation limit import refused?"

Related articles


Did this page help you?