Regex pattern of order form and get product responses:

Topic summary

A developer is requesting detailed specifications for two Shopify-related components:

Order Form Validation Requirements:

  • Regex patterns and validation rules needed for form fields
  • Specific criteria requested include: acceptable character types (numeric/alphabet/alphanumeric/special characters like _, -, etc.), minimum/maximum character limits (0-255), accepted patterns (phone formats like 09XXXXXXXX, email formats, etc.), and required field indicators
  • Fields to validate: quantity, variant_id, customer details (first/last name, email), shipping address components (name, address, phone, city, province, country, zip), shipping line information (title, price), and financial status

Product API Response Fields:

  • Complete list of fields expected from a “Get Product” API response
  • Includes product-level data (ID, title, body_html, vendor, product_type, timestamps)
  • Image-related fields (IDs, source URLs, dimensions, alt text, position)
  • Variant details (pricing, SKU, inventory quantities, weight, barcode, options, fulfillment service)
  • Option configurations (name, position, values)
  • Administrative metadata (GraphQL admin IDs, published scope, template suffix, handle, status, tags)

Status: The question remains unanswered with no responses yet.

Summarized with AI on November 16. AI used: claude-sonnet-4-5-20250929.

Hi Everyone,

Kindly asking on where and how to get the following items listed below

  1. Regex pattern of order form and get product responses:

  2. List of Validations needed:

  3. Acceptable characters – numeric/alphabet/alphanumeric/special character [ _,-]

  4. Minimum number of characters – ie. 0

  • Maximum number of characters – ie. 255
  1. Accepted Pattern – ie. 09XXXXXXXX, [email removed], (02) – 8888 - 8888

  2. Required – true/false

  3. Order Form List of Fields

  4. Quantity

  5. Variant_id

  • Customer First_name
  1. Customer Last_name
  2. Customer Email
  3. Shipping_Address First_name
  • Shipping_Address Last_name
  • Shipping_Address Address1
  1. Shipping_Address Phone
  2. Shipping_Address City
  3. Shipping_Address Province
  • Shipping_Address Country
  • Shipping_Address Zip
  • Shipping_lines title
  1. Shipping_lines price
  • Financial Status
  1. Get Product Response Fields
  2. Product Id
  3. Product Title
  • Product Body_html
  1. Product Vendor
  2. Product Product_type
  3. Product Created_at
  • Product Handle
  • Product Updated_at
  1. Product Published_at
  2. Product Template_suffix
  3. Product Published_scope
  • Product Tags
  • Product Status
  • Product Admin_graphql_api_id
  1. Variant id
  • Variant product_id
  • Variant title
  • Variant price
  • Variant sku
  1. Variant position
  • Variant inventory_policy
  • Variant compare_at_price
  • Variant fulfillment_service
  • Variant inventory_management
  • Variant option1/2/3
  • Variant created_at
  • Variant updated_at
  • Variant taxable
  • Variant barcode
  • Variant grams
  • Variant image_id
  • Variant weight
  • Variant weight_unit
  • Variant inventory_item_id
  • Variant inventory_quantity
  • Variant old_inventory_quantity
  • Variant requires_shipping
  • Variant admin_graphql_api_id
  • Option id
  1. Option product id
  • Option name
  • Option position
  • Values
  • Image id
  • Image product_id
  • Image position
  • Image created_at
  • Image updated_at
  • Image alt
  1. Image width
  2. Image height
  • Image src
  • Image variant_ids
  • Image admin_graphql_api_id