All URIs are relative to https://api.freee.co.jp/api/1
Method | HTTP request | Description |
---|---|---|
createDealPayment | POST /deals/{id}/payments | 取引(収入/支出)の支払行作成 |
destroyDealPayment | DELETE /deals/{id}/payments/{payment_id} | 取引(収入/支出)の支払行削除 |
updateDealPayment | PUT /deals/{id}/payments/{payment_id} | 取引(収入/支出)の支払行更新 |
DealsResponse createDealPayment(id, 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.PaymentsApi();
var id = 56; // Number | 取引ID
var parameters = new FreeeAccountingClient.DealPaymentParams(); // DealPaymentParams | 取引(収入/支出)の支払行作成
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.createDealPayment(id, parameters, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | 取引ID | |
parameters | DealPaymentParams | 取引(収入/支出)の支払行作成 |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
destroyDealPayment(id, paymentId, 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.PaymentsApi();
var id = 56; // Number | 取引ID
var paymentId = 56; // Number | 決済ID
var opts = {
'parameter': new FreeeAccountingClient.Parameter2() // Parameter2 | 取引(収入/支出)の支払行削除
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
apiInstance.destroyDealPayment(id, paymentId, opts, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | 取引ID | |
paymentId | Number | 決済ID | |
parameter | Parameter2 | 取引(収入/支出)の支払行削除 | [optional] |
null (empty response body)
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json
DealsResponse updateDealPayment(id, paymentId, 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.PaymentsApi();
var id = 56; // Number | 取引ID
var paymentId = 56; // Number | 決済ID
var parameters = new FreeeAccountingClient.DealPaymentParams(); // DealPaymentParams | 取引(収入/支出)の支払行更新
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.updateDealPayment(id, paymentId, parameters, callback);
Name | Type | Description | Notes |
---|---|---|---|
id | Number | 取引ID | |
paymentId | Number | 決済ID | |
parameters | DealPaymentParams | 取引(収入/支出)の支払行更新 |
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json