Skip to main content

Product Specs Validation

Some products (such as Facebook Social) have additional posting requirements that need to be filled in by the user during the order journey. These posting requirements now support special validation settings that control how strictly the frontend enforces required fields. These settings are configured per product on the backend and can be enabled by contacting your VONQ Partner Account Manager.


Each product returned by the API includes a product_specs object with two boolean properties:


validation_disabled

When set to true, all posting requirement fields for the product are treated as not required on the frontend, regardless of what the backend specifies. The user can leave all fields empty and proceed through the order journey without being blocked by validation errors. If the user does fill in any fields, the data is still included in the order payload as normal.


validation_optional

When set to true, posting requirement fields follow a conditional validation approach:

  • If the user has not filled in any posting requirement fields, all fields are treated as not required and the posting requirements are omitted from the order payload entirely.
  • If the user has filled in at least one field, the original required/optional rules from the backend apply -- the frontend sends the data and the backend validates it as usual.

Both settings default to false, meaning the standard validation behavior applies unless explicitly changed. These settings are transparent to integrators -- no code changes are needed in existing integrations. To enable either setting for specific products, contact your VONQ Partner Account Manager.