#lucas-paid-invoices
1 messages · Page 1 of 1 (latest)
Hi there
You are specifically using the Search API here, correct?
If so, then as you mentioned there is no query field for paid_at with the Search API
yeah - although open to suggestions
So you likely want to List invoices via the API instead and expand their charge
Err actually now that I think about it if you only want to do a "paid at window" then you would go the opposite way
List charges in a creation window: https://stripe.com/docs/api/charges/list#list_charges-created
Expand the Invoice
ohhh okay that sounds like it'll work
is invoice pre-hydrated there or will i have to hit an api again to grab it?
Ahh I'm so sorry @loud mist I missed your follow up question
If you are still around, the invoice will be present on the Charge object
You use https://stripe.com/docs/api/expanding_objects to expand it for the full details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.