API:Validation

From HasOffers

Data validation is performed every time an object is created or updated through the Api.

Data Requirements

When doing an Api request that requires validation, make sure to check the appropriate Model page for specific requirements regarding the validation of that object.

Validation Errors

When Validation fails, it is commonly for one or more of the following reasons:

  • A required field is empty or not set.
  • An optional field is set but has no value (and a value is required if set).
  • The provided value is not formatted correctly.
  • The provided value is not an acceptable value.
  • The field's value must be unique and the provided value already exists.

Upon failure, a Validation_Exception response is returned, which provides a list of the validation errors that occurred.

 
Email this page to a friend or co-worker