November Happy Hour will be moved to Thursday December 5th.

Service API Validation

Vote:
 

Hi

This is a quick one, we are currently working with the service api to create a product importer. We were just wondering if the service api honours the validation attributes that would normally be placed upon a product model?

It would be great if the Service API was able to determine if the property was required, etc, and return this message in the response.

#182426
Sep 19, 2017 4:39
Vote:
 

Technically yes. I'm just not sure how clear/useful the message would be 

#182432
Sep 19, 2017 7:18
Vote:
 

Thanks Quan,

Well I would imagine it would just be the same error message that you would see from the administration if you were to add/edit the product manually

For instance if you had a short description that is required then you could write:

ErrorMessage="Short description is required"

Then the error message that you would recieve back would be the ErrorMessage you have already specified.

If there were multiple errors this would be return in some form of list.

#182439
Edited, Sep 19, 2017 10:05
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.