Quantcast
Channel: Square Developer Forums - Latest topics
Viewing all articles
Browse latest Browse all 1334

Search Loyalty Rewards API returns an empty response

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 1334

Trending Articles