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

Latest commit

 

History

History
120 lines (80 loc) · 2.98 KB

InvoicesApi.md

File metadata and controls

120 lines (80 loc) · 2.98 KB

FreeeAccountingClient.InvoicesApi

All URIs are relative to https://api.freee.co.jp/api/1

Method HTTP request Description
destroyInvoice DELETE /invoices/{id} 請求書の削除
updateInvoice PUT /invoices/{id} 請求書の更新

destroyInvoice

destroyInvoice(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.InvoicesApi();

var id = 56; // Number | 

var opts = { 
  'parameter': new FreeeAccountingClient.Parameter() // Parameter | 請求書の削除
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.destroyInvoice(id, opts, callback);

Parameters

Name Type Description Notes
id Number
parameter Parameter 請求書の削除 [optional]

Return type

null (empty response body)

Authorization

oauth2

HTTP request headers

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

updateInvoice

InvoicesResponse updateInvoice(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.InvoicesApi();

var id = 56; // Number | 請求書ID

var opts = { 
  'parameters': new FreeeAccountingClient.InvoicesUpdateParams() // InvoicesUpdateParams | 請求書の更新
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.updateInvoice(id, opts, callback);

Parameters

Name Type Description Notes
id Number 請求書ID
parameters InvoicesUpdateParams 請求書の更新 [optional]

Return type

InvoicesResponse

Authorization

oauth2

HTTP request headers

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