Identifiers¶
SanMar names the same item several ways, and each service accepts only some of them. Getting these right is most of the work of a SanMar integration.
Colors: catalog color, not color name¶
Every SanMar product has two color names, and only one of them works in a request.
In the SDK |
What it is |
Where SanMar calls it that |
Example |
|---|---|---|---|
|
SanMar’s catalog or mainframe color. Every lookup and every order uses it. |
|
|
|
The full display name, for showing to people. SanMar rejects it in requests. |
|
|
The SDK never mixes the two: a field called catalog_color is always the catalog color,
everywhere. When SanMar cannot find a style and color, the error says so and reminds you
which column to use.
Note
An integration that reads colors from the COLOR_NAME column, of any SanMar file,
and then asks the web services about them will fail on every color whose display name
differs from its catalog name. SanMar_SDL_D.csv, which is on the SFTP server but in
none of SanMar’s guides, is one such file. Read SanMar_SDL_N.csv (or
SanMar_EPDD.csv) and use SANMAR_MAINFRAME_COLOR instead; with the SDK’s
readers, that is catalog_color.
Sizes¶
Sizes are SanMar’s own labels (S, XL, 2XL, OSFA, pant sizes such as
3232), and every file and service uses the same ones. PromoStandards splits them into
a labelSize and, for sizes outside its fixed list, CUSTOM plus a customSize;
size puts them back together.
Keys¶
In the SDK |
What it is |
Where it is accepted |
|---|---|---|
|
The style number, as printed in the catalog ( |
Lookups by style; PromoStandards everywhere |
|
SanMar’s key for one style, color and size. The inventory key is not the style number. |
SanMar’s own pricing and purchase order services; SFTP order files accept nothing else |
|
Also one style, color and size: the inventory key with the size index appended. PromoStandards calls it the part id. |
PromoStandards lookups and orders |
A style, catalog color and size spelled out. |
SanMar’s own purchase order service |
Every SanMar product file carries all of these, so any of them can be looked up from the others. The SDK never derives a unique key from an inventory key and size index; it always reads the one SanMar sends.
Warehouses¶
Warehouse numbers SanMar’s warehouses as SanMar does. The same number
is the warehouse’s PromoStandards FOB id, and its code is the
will-call code for picking an order up there.
Number |
Warehouse |
Will-call code |
|---|---|---|
1 |
Seattle, WA |
|
2 |
Cincinnati, OH |
|
3 |
Dallas, TX |
|
4 |
Reno, NV |
|
5 |
Robbinsville, NJ |
|
6 |
Jacksonville, FL |
|
7 |
Minneapolis, MN |
|
12 |
Phoenix, AZ |
|
31 |
Richmond, VA |
|
A warehouse SanMar opens after this SDK was released still parses, as a plain int.