Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Latest commit

 

History

History
194 lines (134 loc) · 5.82 KB

RenewsApi.md

File metadata and controls

194 lines (134 loc) · 5.82 KB

Freee\Accounting\RenewsApi

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()

createDealRenew($id, $renew_create_params): \Freee\Accounting\Model\DealResponse

取引(収入・支出)の+更新の作成

Example

<?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;
}

Parameters

Name Type Description Notes
id int 取引ID
renew_create_params \Freee\Accounting\Model\RenewCreateParams 取引(収入・支出)の+更新の作成

Return type

\Freee\Accounting\Model\DealResponse

Authorization

oauth2

HTTP request headers

  • 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()

deleteDealRenew($id, $renew_id, $company_id): \Freee\Accounting\Model\DealResponse

取引(収入・支出)の+更新の削除

Example

<?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;
}

Parameters

Name Type Description Notes
id int 取引ID
renew_id int +更新ID
company_id int 事業所ID

Return type

\Freee\Accounting\Model\DealResponse

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateDealRenew()

updateDealRenew($id, $renew_id, $renew_update_params): \Freee\Accounting\Model\DealResponse

取引(収入・支出)の+更新の更新

Example

<?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;
}

Parameters

Name Type Description Notes
id int 取引ID
renew_id int +更新ID
renew_update_params \Freee\Accounting\Model\RenewUpdateParams 取引(収入・支出)の+更新の更新

Return type

\Freee\Accounting\Model\DealResponse

Authorization

oauth2

HTTP request headers

  • 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]