In the API, the
Purchase
object is a different object than the
Invoice
object. For me to find the invoice connected to a particular purchase, I have to get invoices by date, and then after that data has been retrieved, match the invoice to the purchase. It would be simpler if I could put in a query in the GET /invoices.json request a parameter for Purchase ID or Contact ID or email address, or all of the above. Something like:
GET /invoices.json
{
PurchaseID: "123456"
}