Get badges for customerAsk AIget https://{host}/api_gateway/v1/badges/customer/{customerId}Path ParamscustomerIdstringrequiredQuery ParamsbadgeTypestringenumDefaults to AVAILABLEThe type of badge to displayAllowed:AVAILABLEEARNEDincludeExpiredbooleanThis is the earn expiry. If true then all the earned badges which are even expired will be part of the response. If false, then only the badges where earn is active will be a part of the responsesortOnstringEnables sorting of badges based on rank. Value: rank.groupIdstringBadge group ID to which the badge belongs to.lastEarnedOnDatefloatDate and time when the badge was awarded to the customer. Time format: Epoch format (UNIX timestamp in milliseconds).lastEarnEventDatefloatDate and time when a triggering event (transactional or behavioural) occurred, initiating the badge earning. Time format: Epoch format (UNIX timestamp in milliseconds).HeadersX-CAP-CUSTOMER-IDENTIFIERstringenumPass this header to search the customer based on their email, mobile number, card number or external ID.Allowed:emailmobilecardNumberexternalIdResponse 200200Updated about 1 month ago