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(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.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);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | ||
parameter | Parameter | 請求書の削除 | [optional] |
null (empty response body)
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
InvoicesResponse updateInvoice(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.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);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | 請求書ID | |
parameters | InvoicesUpdateParams | 請求書の更新 | [optional] |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json