Search Loyalty Rewards API does not return anything, it returns an empty dict {}
.
I have a production square account with Loyalty Program enabled.
I have created a loyalty account for a customer, and have multiple events where the customer has redeemed rewards.
However, I only get an empty response (not even with a rewards
key) with status code 200.
The results are same when I set status
field to other values (ISSUED
, DELETED
)
result = client.loyalty.search_loyalty_rewards( body = { "query": { "loyalty_account_id": "<redacted>", "status": "REDEEMED" }, "limit": 20 } )
2 posts - 2 participants