All URIs are relative to https://api.freee.co.jp/api/1
Method | HTTP request | Description |
---|---|---|
createAccountItem | POST /account_items | 勘定科目の作成 |
getAccountItem | GET /account_items/{id} | 勘定科目の詳細情報の取得 |
getAccountItems | GET /account_items | 勘定科目一覧の取得 |
updateAccountItem | PUT /account_items/{id} | 勘定科目の更新 |
AccountItemsCreateResponse createAccountItem(parameters)
勘定科目の作成
var FreeeAccountingClient = require('freee-accounting-client');
var defaultClient = FreeeAccountingClient.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = accessToken; // assign access token here.
var apiInstance = new FreeeAccountingClient.AccountItemsApi();
var parameters = new FreeeAccountingClient.AccountItemParams(); // AccountItemParams | 勘定科目の作成
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createAccountItem(parameters, callback);
Name | Type | Description | Notes |
---|---|---|---|
parameters | AccountItemParams | 勘定科目の作成 |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
AccountItemsShowResponse getAccountItem(companyId, id)
勘定科目の詳細情報の取得
var FreeeAccountingClient = require('freee-accounting-client');
var defaultClient = FreeeAccountingClient.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = accessToken; // assign access token here.
var apiInstance = new FreeeAccountingClient.AccountItemsApi();
var companyId = 56; // Number | 事業所ID
var id = 56; // Number | 勘定科目ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getAccountItem(companyId, id, callback);
Name | Type | Description | Notes |
---|---|---|---|
companyId | Number | 事業所ID | |
id | Number | 勘定科目ID |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
AccountItemsIndexResponse getAccountItems(companyId, opts)
勘定科目一覧の取得
var FreeeAccountingClient = require('freee-accounting-client');
var defaultClient = FreeeAccountingClient.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = accessToken; // assign access token here.
var apiInstance = new FreeeAccountingClient.AccountItemsApi();
var companyId = 56; // Number | 事業所ID
var opts = {
'baseDate': "baseDate_example" // String | 基準日
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.getAccountItems(companyId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
companyId | Number | 事業所ID | |
baseDate | String | 基準日 | [optional] |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
AccountItemsUpdateResponse updateAccountItem(parameters, id)
勘定科目の更新
var FreeeAccountingClient = require('freee-accounting-client');
var defaultClient = FreeeAccountingClient.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = accessToken; // assign access token here.
var apiInstance = new FreeeAccountingClient.AccountItemsApi();
var parameters = new FreeeAccountingClient.AccountItemParams(); // AccountItemParams | 勘定科目の更新
var id = 56; // Number |
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateAccountItem(parameters, id, callback);
Name | Type | Description | Notes |
---|---|---|---|
parameters | AccountItemParams | 勘定科目の更新 | |
id | Number |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json