The API will return all errors as JSON objects with a
message property and optionally an
errors array. The format is the same as that described by JSON API.
Here are some common error messages that you might meet.
By far the most common error is validation errors of request payloads or parameters.
If you send a customer profile update with an unknown profile attribute
MyAttribute, you receive the an
error object with the following content:
source.pointer property of the first argument is a JSON pointer to the invalid data in the payload.
If you send the wrong data type for an attribute, you receive a similar response:
Or sending an invalid
state in a customer session update:
In any validation error related to a request payload, look first to
source.payload pointer and the
details to determine the issue.