# \InvoicesApi All URIs are relative to *https://api.freee.co.jp* Method | HTTP request | Description ------------- | ------------- | ------------- [**create_invoice**](InvoicesApi.md#create_invoice) | **POST** /api/1/invoices | 請求書の作成 [**destroy_invoice**](InvoicesApi.md#destroy_invoice) | **DELETE** /api/1/invoices/{id} | 請求書の削除 [**get_invoice**](InvoicesApi.md#get_invoice) | **GET** /api/1/invoices/{id} | 請求書の取得 [**get_invoices**](InvoicesApi.md#get_invoices) | **GET** /api/1/invoices | 請求書一覧の取得 [**update_invoice**](InvoicesApi.md#update_invoice) | **PUT** /api/1/invoices/{id} | 請求書の更新 ## create_invoice > crate::models::InvoiceResponse create_invoice(invoice_create_params) 請求書の作成

概要

指定した事業所の請求書を作成する

注意点

### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **invoice_create_params** | Option<[**InvoiceCreateParams**](InvoiceCreateParams.md)> | 請求書の作成 | | ### Return type [**crate::models::InvoiceResponse**](invoiceResponse.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_invoice > destroy_invoice(id, company_id) 請求書の削除

概要

指定した事業所の請求書を削除する

### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **i32** | | [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) ## get_invoice > crate::models::InvoiceResponse get_invoice(company_id, id) 請求書の取得

概要

指定した事業所の請求書を取得する

### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **company_id** | **i32** | 事業所ID | [required] | **id** | **i32** | 請求書ID | [required] | ### Return type [**crate::models::InvoiceResponse**](invoiceResponse.md) ### 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) ## get_invoices > crate::models::InvoiceIndexResponse get_invoices(company_id, partner_id, partner_code, start_issue_date, end_issue_date, start_due_date, end_due_date, invoice_number, description, invoice_status, payment_status, offset, limit) 請求書一覧の取得

概要

指定した事業所の請求書一覧を取得する

### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **company_id** | **i32** | 事業所ID | [required] | **partner_id** | Option<**i32**> | 取引先IDで絞込 | | **partner_code** | Option<**String**> | 取引先コードで絞込 | | **start_issue_date** | Option<**String**> | 請求日の開始日(yyyy-mm-dd) | | **end_issue_date** | Option<**String**> | 請求日の終了日(yyyy-mm-dd) | | **start_due_date** | Option<**String**> | 期日の開始日(yyyy-mm-dd) | | **end_due_date** | Option<**String**> | 期日の終了日(yyyy-mm-dd) | | **invoice_number** | Option<**String**> | 請求書番号 | | **description** | Option<**String**> | 概要 | | **invoice_status** | Option<**String**> | 請求書ステータス (draft: 下書き, applying: 申請中, remanded: 差し戻し, rejected: 却下, approved: 承認済み, unsubmitted: 送付待ち, submitted: 送付済み) | | **payment_status** | Option<**String**> | 入金ステータス (unsettled: 入金待ち, settled: 入金済み) | | **offset** | Option<**i64**> | 取得レコードのオフセット (デフォルト: 0) | | **limit** | Option<**i32**> | 取得レコードの件数 (デフォルト: 20, 最大: 100) | | ### Return type [**crate::models::InvoiceIndexResponse**](invoiceIndexResponse.md) ### 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_invoice > crate::models::InvoiceResponse update_invoice(id, invoice_update_params) 請求書の更新

概要

指定した事業所の請求書を更新する

注意点

### Parameters Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **i32** | 請求書ID | [required] | **invoice_update_params** | Option<[**InvoiceUpdateParams**](InvoiceUpdateParams.md)> | 請求書の更新 | | ### Return type [**crate::models::InvoiceResponse**](invoiceResponse.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)