Page 1 of 1

Unable to search archived purchase orders

Posted: Fri Mar 20, 2020 12:05 am
by AndyRees
Hi Team,

We are unable to use the Vendor Order API query to pull up closed (Archived) purchase orders.

For our needs, we want to do a refresh of the purchase order values in a target system, and we're using the vendor order search to pull that information however once the purchase order is archived, it is no longer retrievable via the search.

E.g. If I perform a GET request such as api/v1.0/companies/3/vendorOrders/?Stage=Archived it always returns nothing (empty array, []).

I've tried this in both our customer's build and the sandbox environment and it seems to return the same in both, however I wondered if anyone else had encountered this issue or knew of a solution.

Thanks in advance for your help,
Andy

Re: Unable to search archived purchase orders

Posted: Fri Mar 20, 2020 3:08 am
by rick.lan
Hi Andy,

Thank you for your message, we can confirm that's a bug, we will patch it in the next release.

cheers,

Rick

Re: Unable to search archived purchase orders

Posted: Sun Jun 22, 2025 12:52 am
by Ashishs
Hi,

Is there any update on this bug, given its been more than 5 years? I see it is still affecting.

Re: Unable to search archived purchase orders

Posted: Mon Jun 23, 2025 12:49 am
by SimproAPITeam
Hi Ashishs,

It works for me, Are you able to give more examples?

Re: Unable to search archived purchase orders

Posted: Tue Jun 24, 2025 8:12 am
by Ashishs
Sorry, Stage=Archived is working.

But "/api/v1.0/companies/0/vendorOrders/" is not returning Archived records. Is that by design?

Re: Unable to search archived purchase orders

Posted: Fri Jun 27, 2025 4:11 am
by SimproAPITeam
Hi,
Archived is returned for individual records like this:

Code: Select all

/vendorOrders/{id}
The basic columns returned on list view are limited but you can assign the columns you need like this:

Code: Select all

vendorOrders/?columns=ID,Archived
This can all be found in our documentation here:
https://developer.simprogroup.com/apido ... 3f69eb796f