Unable to find products with ID via Headless API

Issue

  • Noticed that products have two ID fields, when you fetch them via headless API
    • id
    • productId
  • id is visible on the UI and productId is not.
  • When you try to get products via headless API using id, it does not work:
    E.g.: GET /o/headless-commerce-admin-catalog/v1.0/products/{id}

Environment

  • Commerce 4.0 (DXP 7.4) reposted so far

Resolution

  • When headless APIs are used, the productId is the only ID that the endpoint is using and looking for.

Additional Information

 

Was this article helpful?
0 out of 0 found this helpful