Dropshipping Pricing & Content Rule Validator
dsers_rules_validateValidate and normalize dropshipping rules for pricing, content, and images before product import. Check for errors, warnings, and see exactly which rules will be applied to ensure compatibility with your store.
Instructions
Check and normalize a rules object against the provider's capabilities before importing. Use this to verify pricing, content, and image rules are valid and see exactly which ones will be applied. Returns: effective_rules_snapshot (what will actually be applied), warnings (adjustments made), errors (blocking issues that must be fixed before calling dsers_product_import). Extreme pricing values (multiplier >100x, fixed_markup >$500, fixed_price >$10,000) produce warnings. HTML description fields are validated against script injection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | Rules as a JSON string. Top-level keys: pricing, content, images, variant_overrides, option_edits. Pricing modes: fixed_price (exact dollar amount for all), multiplier (cost × ratio), fixed_markup (cost + dollars). Example: {"pricing": {"mode": "fixed_price", "fixed_price": 9.99}, "content": {"title_prefix": "[US] "}, "images": {"keep_first_n": 5}} | |
| target_store | No | Store ID or display name from dsers_store_discover. Some rule capabilities vary by store. |