/organization/nextpartnumber 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:
Organizations
getOrganizationNextPartNumber
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/organization/nextpartnumber?itemType=type,string", {
method: "GET",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
GET /organization/nextpartnumber
Get next part number
Retrieves the next part number for professional or enterprise clients using auto-generated part numbers.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| itemType | query | string | true | The item type for which to generate the next part number |
Example responses
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Next part number retrieved successfully | None |
