/inventory/exceltemplate 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:
Inventory
postInventoryExcelTemplate
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/inventory/exceltemplate", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /inventory/exceltemplate
Download Excel template for inventory
Returns a pre-formatted Excel template for importing or managing inventory items. Only accessible to admin users.
Example responses
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Excel template file | None |
| 500 | Internal Server Error | Internal server error | string |
