All URIs are relative to https://api.freee.co.jp
Method | HTTP request | Description |
---|---|---|
create_item | POST /api/1/items | 品目の作成 |
destroy_item | DELETE /api/1/items/{id} | 品目の削除 |
get_item | GET /api/1/items/{id} | 品目の取得 |
get_items | GET /api/1/items | 品目一覧の取得 |
update_item | PUT /api/1/items/{id} | 品目の更新 |
crate::models::ItemResponse create_item(item_params) 品目の作成
指定した事業所の品目を作成する
Name | Type | Description | Required | Notes |
---|---|---|---|---|
item_params | Option<ItemParams> | 品目の作成 |
- 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]
destroy_item(id, company_id) 品目の削除
指定した事業所の品目を削除する
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | i32 | 品目ID | [required] | |
company_id | i32 | 事業所ID | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ItemResponse get_item(company_id, id) 品目の取得
指定した事業所の品目を取得する
Name | Type | Description | Required | Notes |
---|---|---|---|---|
company_id | i32 | 事業所ID | [required] | |
id | i32 | 品目ID | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetItems200Response get_items(company_id, start_update_date, end_update_date, offset, limit) 品目一覧の取得
指定した事業所の品目一覧を取得する
Name | Type | Description | Required | Notes |
---|---|---|---|---|
company_id | i32 | 事業所ID | [required] | |
start_update_date | Option<String> | 更新日で絞り込み:開始日(yyyy-mm-dd) | ||
end_update_date | Option<String> | 更新日で絞り込み:終了日(yyyy-mm-dd) | ||
offset | Option<i32> | 取得レコードのオフセット (デフォルト: 0) | ||
limit | Option<i32> | 取得レコードの件数 (デフォルト: 50, 最小: 1, 最大: 3000) |
crate::models::GetItems200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::ItemResponse update_item(id, item_params) 品目の更新
指定した事業所の品目を更新する
Name | Type | Description | Required | Notes |
---|---|---|---|---|
id | i32 | 品目ID | [required] | |
item_params | Option<ItemParams> | 品目の更新 |
- 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]