Search code examples
shopwareshopware6

Shopware 6 get category name from store-api endpoint


I use endpoint /store-api/checkout/order is it possible to get from this endpoint category name? Now I can only reach out category ids.


Solution

  • Based on the endpoint you are using, detailed category info cannot be retrieved. A secondary call will be necessary.

    P.S. I am not even sure how you are getting categoryId's here. It's not in the documentation.

    Ref: https://shopware.stoplight.io/docs/store-api/a020d67a79ed0-create-an-order-from-a-cart