/customers/items/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:
Customers
postCustomerItemsExcelTemplate
Code samples
const headers = {
Accept: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
};
fetch("https://goldleaf.app/api/v1/customers/items/exceltemplate", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /customers/items/exceltemplate
Download customer items Excel template
Provides a downloadable Excel template file for importing customer items. Only accessible to users with the admin role. Access is blocked for users with the customer role.
Example responses
200 Response
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Exported Excel file containing customer data | string |
| 500 | Internal Server Error | Server error | string |
