All URIs are relative to https://api.freee.co.jp.
Method | HTTP request | Description |
---|---|---|
createTransfer() | POST /api/1/transfers | 取引(振替)の作成 |
destroyTransfer() | DELETE /api/1/transfers/{id} | 取引(振替)の削除 |
getTransfer() | GET /api/1/transfers/{id} | 取引(振替)の取得 |
getTransfers() | GET /api/1/transfers | 取引(振替)一覧の取得 |
updateTransfer() | PUT /api/1/transfers/{id} | 取引(振替)の更新 |
createTransfer($transfer_params): \Freee\Accounting\Model\TransferResponse
取引(振替)の作成
<?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\TransfersApi(
// 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
);
$transfer_params = new \Freee\Accounting\Model\TransferParams(); // \Freee\Accounting\Model\TransferParams | 取引(振替)の作成
try {
$result = $apiInstance->createTransfer($transfer_params);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TransfersApi->createTransfer: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
transfer_params | \Freee\Accounting\Model\TransferParams | 取引(振替)の作成 | [optional] |
\Freee\Accounting\Model\TransferResponse
- 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]
destroyTransfer($id, $company_id)
取引(振替)の削除
<?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\TransfersApi(
// 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
$company_id = 56; // int | 事業所ID
try {
$apiInstance->destroyTransfer($id, $company_id);
} catch (Exception $e) {
echo 'Exception when calling TransfersApi->destroyTransfer: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | 取引(振替)ID | |
company_id | int | 事業所ID |
void (empty response body)
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getTransfer($id, $company_id): \Freee\Accounting\Model\TransferResponse
取引(振替)の取得
<?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\TransfersApi(
// 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
$company_id = 56; // int | 事業所ID
try {
$result = $apiInstance->getTransfer($id, $company_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TransfersApi->getTransfer: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | 取引(振替)ID | |
company_id | int | 事業所ID |
\Freee\Accounting\Model\TransferResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getTransfers($company_id, $start_date, $end_date, $offset, $limit): \Freee\Accounting\Model\InlineResponse20011
取引(振替)一覧の取得
<?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\TransfersApi(
// 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
);
$company_id = 56; // int | 事業所ID
$start_date = 'start_date_example'; // string | 振替日で絞込:開始日 (yyyy-mm-dd)
$end_date = 'end_date_example'; // string | 振替日で絞込:終了日 (yyyy-mm-dd)
$offset = 56; // int | 取得レコードのオフセット (デフォルト: 0)
$limit = 56; // int | 取得レコードの件数 (デフォルト: 20, 最小: 1, 最大: 100)
try {
$result = $apiInstance->getTransfers($company_id, $start_date, $end_date, $offset, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TransfersApi->getTransfers: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
company_id | int | 事業所ID | |
start_date | string | 振替日で絞込:開始日 (yyyy-mm-dd) | [optional] |
end_date | string | 振替日で絞込:終了日 (yyyy-mm-dd) | [optional] |
offset | int | 取得レコードのオフセット (デフォルト: 0) | [optional] |
limit | int | 取得レコードの件数 (デフォルト: 20, 最小: 1, 最大: 100) | [optional] |
\Freee\Accounting\Model\InlineResponse20011
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateTransfer($id, $transfer_params): \Freee\Accounting\Model\TransferResponse
取引(振替)の更新
<?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\TransfersApi(
// 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
$transfer_params = new \Freee\Accounting\Model\TransferParams(); // \Freee\Accounting\Model\TransferParams | 取引(振替)の更新
try {
$result = $apiInstance->updateTransfer($id, $transfer_params);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TransfersApi->updateTransfer: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | 取引(振替)ID | |
transfer_params | \Freee\Accounting\Model\TransferParams | 取引(振替)の更新 |
\Freee\Accounting\Model\TransferResponse
- 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]