Error handling

Modified on Mon, 23 Nov at 11:48 PM

An HTTP response containing a status code in the 2XX range, typically 200 OK, indicates that the API call was made successfully.


In case of failed API call the response body will contain an error in the following format:


JSON

{

   "code": "InvalidInput",

   "FriendlyDescription": "Invalid input provided.",

   "TechnicalDescription": "Invalid data",

   "AdditionalInformation": {

      "Name": [

         "Product name is not provided"

      ]

   }

}

Error response fields

Hereby a list of all the fields included in the response with extended description.


FieldDataTypeDescription
codestringThe main error code, gives the generic error that happened.
Possible values:
- InvalidInput
- NotFound
- ProcessingError
FriendlyDescriptionstringA friendly (localized) error description, which could be shown to the user.
TechnicalDescriptionstringA technical error description (always in English).
AdditionalInformationDictionary<string, object>This can contain additional information about the error.
Example: which fields in the model are not correct and why.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article