# \PaymentsApi All URIs are relative to *https://api.freee.co.jp* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_deal_payment**](PaymentsApi.md#create_deal_payment) | **POST** /api/1/deals/{id}/payments | 取引(収入・支出)の支払行の作成 [**destroy_deal_payment**](PaymentsApi.md#destroy_deal_payment) | **DELETE** /api/1/deals/{id}/payments/{payment_id} | 取引(収入・支出)の支払行の削除 [**update_deal_payment**](PaymentsApi.md#update_deal_payment) | **PUT** /api/1/deals/{id}/payments/{payment_id} | 取引(収入・支出)の支払行の更新 ## create_deal_payment > crate::models::DealResponse create_deal_payment(id, payment_params) 取引(収入・支出)の支払行の作成

概要

指定した事業所の取引(収入・支出)の支払行を作成する

定義

### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **i32** | 取引ID | [required] | **payment_params** | [**PaymentParams**](PaymentParams.md) | 取引(収入・支出)の支払行の作成 | [required] | ### Return type [**crate::models::DealResponse**](dealResponse.md) ### Authorization [oauth2](../README.md#oauth2) ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## destroy_deal_payment > destroy_deal_payment(id, payment_id, company_id) 取引(収入・支出)の支払行の削除

概要

指定した事業所の取引(収入・支出)の支払行を削除する

定義

### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **i32** | 取引ID | [required] | **payment_id** | **i64** | 決済ID | [required] | **company_id** | **i32** | 事業所ID | [required] | ### Return type (empty response body) ### Authorization [oauth2](../README.md#oauth2) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) ## update_deal_payment > crate::models::DealResponse update_deal_payment(id, payment_id, payment_params) 取引(収入・支出)の支払行の更新

概要

指定した事業所の取引(収入・支出)の支払行を更新する

定義

### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **i32** | 取引ID | [required] | **payment_id** | **i64** | 決済ID | [required] | **payment_params** | [**PaymentParams**](PaymentParams.md) | 取引(収入・支出)の支払行の更新 | [required] | ### Return type [**crate::models::DealResponse**](dealResponse.md) ### Authorization [oauth2](../README.md#oauth2) ### HTTP request headers - **Content-Type**: application/json, application/x-www-form-urlencoded - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)