All URIs are relative to https://api.freee.co.jp/api/1
Method | HTTP request | Description |
---|---|---|
createExpenseApplication | POST /expense_applications | 経費申請の作成 |
destroyExpenseApplication | DELETE /expense_applications/{id} | 経費申請の削除 |
updateExpenseApplication | PUT /expense_applications/{id} | 経費申請の更新 |
ExpenseApplicationsResponse createExpenseApplication(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.ExpenseApplicationsApi();
var opts = {
'parameters': new FreeeAccountingClient.Parameters7() // Parameters7 | 経費申請の作成
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createExpenseApplication(opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
parameters | Parameters7 | 経費申請の作成 | [optional] |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
destroyExpenseApplication(id, 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.ExpenseApplicationsApi();
var id = 56; // Number |
var opts = {
'parameter': new FreeeAccountingClient.Parameter5() // Parameter5 | 経費申請の削除
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.destroyExpenseApplication(id, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ||
parameter | Parameter5 | 経費申請の削除 | [optional] |
null (empty response body)
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
ExpenseApplicationsResponse updateExpenseApplication(id, 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.ExpenseApplicationsApi();
var id = 56; // Number |
var opts = {
'parameters': new FreeeAccountingClient.Parameters8() // Parameters8 | 経費申請の更新
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateExpenseApplication(id, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ||
parameters | Parameters8 | 経費申請の更新 | [optional] |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json