In order to return entitlement IDs you can use the direct entitlement enumeration end point: To learn more about this endpoint see here: https://dev.epicgames.com/docs/web-api-ref/ecom-web-apis#direct-entitlement-enumeration
https://dev.epicgames.com/community/learning/knowledge-base/WBKMD/epic-online-services-how-to-return-entitlement-ids-using-the-web-api