MetafieldsProduct Metafields

Product Metafields

This page documents all product-level metafields populated by PromoSync. All fields use the psrestful namespace.

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.

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 }}
→ "Bella Canvas Premium"{% 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 %}

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 %}

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 %}

features

Features of the product.

PropertyValue
Namespacepsrestful
Keyfeatures
Typemulti_line_text_field
{% raw %}{{ product.metafields.psrestful.features }}
→ "Side-seamed
Shoulder-to-shoulder taping
Tear-away label"{% endraw %}

care_instructions

Care instructions for the product.

PropertyValue
Namespacepsrestful
Keycare_instructions
Typemulti_line_text_field
{% raw %}{{ product.metafields.psrestful.care_instructions }}
→ "Machine wash cold, tumble dry low"{% endraw %}

Decoration & Imprint

location_decorations

An array containing a list of locations with applicable decoration methods.

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 %}

charge_type

Charge type of the product (e.g., “Setup”, “Run Charge”, “Order”).

PropertyValue
Namespacepsrestful
Keycharge_type
Typesingle_line_text_field
{% raw %}{{ product.metafields.psrestful.charge_type }}
→ "Setup"{% 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 %}

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
extra_idintegerExtra ID from PSRESTful API
brandtextBrand of the product
line_nametextLine Name / Division
effective_datedatetimeDate product becomes available
minimum_quantityintegerMinimum order quantity
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
featuresmulti_line_textProduct features
care_instructionsmulti_line_textCare instructions
location_decorationsjsonDecoration locations and methods
imprint_sizetextImprint size
default_set_up_chargetextDefault setup charge
default_run_chargetextDefault run charge
charge_typetextCharge type
price_expires_datedatetimePrice expiration date
is_cautionbooleanHas cautionary warnings
caution_commentmulti_line_textCaution details
is_hazmatbooleanContains hazardous materials
unspsc_commodity_codeintegerUNSPSC commodity code