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
| Where | Export holds | Import reads |
|---|---|---|
| Products > Settings > Allocation Rules | Every limit in the store | Every line |
| A product's Allocation Limits section | That product's limits | Only lines with the product's SKU (save the product first) |
| An account's Allocations tab | The 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
- Click Export CSV (or the download icon) to get the current limits and the column headers.
- 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.
- Click Import CSV (or the upload icon) and upload the file.
- 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.
- Check the summary: Limits to add, To change, To remove, Unchanged, and ignored lines.
- 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 header | Import value | Details |
|---|---|---|
| SKU (or Product ID) | The product's SKU | For a limit on one product. The SKU must match exactly, including case. |
| Attribute Code + Attribute Value (or Option ID) | e.g. brand + Acme | For 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 Applies | Each or Combined | Required for an attribute value. Leave empty (or Each) for a SKU. |
| Customer Group (or Customer Group ID) | The group's name | For a customer group limit. Can't be NOT LOGGED IN. |
| Account ID | The account's ID | For an account limit. |
| Account Location ID | The location's ID, as the admin shows it | For a location limit. If Account ID is filled too, it must be the location's account. |
| Limit Per Period | 0 or more (decimals allowed) | Required, unless you're removing the limit. |
| Reset Every | A number, e.g. 1 | Fill all three reset columns, or none. |
| Reset Unit | Day, Week or Month (plural works too) | |
| Reset Start Date | YYYY-MM-DD | A day in your store's time zone. |
| Remove | Yes / Y to remove, otherwise No or empty | Removes 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:
| SKU | Attribute Code | Attribute Value | How It Applies | Customer Group | Account ID | Limit Per Period | Reset Every | Reset Unit | Reset Start Date | Remove |
|---|---|---|---|---|---|---|---|---|---|---|
| brand | Acme | Combined | Wholesale | 20 | 1 | Month | 2027-01-01 | |||
| brand | Acme | Combined | 1024 | 50 | 1 | Month | 2027-01-01 | |||
| toaster | 1024 | Yes |
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 AITry asking: "What columns do I need to import allocation limits?" or "Why was a line in my allocation limit import refused?"
Related articles
Updated about 3 hours ago
