Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Latest commit

 

History

History
173 lines (116 loc) · 4.67 KB

ExpenseApplicationsApi.md

File metadata and controls

173 lines (116 loc) · 4.67 KB

FreeeAccountingClient.ExpenseApplicationsApi

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} 経費申請の更新

createExpenseApplication

ExpenseApplicationsResponse createExpenseApplication(opts)

経費申請の作成

Example

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);

Parameters

Name Type Description Notes
parameters Parameters7 経費申請の作成 [optional]

Return type

ExpenseApplicationsResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json

destroyExpenseApplication

destroyExpenseApplication(id, opts)

経費申請の削除

Example

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);

Parameters

Name Type Description Notes
id Number
parameter Parameter5 経費申請の削除 [optional]

Return type

null (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json

updateExpenseApplication

ExpenseApplicationsResponse updateExpenseApplication(id, opts)

経費申請の更新

Example

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);

Parameters

Name Type Description Notes
id Number
parameters Parameters8 経費申請の更新 [optional]

Return type

ExpenseApplicationsResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json