Error responses in the Import API.
Representations
ErrorObject
Base representation of an error response containing common fields to all errors.
attribute in DuplicateAttributeValueError.codeString | An error identifier. |
messageString | A plain language description of the cause of an error. |
List of error responses
AccessDeniedError
codeString | "access_denied"An error identifier. |
messageString | A plain language description of the cause of an error. |
ConcurrentModificationError
The request conflicts with the current state of the involved resources. This error typically occurs when the request attempts to modify a resource that is out of date, that is, it has been modified by another client since the last time it was retrieved by the system attempting to update it. The client application should resolve the conflict (with or without involving the end-user) before retrying the request.
codeString | "ConcurrentModification"An error identifier. |
messageString | A plain language description of the cause of an error. |
specifiedVersionInt | The version specified in the failed request. |
currentVersionInt | The current version of the resource. |
conflictedResourceAny | The resource in conflict. |
ContentionError
codeString | "Contention"An error identifier. |
messageString | A plain language description of the cause of an error. |
DuplicateAttributeValueError
Unique AttributeConstraintEnum was violated.codeString | "DuplicateAttributeValue"An error identifier. |
messageString | A plain language description of the cause of an error. |
attribute | The attribute in conflict. |
DuplicateAttributeValuesError
CombinationUnique AttributeConstraintEnum was violated.codeString | "DuplicateAttributeValues"An error identifier. |
messageString | A plain language description of the cause of an error. |
attributesArray of Attribute |
DuplicateFieldError
The given value already exists for a field that is checked for unique values.
codeString | "DuplicateField"An error identifier. |
messageString | A plain language description of the cause of an error. |
fieldString | The name of the field. |
duplicateValueAny | The offending duplicate value. |
DuplicateVariantValuesError
codeString | "DuplicateVariantValues"An error identifier. |
messageString | A plain language description of the cause of an error. |
variantValuesVariantValues | The offending variant values. |
GenericError
codeString | "Generic"An error identifier. |
messageString | A plain language description of the cause of an error. |
NewMasterVariantAdditionNotAllowedError
codeString | "NewMasterVariantAdditionNotAllowed"An error identifier. |
messageString | "Adding a new variant as master variant is not allowed." |
InsufficientScopeError
codeString | "insufficient_scope"An error identifier. |
messageString | A plain language description of the cause of an error. |
InvalidCredentialsError
codeString | "InvalidCredentials"An error identifier. |
messageString | A plain language description of the cause of an error. |
InvalidFieldError
variants, which is not supported by Product Import, is sent to the Product Import endpoint.codeString | "InvalidField"An error identifier. |
messageString | A plain language description of the cause of an error. |
fieldString | The name of the field. |
invalidValueAny | The invalid value. |
allowedValuesArray of Any | The set of allowed values for the field, if any. |
resourceIndexInt | The index of the resource in the import request that contains the invalid field. |
InvalidFieldsUpdateError
Returned when a field cannot be updated.
codeString | "InvalidFieldUpdate"An error identifier. |
messageString | "The following fields are currently not supported for changes/updates" |
fieldsArray of String | Fields that cannot be updated. |
InvalidInput
An invalid input has been sent to the service. The client application should validate the input according to the constraints described in the error message before sending the request again.
codeString | "InvalidInput"An error identifier. |
messageString | A plain language description of the cause of an error. |
InvalidJsonInput
An invalid JSON input has been sent to the service. Either the JSON is syntactically incorrect or the JSON has an unexpected shape, for example, a required field is missing. The client application should validate the input according to the constraints described in the error message before sending the request again.
codeString | "InvalidJsonInput"An error identifier. |
messageString | A plain language description of the cause of an error. |
InvalidOperation
The resources in the request are not in the valid state for the operation. The client application should validate the constraints described in the error message before sending the request again.
codeString | "InvalidOperation"An error identifier. |
messageString | A plain language description of the cause of an error. |
InvalidScopeError
The requested scope is invalid, unknown, malformed, or exceeds the scope granted by the resource owner.
codeString | "invalid_scope"An error identifier. |
messageString | A plain language description of the cause of an error. |
InvalidStateTransitionError
codeString | "InvalidTransition"An error identifier. |
messageString | A plain language description of the cause of an error. |
currentState | Every Import Operation is assigned one of the following states. |
newState | Every Import Operation is assigned one of the following states. |
InvalidTokenError
codeString | "invalid_token"An error identifier. |
messageString | A plain language description of the cause of an error. |
RequiredFieldError
A required field is missing a value.
codeString | "RequiredField"An error identifier. |
messageString | A plain language description of the cause of an error. |
fieldString | The name of the field. |
ResourceCreationError
codeString | "ResourceCreation"An error identifier. |
messageString | A plain language description of the cause of an error. |
resourceAny | The resource that was created. |
ResourceDeletionError
codeString | "ResourceDeletion"An error identifier. |
messageString | A plain language description of the cause of an error. |
resourceAny | The resource that was deleted. |
ResourceNotFoundError
codeString | "ResourceNotFound"An error identifier. |
messageString | A plain language description of the cause of an error. |
resourceAny | The resource that was not found. |
ResourceUpdateError
codeString | "ResourceUpdate"An error identifier. |
messageString | A plain language description of the cause of an error. |
resourceAny | The resource that was updated. |