Hi Yury,
Thanks for reaching out. Happy to help.
Currently, to find a specific purchase by its store_purchase_identifier
, you need to extract all purchases for a customer and then search for the identifier. Unfortunately, there isn't a direct way to query for a specific store_purchase_identifier
without fetching all purchases first.
If you're looking for a more efficient way to handle transactions and updates, you might consider setting up webhooks to receive real-time notifications for purchase events. This way, you can maintain a local database of relevant purchases without querying the entire history each time. You can learn more about webhooks on our docs here: https://www.revenuecat.com/docs/integrations/webhooks
Hope this helps, let me know if you have questions about anything else.
Best,
Hussain