Method | HTTP request | Description |
---|---|---|
getCostCenters | GET /v1/cost-centers | Returns a list of cost centers. |
[CostCentersViewModel] getCostCenters()
Returns a list of cost centers.
import * as SiigoApi from 'siigo_api';
let apiInstance = new SiigoApi.CostCenterApi();
apiInstance.getCostCenters().then((data) => {
console.log('API called successfully. Returned data: ' + data);
}, (error) => {
console.error(error);
});
import * as SiigoApi from 'siigo_api';
async function main(){
try {
let apiInstance = new SiigoApi.CostCenterApi();
const data = await apiInstance.getCostCenters();
console.log('API called successfully. Returned data: ' + data);
} catch (error) {
console.error(error);
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json