Product Metafields
This page lists the product-level metafields PromoSync writes. All of them use the psrestful namespace. A key is only written when the supplier provides a value for it. Google Merchant fields are on their own page: Google Merchant Fields.
Basic Information
supplier_code
PromoStandards supplier code.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | supplier_code |
| Type | single_line_text_field |
{% raw %}{{ product.metafields.psrestful.supplier_code }}
→ "SanMar"{% endraw %}product_id
Product ID from PromoStandards.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | product_id |
| Type | single_line_text_field |
{% raw %}{{ product.metafields.psrestful.product_id }}
→ "3001"{% endraw %}extra_id
Extra ID from PSRESTful API.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | extra_id |
| Type | number_integer |
{% raw %}{{ product.metafields.psrestful.extra_id }}
→ 12345{% endraw %}brand
Brand of the product, using PSRESTful’s standard spelling of the brand name when it has one, else the supplier’s own.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | brand |
| Type | single_line_text_field |
{% raw %}{{ product.metafields.psrestful.brand }}
→ "Bella + Canvas"{% endraw %}line_name
Line Name / Division to which this product belongs.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | line_name |
| Type | single_line_text_field |
{% raw %}{{ product.metafields.psrestful.line_name }}
→ "Premium Collection"{% endraw %}Availability & Ordering
effective_date
The date this product initially becomes available from the supplier (ISO 8601 format).
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | effective_date |
| Type | date_time |
{% raw %}{{ product.metafields.psrestful.effective_date | date: "%B %d, %Y" }}
→ "January 15, 2024"{% endraw %}minimum_quantity
Minimum quantity to order.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | minimum_quantity |
| Type | number_integer |
{% raw %}{{ product.metafields.psrestful.minimum_quantity }}
→ 24{% endraw %}blank_minimum_quantity
Minimum order quantity for the blank (undecorated) version of the product. Only written on shops where the PromoSync team has turned on blank and sample sales and whose default configuration is Decorated.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | blank_minimum_quantity |
| Type | number_integer |
{% raw %}{{ product.metafields.psrestful.blank_minimum_quantity }}
→ 12{% endraw %}lead_time
Lead time in days.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | lead_time |
| Type | number_integer |
{% raw %}{% assign lead = product.metafields.psrestful.lead_time %}
{% if lead %}
Ships in {{ lead }} business days
{% endif %}{% endraw %}is_on_demand
Product is available on demand.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | is_on_demand |
| Type | boolean |
{% raw %}{% if product.metafields.psrestful.is_on_demand %}
<span class="badge">Made to Order</span>
{% endif %}{% endraw %}is_rush_service
Product is available as a rush service.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | is_rush_service |
| Type | boolean |
{% raw %}{% if product.metafields.psrestful.is_rush_service %}
<span class="badge">Rush Available</span>
{% endif %}{% endraw %}export
Product status for export.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | export |
| Type | boolean |
{% raw %}{{ product.metafields.psrestful.export }}
→ true{% endraw %}status
Lifecycle status of the product at the supplier. For stores with discontinued handling enabled, PromoSync keeps this value current with a daily check and uses it to decide whether the product should still receive inventory and price updates. See Discontinued Products for the full behavior.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | status |
| Type | single_line_text_field |
Possible values: active, draft, closeout, discontinued. When the metafield is absent, PromoSync treats the product as active.
{% raw %}{% if product.metafields.psrestful.status == "discontinued" %}
<span class="badge badge-discontinued">Discontinued</span>
{% endif %}{% endraw %}Product Details
primary_material
Primary material of construction.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | primary_material |
| Type | single_line_text_field |
{% raw %}{{ product.metafields.psrestful.primary_material }}
→ "100% Airlume combed and ring-spun cotton"{% endraw %}country_of_origin
Country of origin of the product.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | country_of_origin |
| Type | single_line_text_field |
{% raw %}{{ product.metafields.psrestful.country_of_origin }}
→ "Honduras"{% endraw %}marketing_points
The supplier’s marketing points (bullet points, materials, additional info), in their PromoStandards shape. Points with no text are skipped.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | marketing_points |
| Type | json |
[
{"pointType": "Bullet Point", "pointCopy": "6-panel structured cap"},
{"pointType": "Bullet Point", "pointCopy": "Adjustable snap closure"}
]{% raw %}{% assign points = product.metafields.psrestful.marketing_points.value %}
{% if points %}
<ul>
{% for point in points %}<li>{{ point.pointCopy }}</li>{% endfor %}
</ul>
{% endif %}{% endraw %}Decoration & Imprint
location_decorations
An array containing a list of locations with applicable decoration methods.
After you run Enrich Location Decorations, each decoration also carries pointers to the shared PromoSync decoration products and variants for its charges (for example setupFeeVariantId and runChargeVariantId). Update Metafields rewrites this metafield from supplier data and drops those pointers, so run Enrich Location Decorations again afterwards.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | location_decorations |
| Type | json |
[
{
"locationId": 70,
"decorations": [
{
"default": false,
"decorationId": 950,
"priceIncludes": false,
"decorationName": "Embroidery",
"maxImprintColors": 99
}
],
"locationName": "FRONT",
"locationRank": 2,
"maxDecoration": 0,
"minDecoration": 0,
"defaultLocation": false,
"decorationsIncluded": 0
}
]{% raw %}{% assign locations = product.metafields.psrestful.location_decorations.value %}
{% if locations %}
<div class="decoration-options">
{% for location in locations %}
<div class="location">
<strong>{{ location.locationName }}</strong>
<ul>
{% for dec in location.decorations %}
<li>{{ dec.decorationName }}{% if dec.maxImprintColors %} (up to {{ dec.maxImprintColors }} colors){% endif %}</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
{% endif %}{% endraw %}imprint_size
The imprint size for decoration.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | imprint_size |
| Type | single_line_text_field |
{% raw %}{{ product.metafields.psrestful.imprint_size }}
→ "4\" x 4\""{% endraw %}default_set_up_charge
The default setup charge for this product. Can be a textual description.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | default_set_up_charge |
| Type | single_line_text_field |
{% raw %}{{ product.metafields.psrestful.default_set_up_charge }}
→ "$50.00" or "50.00(G)"{% endraw %}default_run_charge
The default run charge for this product. Can be a textual description.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | default_run_charge |
| Type | single_line_text_field |
{% raw %}{{ product.metafields.psrestful.default_run_charge }}
→ "$2.50" or "Included"{% endraw %}Pricing
price_expires_date
The date this product’s pricing expires.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | price_expires_date |
| Type | date_time |
{% raw %}{% assign expires = product.metafields.psrestful.price_expires_date %}
{% if expires %}
<p class="price-notice">Pricing valid until {{ expires | date: "%B %d, %Y" }}</p>
{% endif %}{% endraw %}msrp_min
The lowest supplier list price (MSRP) across the product’s variants, in your store currency. Only written when Save MSRP Metafields is on in PromoSync settings, and only when at least one variant has a list price. Usable in product cards, collection filters and automated collection rules.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | msrp_min |
| Type | number_decimal |
{% raw %}{% assign msrp = product.metafields.psrestful.msrp_min %}
{% if msrp %}MSRP from {{ msrp.value | times: 100 | money }}{% endif %}{% endraw %}Decoration Products
PromoSync creates one shared product per decoration method and charge kind (vendor PromoSync), for example a Screen Print setup fee. These products carry their own metafields. See Decoration Listings.
| Key | Type | Description |
|---|---|---|
method_slug | text | Decoration method, for example screen-print or embroidery |
charge_kind | text | Charge kind, for example setup, run, extra_location or pms_match |
default_variant_id | variant reference | Variant the theme charges when a product has no pricing of its own for this method and kind |
These three have storefront access, so the theme’s decoration pricing script can read them through the Storefront API.
Compliance & Safety
is_caution
Cautionary status to review for specific warnings about using product data.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | is_caution |
| Type | boolean |
{% raw %}{% if product.metafields.psrestful.is_caution %}
<div class="caution-notice">
⚠️ Please review product warnings before ordering
</div>
{% endif %}{% endraw %}caution_comment
Caution details and warnings.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | caution_comment |
| Type | multi_line_text_field |
{% raw %}{% assign caution = product.metafields.psrestful.caution_comment %}
{% if caution %}
<div class="warning">{{ caution }}</div>
{% endif %}{% endraw %}is_hazmat
Contains hazardous material. A nil value indicates this is unknown or the data is not available from the supplier.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | is_hazmat |
| Type | boolean |
{% raw %}{% if product.metafields.psrestful.is_hazmat %}
<div class="hazmat-warning">
⚠️ This product contains hazardous materials
</div>
{% endif %}{% endraw %}unspsc_commodity_code
The United Nations Standard Products and Services Code (UNSPSC) that best describes this product. These are the UNSPSC “Commodity” codes. For more information, refer to unspsc.org.
| Property | Value |
|---|---|
| Namespace | psrestful |
| Key | unspsc_commodity_code |
| Type | number_integer |
{% raw %}{{ product.metafields.psrestful.unspsc_commodity_code }}
→ 53102503{% endraw %}Complete Metafield List
| Key | Type | Description |
|---|---|---|
supplier_code | text | PromoStandards supplier code |
product_id | text | Product ID from PromoStandards. Filterable in the admin product list |
extra_id | integer | Extra ID from the PSRESTful API |
status | text | Supplier lifecycle status |
brand | text | Brand of the product |
line_name | text | Line Name / Division |
effective_date | datetime | Date product becomes available |
minimum_quantity | integer | Minimum order quantity |
blank_minimum_quantity | integer | Minimum for the blank version (staff-enabled blank and sample sales only) |
lead_time | integer | Lead time in days |
is_on_demand | boolean | Available on demand |
is_rush_service | boolean | Rush service available |
export | boolean | Product export status |
primary_material | text | Primary material |
country_of_origin | text | Country of origin |
marketing_points | json | Supplier marketing points |
location_decorations | json | Decoration locations and methods |
imprint_size | text | Imprint size |
default_set_up_charge | text | Default setup charge |
default_run_charge | text | Default run charge |
price_expires_date | datetime | Price expiration date |
msrp_min | decimal | Lowest variant MSRP (only with Save MSRP Metafields) |
is_caution | boolean | Has cautionary warnings |
caution_comment | multi_line_text | Caution details |
is_hazmat | boolean | Contains hazardous materials |
unspsc_commodity_code | integer | UNSPSC commodity code |
method_slug, charge_kind, default_variant_id | various | Decoration products only |
PromoSync also creates definitions for features, care_instructions and charge_type, but does not write values to them today. Don’t build theme code on those keys.