All URIs are relative to https://api.freee.co.jp.
Method | HTTP request | Description |
---|---|---|
createDealRenew() | POST /api/1/deals/{id}/renews | 取引(収入・支出)の+更新の作成 |
deleteDealRenew() | DELETE /api/1/deals/{id}/renews/{renew_id} | 取引(収入・支出)の+更新の削除 |
updateDealRenew() | PUT /api/1/deals/{id}/renews/{renew_id} | 取引(収入・支出)の+更新の更新 |
createDealRenew($id, $renew_create_params): \Freee\Accounting\Model\DealResponse
取引(収入・支出)の+更新の作成
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Freee\Accounting\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Freee\Accounting\Api\RenewsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | 取引ID
$renew_create_params = new \Freee\Accounting\Model\RenewCreateParams(); // \Freee\Accounting\Model\RenewCreateParams | 取引(収入・支出)の+更新の作成
try {
$result = $apiInstance->createDealRenew($id, $renew_create_params);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RenewsApi->createDealRenew: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | 取引ID | |
renew_create_params | \Freee\Accounting\Model\RenewCreateParams | 取引(収入・支出)の+更新の作成 |
\Freee\Accounting\Model\DealResponse
- Content-Type:
application/json
,application/x-www-form-urlencoded
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteDealRenew($id, $renew_id, $company_id): \Freee\Accounting\Model\DealResponse
取引(収入・支出)の+更新の削除
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Freee\Accounting\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Freee\Accounting\Api\RenewsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | 取引ID
$renew_id = 56; // int | +更新ID
$company_id = 56; // int | 事業所ID
try {
$result = $apiInstance->deleteDealRenew($id, $renew_id, $company_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RenewsApi->deleteDealRenew: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | 取引ID | |
renew_id | int | +更新ID | |
company_id | int | 事業所ID |
\Freee\Accounting\Model\DealResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateDealRenew($id, $renew_id, $renew_update_params): \Freee\Accounting\Model\DealResponse
取引(収入・支出)の+更新の更新
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Freee\Accounting\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Freee\Accounting\Api\RenewsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | 取引ID
$renew_id = 56; // int | +更新ID
$renew_update_params = new \Freee\Accounting\Model\RenewUpdateParams(); // \Freee\Accounting\Model\RenewUpdateParams | 取引(収入・支出)の+更新の更新
try {
$result = $apiInstance->updateDealRenew($id, $renew_id, $renew_update_params);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling RenewsApi->updateDealRenew: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | 取引ID | |
renew_id | int | +更新ID | |
renew_update_params | \Freee\Accounting\Model\RenewUpdateParams | 取引(収入・支出)の+更新の更新 |
\Freee\Accounting\Model\DealResponse
- Content-Type:
application/json
,application/x-www-form-urlencoded
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]