# Get InvoiceDetails from OrderId

**URL:** <https://integration.keap.com/t/get-invoicedetails-from-orderid/63020>\
**Category:** API Q&A\
**Created:** [February 1, 2019, 5:06pm UTC](https://integration.keap.com/t/get-invoicedetails-from-orderid/63020 "2019-02-01T17:06:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deals\_Meetup](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@Deals\_Meetup](https://integration.keap.com/u/Deals_Meetup)\
**Post date:** [February 1, 2019, 5:06pm UTC](https://integration.keap.com/t/get-invoicedetails-from-orderid/63020/1 "2019-02-01T17:06:05Z")

</div>

I have customer paid on Infusionsoft and returned to my website with having OrderId in the URL.

I can get Invoice Details using OrderId?

I am using PHP SDK

---

<div class="post-metadata">

**Author:** ![John\_Borelli](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/john_borelli/32/11880_2.png) [@John\_Borelli](https://integration.keap.com/u/John_Borelli)\
**Post date:** [February 1, 2019, 5:26pm UTC](https://integration.keap.com/t/get-invoicedetails-from-orderid/63020/2 "2019-02-01T17:26:49Z")

</div>

Yes, you can. Use the order id to query the invoice table. Then you’ll use the invoice id to query the invoice items table. If you need the original order information then you would query the job table (old name for orders)
