Internal server error on calling createLoyaltyReward

After updating square SDK, We are getting this error when calling createLoyaltyReward:
{“errors”: [{“code”: “INTERNAL_SERVER_ERROR”,“detail”: “An internal error has occurred when processing.”,“category”: “API_ERROR”}]}

squareVersion: 2020-07-22 (com.squareup:square:6.1.0.20200722)

Request payload is:
{“reward”:{“loyaltyAccountId”:“01ce1be0-6408-4804-abb1-7609f800557d”,“rewardTierId”:“7f68cb78-3d7c-4422-8b14-872407976513”,“orderId”:“nV7zzofZCtEbAmN0sJTr10fXKYeZY”},“idempotencyKey”:“cb4c380d-b7ad-4f49-90c7-97f3b36896b5”}

Hey @roohi thanks for reporting this (and welcome to the forums)!

Internally I see it’s because this loyalty reward tier has no items on it. When I look at the merchant’s account, it actually reports this error on the dashboard (showing what items have been deleted). Unfortunately the merchant would need to login to their Square Dashboard and add items to the reward tier to prevent this error. With that said, I’ve escalated to our Loyalty API team to make this report a better error to clients.

Thank you for your help.
We have this for another restaurant as well. Does this also have a problem with the reward tier definition?

{“reward”:{“loyaltyAccountId”:“10963eb8-3193-4fdb-8a83-ffbd7ac2fe2d”,“rewardTierId”:“f7d76025-5af9-4b35-b97f-1be4ac61fe88”,“orderId”:“Pm9cFV6TSh1Q7IyXfI0vTju9fG9YY”},“idempotencyKey”:“6651dfcc-5f02-48ca-b388-dabb0b518bd4”}

I see a successful status 200 for the last one, as of about 7 minutes, and it was a 400 (not 500) before. Were you able to get it working?