MetafieldsProduct Metafields

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.

PropertyValue
Namespacepsrestful
Keysupplier_code
Typesingle_line_text_field
{% raw %}{{ product.metafields.psrestful.supplier_code }}
→ "SanMar"{% endraw %}

product_id

Product ID from PromoStandards.

PropertyValue
Namespacepsrestful
Keyproduct_id
Typesingle_line_text_field
{% raw %}{{ product.metafields.psrestful.product_id }}
→ "3001"{% endraw %}

extra_id

Extra ID from PSRESTful API.

PropertyValue
Namespacepsrestful
Keyextra_id
Typenumber_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.

PropertyValue
Namespacepsrestful
Keybrand
Typesingle_line_text_field
{% raw %}{{ product.metafields.psrestful.brand }}
→ "Bella + Canvas"{% endraw %}

line_name

Line Name / Division to which this product belongs.

PropertyValue
Namespacepsrestful
Keyline_name
Typesingle_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).

PropertyValue
Namespacepsrestful
Keyeffective_date
Typedate_time
{% raw %}{{ product.metafields.psrestful.effective_date | date: "%B %d, %Y" }}
→ "January 15, 2024"{% endraw %}

minimum_quantity

Minimum quantity to order.

PropertyValue
Namespacepsrestful
Keyminimum_quantity
Typenumber_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.

PropertyValue
Namespacepsrestful
Keyblank_minimum_quantity
Typenumber_integer
{% raw %}{{ product.metafields.psrestful.blank_minimum_quantity }}
→ 12{% endraw %}

lead_time

Lead time in days.

PropertyValue
Namespacepsrestful
Keylead_time
Typenumber_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.

PropertyValue
Namespacepsrestful
Keyis_on_demand
Typeboolean
{% 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.

PropertyValue
Namespacepsrestful
Keyis_rush_service
Typeboolean
{% raw %}{% if product.metafields.psrestful.is_rush_service %}
  <span class="badge">Rush Available</span>
{% endif %}{% endraw %}

export

Product status for export.

PropertyValue
Namespacepsrestful
Keyexport
Typeboolean
{% 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.

PropertyValue
Namespacepsrestful
Keystatus
Typesingle_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.

PropertyValue
Namespacepsrestful
Keyprimary_material
Typesingle_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.

PropertyValue
Namespacepsrestful
Keycountry_of_origin
Typesingle_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.

PropertyValue
Namespacepsrestful
Keymarketing_points
Typejson
[
  {"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.

PropertyValue
Namespacepsrestful
Keylocation_decorations
Typejson
[
  {
    "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.

PropertyValue
Namespacepsrestful
Keyimprint_size
Typesingle_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.

PropertyValue
Namespacepsrestful
Keydefault_set_up_charge
Typesingle_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.

PropertyValue
Namespacepsrestful
Keydefault_run_charge
Typesingle_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.

PropertyValue
Namespacepsrestful
Keyprice_expires_date
Typedate_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.

PropertyValue
Namespacepsrestful
Keymsrp_min
Typenumber_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.

KeyTypeDescription
method_slugtextDecoration method, for example screen-print or embroidery
charge_kindtextCharge kind, for example setup, run, extra_location or pms_match
default_variant_idvariant referenceVariant 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.

PropertyValue
Namespacepsrestful
Keyis_caution
Typeboolean
{% 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.

PropertyValue
Namespacepsrestful
Keycaution_comment
Typemulti_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.

PropertyValue
Namespacepsrestful
Keyis_hazmat
Typeboolean
{% 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.

PropertyValue
Namespacepsrestful
Keyunspsc_commodity_code
Typenumber_integer
{% raw %}{{ product.metafields.psrestful.unspsc_commodity_code }}
→ 53102503{% endraw %}

Complete Metafield List

KeyTypeDescription
supplier_codetextPromoStandards supplier code
product_idtextProduct ID from PromoStandards. Filterable in the admin product list
extra_idintegerExtra ID from the PSRESTful API
statustextSupplier lifecycle status
brandtextBrand of the product
line_nametextLine Name / Division
effective_datedatetimeDate product becomes available
minimum_quantityintegerMinimum order quantity
blank_minimum_quantityintegerMinimum for the blank version (staff-enabled blank and sample sales only)
lead_timeintegerLead time in days
is_on_demandbooleanAvailable on demand
is_rush_servicebooleanRush service available
exportbooleanProduct export status
primary_materialtextPrimary material
country_of_origintextCountry of origin
marketing_pointsjsonSupplier marketing points
location_decorationsjsonDecoration locations and methods
imprint_sizetextImprint size
default_set_up_chargetextDefault setup charge
default_run_chargetextDefault run charge
price_expires_datedatetimePrice expiration date
msrp_mindecimalLowest variant MSRP (only with Save MSRP Metafields)
is_cautionbooleanHas cautionary warnings
caution_commentmulti_line_textCaution details
is_hazmatbooleanContains hazardous materials
unspsc_commodity_codeintegerUNSPSC commodity code
method_slug, charge_kind, default_variant_idvariousDecoration 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.