Check if EAN exists

PUT REST API request that requires a JSON body with authorization token in order to acquire, edit desired product.

Request

Request:

HTTP MethodPOST
URLStagehttps://api.stage.ananastest.com/product/api/v1/merchant- integration/ean/exists
Productionhttps://api.ananas.rs/product/api/v1/merchant-integration/ean/exists
HTTP Headers
Header nameHeader value
AuthorizationBearer {access_token}
Request Body

The request body represents an array of EANs.

Example of request body:

Click to copy
Success!
[
  "088280476892",
  "757670268125",
  "875441735984"
];

Response

The endpoint will return status 200 with key-value object representing whether the EAN exists or not.

Response Body:

The response body represents an object with key-value pair (EAN:BOOLEAN)

Example of response:

Click to copy
Success!
[
  {
    "088280476892": true,
    "757670268125": false,
    "875441735984": true,
  },
];
Copyright © Ananas 2023. All right reserved.