/organization/suppliers 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
getOrganizationSuppliers
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/organization/suppliers", {
method: "GET",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
GET /organization/suppliers
Retrieve organization's suppliers
Fetches the list of suppliers configured for the organization.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| someParam | query | string | false | Optional parameter if needed (remove if not applicable) |
Example responses
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | A list of suppliers | None |
| 500 | Internal Server Error | Internal server error | string |
