Retrieve Lots
GET
lots
Retrieves a paginated list of Lots, optionally filtered and sorted. When additional results are available, the pagination object in the response payload provides a “nextUrl” that links to the next page of results.
Resource Information
| Method and URI | GET https://api.aps.autodesk.com/fusion-operations/v2/lots |
| Authentication Context | No security required |
| Required OAuth Scopes | data:read data:write |
| Data Format | JSON |
Request
Headers
| Authorization* string | JWT Access Token |
* Required
Request
Query String Parameters
| filter[id] int | Filter Lots matching the specified id. |
| filter[code] string | Filter Lots matching the specified code. Pass the value as URL‑encoded. |
| filter[product.id] int | Filter Lots belonging to the specified Product id. |
| filter[product.code] string | Filter Lots belonging to the specified Product code. Pass the value as URL‑encoded. |
| offset int | Page offset. Default value is 0. |
| limit int | Maximum number of results returned. Defaults to 25. |
| sort string | Comma separated fields to sort items by. Fields: id, code. Default: “id desc”. |
Response
HTTP Status Code Summary
| 200 OK | List of lots, including pagination details. |
| 400 Bad Request | Bad request due to invalid data. |
| 401 Unauthorized | The access token is invalid. It may have either expired or may not be a three-legged access token. Please verify the token and retry the request. |
| 403 Forbidden | The request was successfully validated but lacked required permission. Please verify your token permissions and retry the request. |
| 429 Too Many Requests | Rate limit exceeded; wait some time before retrying. |
| 500 Internal Server Error | An unknown server-side error occurred. Please try again later. If the problem persists, please contact support. |
Response
Header (429)
| Retry-After integer | The number of seconds to wait before retrying the request. |
Response
Body Structure (200)
Expand all
| results array: object | List of lots |
| product all of | |
| 0 | |
| id int | Unique identifier of the referenced entity. |
| code string | Code of the referenced entity.
Max length: 255 |
| name string | Name of the referenced entity.
Max length: 255 |
| anyOf | |
| 0 | |
| 1 | |
| id int | Unique identifier of the lot. |
| code string | Max length: 255 |
| expirationDate string | Expiration date of the lot (e.g. 2025-06-21) |
| supplierLot string | Max length: 255 |
| pagination object | |
| limit int | Maximum number of results returned in this page. |
| offset int | Number of results skipped before this page. |
| nextUrl string | URL for the next page of results. Null when there are no additional pages. |