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