{"section":"troubleshooting","requestedLocale":"en","requestedSlug":"i-cant-update-the-ean-of-my-skus-via-api","locale":"en","slug":"i-cant-update-the-ean-of-my-skus-via-api","path":"docs/en/troubleshooting/merchandising-and-search/i-cant-update-the-ean-of-my-skus-via-api.md","branch":"main","content":"When trying to update the EAN (European Article Number), which contains the barcode information for a SKU, you may face issues with catalog synchronization between the VTEX Admin and API. This can impact inventory management and customer experience.\n\n## Solution\n\nTo solve this issue, consider [deleting the SKU EAN](#deleting-the-sku-ean) and then [adding a new EAN](#step-1-add-a-new-ean-to-the-sku).\n\n### Deleting the SKU EAN\n\nTo update the current SKU EAN, you must first delete all the EAN values associated with the SKU.\n\n- [Delete SKU EAN](https://developers.vtex.com/docs/api-reference/catalog-api#delete-/api/catalog/pvt/stockkeepingunit/-skuId-/ean/-ean-): Use the endpoint to delete a specific EAN.\n- [Delete all SKU EAN values](https://developers.vtex.com/docs/api-reference/catalog-api#delete-/api/catalog/pvt/stockkeepingunit/-skuId-/ean): Use the endpoint to delete all the EANs associated with the SKU.\n\n#### Step 1 - Add a new EAN to the SKU\n\nOnly after all previous EANs have been deleted can you add a new EAN to the SKU. To do this, use the [Create SKU EAN](https://developers.vtex.com/docs/api-reference/catalog-api#post-/api/catalog/pvt/stockkeepingunit/-skuId-/ean/-ean-) endpoint to create the new EAN value.\n\n#### Step 2 - Check whether the SKU EAN has been updated\n\nAfter adding the new EAN, use the [Get SKU by EAN](https://developers.vtex.com/docs/api-reference/catalog-api#get-/api/catalog_system/pvt/sku/stockkeepingunitbyean/-ean-) endpoint to confirm it has been updated. The new EAN values will be displayed in the `AlternateIdValues` array.\n\n```json\n\"AlternateIdValues\":\n[\n\"8781\",\n\"878181\"\n]\n```"}