GET
If you need to retrieve the list of records, you use the GET HTTP method and the following URL.
GET http://<Base endpoint URL>/<Top-level entity>
The URL has the following components:
For example, suppose that you want to retrieve the list of stock item records from a local Acumatica ERP instance with the name AcumaticaDB by using the system endpoint with the name Default and Version 25.200.001. You should use the following URL to retrieve the list of records: http://localhost/AcumaticaDB/entity/Default/25.200.001/StockItem.
You can use the following parameters when you retrieve records from Acumatica ERP:
The following table lists the HTTP status codes that the system returns for a request that retrieves records by conditions.
The following request shows an example of the retrieval of StockItem records that are Active and that have been modified since the specified date.
In the request example below, <Acumatica ERP host> is the URL of the Acumatica ERP host (such as https://my.acumatica.com). You need to use the instance name in the URL of the request (such as https://my.acumatica.com/MyInstance) if the instance is not installed in the root of the website.
<Acumatica ERP host>
GET /entity/Default/25.200.001/StockItem? $expand=WarehouseDetails& $filter=ItemStatus%20eq%20'Active'%20and %20LastModified%20gt%20datetimeoffset'2024-08-18T23%3A59%3A59.999%2B04%3A00' HTTP/1.1 Host: <Acumatica ERP host> Accept: application/json Content-Type: application/json
When multiple records are retrieved from Acumatica ERP, the system tries to optimize the retrieval of the records and obtain all needed records in one request to the database (instead of requesting the records one by one). If the optimization fails, the system returns an error, which specifies the entities or fields that caused the failure of the optimized request. To prevent the error from occurring, you can do any of the following: