Shopify Engineeringtactical 4 min

How Do We Validate ERP Price Updates Before They Reach Shopify?

Validate ERP price feeds by variant identity, target catalog, currency, approved changes and freshness before controlled Shopify writes and read-back QA.

By Samuel Noriega · November 26, 2026

Validate the identity, commercial context and expected change before a price writer runs. A correctly formatted decimal is not enough: the same product can have a base price, a market price and negotiated B2B prices. Sending an approved amount to the wrong catalog is still a pricing incident.

This is a pre-publication validation procedure for established merchants operating ERP-driven pricing. Use the B2B pricing guide for catalog strategy and the Markets currency guide for shopper-facing currency and checkout checks. Do not combine those responsibilities into an undocumented spreadsheet formula.

Document the price contract

For every feed, record the source system, field owner, target shop, stable variant ID, target price list or base-price field, currency, unit, tax treatment and effective time. Include the version or digest of the input. State whether blank means reject, preserve the current price or remove an override. Never allow an integration library's default to decide that business rule.

Shopify's fixed-price mutation reference explains that a fixed-price write replaces the existing fixed price for the addressed variant on that price list. It is not a generic write to every price a shopper might see. The B2B catalog documentation describes product inclusion, adjustments and fixed prices. Resolve the actual catalog assignment before authorizing a target.

Validation layerReject or hold whenEvidence for approval
IdentityMissing, duplicate or ambiguous variant mappingOne approved source-to-target mapping
ContextWrong shop, currency or pricing destinationNamed target and catalog/market owner
AmountInvalid precision, unapproved zero or invalid signDecimal amount under the declared policy
ChangeDifference exceeds the merchant's approved boundaryReviewed exception or accepted comparison
FreshnessSource or current target changed after reviewNew comparison and approval

Thresholds are merchant policy, not a universal Shopify percentage. A large approved clearance reduction may be legitimate; a small change in the wrong currency is not.

Produce an immutable dry-run diff

Read the current target values and resolve all mappings without writing. Generate a row-level before/after report containing the source version, destination identity and reason for the change. Separate intended writes, no-ops and rejected rows. Summarize changed-record counts by currency and pricing destination so an unexpected entire-catalog update is visible.

Have the commercial owner approve that exact input and diff. Before execution, recheck the source version and target values. A comparison performed before a merchandiser edited the catalog cannot authorize overwriting their newer work. Use a supported platform concurrency mechanism when available; otherwise enforce a controlled ownership window and revalidation. A local hash check alone cannot make a remote API write atomic.

Work through a rejection example

Synthetic validation exercise: the approved current price is USD 100.00 and the proposed amount is USD 110.00. The proposed change is 10%. Under a fictional 15% review boundary, that row passes the magnitude check only. It still needs the correct target and freshness checks.

A proposed USD 160.00 price is a 60% change and must be held under that same fictional policy. An amount of 110.00 labeled EUR fails the currency check even though the number resembles the approved proposal. A blank, zero or duplicate mapping must follow its explicit rejection policy; do not silently convert it into a valid discounted price.

For a current price of zero, a percentage comparison is undefined. Route it through a separately approved absolute-change rule or manual review. Use decimal arithmetic and the currency's precision policy, not binary floating-point comparisons.

Release in a controlled scope

Validate a small approved product and buyer cohort before widening the run. Handle API-level failures and mutation user errors explicitly. Record successful and failed rows separately; an HTTP success response is not proof that every requested price changed. Retry only the unresolved operations after verifying their current state.

Read the written values back, then test actual shopper contexts. Confirm product, cart and checkout prices for the intended market or B2B location, including quantity breaks and discounts where relevant. The stored value can be correct while a different catalog assignment controls the buying journey.

Make recovery specific

Keep a before snapshot of the exact values your job owns. Restoration requires a new comparison and approval if another writer has changed the target since the release. Do not restore an entire product export to repair a few prices or recreate removed overrides without understanding their meaning.

Acceptance evidence should identify the approved input, rejected rows, executed operations, read-back results and buyer checks. Keep the original feed and audit trail access-controlled; customer-specific negotiated prices are not public troubleshooting data.

For repeated mapping exceptions or competing price writers, Shugert's development team can define and implement the contract. Request a scoped integration review with your redacted feed and target rules. A cosmetic storefront task belongs in a bounded implementation workflow; authority over a full ERP pricing feed requires explicit engineering and commercial sign-off.

Ship complex Shopify builds without breaking the store

Fashionable Inc. has relied on us for more than six years across three Shopify Plus stores. Read the case study

Most quotes returned within 1 business day