/organization/pendingitems v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Item
getOrganizationPendingItems
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/organization/pendingitems", {
method: "GET",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
GET /organization/pendingitems
Retrieve pending items for the organization
Retrieves a paginated list of pending items accessible to the organization, with optional filtering and visibility controls.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| search.partNumber | query | string | false | Filter by part number (optional) |
| search.brand | query | string | false | Filter by brand (optional) |
| search.description | query | string | false | Filter by description (optional) |
| search.orgPartNumber | query | string | false | Filter by organization part number (optional) |
| hideUnavailable | query | boolean | false | Whether to hide unavailable items (optional) |
| hideUnavailableBrands | query | boolean | false | Whether to hide brands that are unavailable (optional) |
| page | query | integer | false | Page number for pagination |
| limit | query | integer | false | Number of items per page |
Example responses
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Paginated list of pending items | None |
| 500 | Internal Server Error | Internal server error | None |
