Error

Error

While using OMNIOUS LENS API, the following errors could occur.

If there is an error in even one item when inserting more than one product information at a time, the whole input is regarded as an error.

Code

Message (EN)

609

Authentication failed. Make sure the API key is correct or you have the correct permissions.

612

An API key is required. Please check the X-API-KEY header.

623

Invalid access. Make sure the URI and method (POST, GET) are correct.

801

This image content should remove base64 header.

802

Fail to prove base64 image.

803

Fail to prove image from url.

804

The 'image.type' field value 'url, base64' does not match any of the allowed values.

805

This image format is not supported.

903

Can’t find ‘id’ field.

904

Can’t find ‘url’ field.

905

Can’t find ‘image’ field.

906

Can’t find ‘image.detection’ field.

907

Can’t find ‘image.content’ field.

908

‘id’ field is empty.

909

‘url’ field is empty.

911

‘image.content’ field is empty.

912

Can’t find ‘ids’ field.

913

Invalid weightColorFeature field values: 'asdf'.

Allowed values: ['HIGH', ‘MEDIUM’, ‘LOW’]

914

Invalid json format.

915

Invalid query action params: ‘asdf'.

Allowed values: [UPDATE, DELETE]

Example. return error code

When an error occurs, the error.code value is returned as in the example below.

{
    "data": {},
    "error": {
        "message": "’url’ field is empty.",
        "code": 909
    },
    "status": "fail"
}

Example. When there is an error in one item

If there is no id field in the second product information when calling POST /?action=update → It is regarded as a total error

{
  "products": [
    {
      "id": "AT000123FB",
      "url": "http://asdfmall/product?id=AT00123FB",
      "image": {
        "detection": "TOP",
        "content": "http://some/image.jpg"
      },
      "context": {
        "name": "zip-up hoodie",
        "gender": "MAN",
        "brand": "GAP",
        "price": {
          "currency": "USD",
          "value": 120,
          "discounted": 99
        }
      }
    },
     {
      "url": "http://asdfmall/product?id=A200123FB",
      "image": {
        "detection": "TOP",
        "content": "http://some/image.jpg"
      },
      "context": {
        "name": "zip-up hoodie",
        "gender": "MAN",
        "brand": "GAP",
        "price": {
          "currency": "USD",
          "value": 120,
          "discounted": 99
        }
      }
    }
  ]
}

Last updated

Was this helpful?