コンテンツにスキップ

在庫入出庫履歴件数取得

POST
/api_v1_master_stockiohistory/count
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'access_token=xxxxxxxxxxxxxx&refresh_token=xxxxxxxxxxxxxx&wait_flag=1&stock_io_history_deleted_flag-eq=0' https://api.next-engine.org/api_v1_master_stockiohistory/count
Media type application/x-www-form-urlencoded
object
access_token
required

OAuth2 アクセストークン (必須)

string
refresh_token

OAuth2 リフレッシュトークン (access_token 期限切れ時の自動更新に使用)

string
wait_flag

同期実行フラグ。“1” 指定で処理完了を待つ

string
Allowed values: 0 1
fields

取得するフィールドをカンマ区切りで指定 (search 系のみ)

string
offset

検索開始位置 (search 系のみ)

integer
limit

取得件数 (search 系のみ)

integer
>= 1

実行結果 (result が success / error / redirect のいずれか)

Media type application/json
object
result
required

実行結果ステータス

string
Allowed values: success error redirect
code

エラー時のエラーコード

string
message
One of:
string
access_token

更新後のアクセストークン

string
access_token_end_date

アクセストークン有効期限 (YYYY-MM-DD HH:MM:SS)

string
refresh_token

更新後のリフレッシュトークン

string
refresh_token_end_date

リフレッシュトークン有効期限

string
data

エンドポイント固有のレスポンスデータ

count

Count/search 系のヒット件数 (form-urlencoded レスポンスでは文字列で返ることがある)

integer | string
data
Array<object>
object
stock_io_history_id

在庫入出庫履歴ID / 数値型

string | integer | number | boolean | null
stock_io_history_shop_id

店舗コード / 数値型

string | integer | number | boolean | null
stock_io_history_goods_id

商品コード / 文字列型

string | integer | number | boolean | null
stock_io_history_date

入出庫日 / 日時型

string | integer | number | boolean | null
stock_io_history_before_stock_quantity

更新前在庫数 / 数値型

string | integer | number | boolean | null
stock_io_history_after_stock_quantity

更新後在庫数 / 数値型

string | integer | number | boolean | null
stock_io_history_before_bad_stock_quantity

更新前不良在庫数 / 数値型

string | integer | number | boolean | null
stock_io_history_after_bad_stock_quantity

更新後不良在庫数 / 数値型

string | integer | number | boolean | null
stock_io_history_quantity

入出庫数 / 数値型

string | integer | number | boolean | null
stock_io_history_cut_form_id

伝票番号 / 数値型 / 入出庫した処理別の伝票番号が設定される。例えば受注伝票により出庫された場合は受注伝票の伝票番号が設定される。

string | integer | number | boolean | null
stock_io_history_io_flag

入出庫フラグ / 文字列型 / 0:入庫、1:出庫

string | integer | number | boolean | null
stock_io_history_io_type_id

入出庫区分 / 文字列型

string | integer | number | boolean | null
stock_io_history_io_type_name

入出庫名 / 文字列型

string | integer | number | boolean | null
stock_io_history_reason

事由 / 文字列型

string | integer | number | boolean | null
stock_io_history_pic_id

担当者ID / 数値型

string | integer | number | boolean | null
stock_io_history_pic_name

担当者名 / 文字列型

string | integer | number | boolean | null
stock_io_history_deleted_flag

削除フラグ / 文字列型

string | integer | number | boolean | null
stock_io_history_creation_date

作成日 / 日時型

string | integer | number | boolean | null
stock_io_history_last_modified_date

最終更新日 / 日時型

string | integer | number | boolean | null
stock_io_history_last_modified_null_safe_date

最終更新日 / 日時型 / NULLの場合作成日

string | integer | number | boolean | null
stock_io_history_creator_id

作成担当者ID / 数値型

string | integer | number | boolean | null
stock_io_history_creator_name

作成担当者名 / 文字列型

string | integer | number | boolean | null
stock_io_history_last_modified_by_id

最終更新者ID / 数値型

string | integer | number | boolean | null
stock_io_history_last_modified_by_null_safe_id

最終更新者ID / 数値型 / NULLの場合作成者ID

string | integer | number | boolean | null
stock_io_history_last_modified_by_name

最終更新者名 / 文字列型

string | integer | number | boolean | null
stock_io_history_last_modified_by_null_safe_name

最終更新者名 / 文字列型 / NULLの場合作成者名

string | integer | number | boolean | null
key
additional properties
any
Example
{
"result": "success",
"count": "66",
"access_token": "xxxxx",
"access_token_end_date": "2017-04-15 13:03:47",
"refresh_token": "xxxxx",
"refresh_token_end_date": "2017-04-17 13:03:47"
}

クライアントエラー (HTTP ステータス自体は 200 + result=error で返ることが多い)

Media type application/json
object
result
required

実行結果ステータス

string
Allowed values: success error redirect
code

エラー時のエラーコード

string
message
One of:
string
access_token

更新後のアクセストークン

string
access_token_end_date

アクセストークン有効期限 (YYYY-MM-DD HH:MM:SS)

string
refresh_token

更新後のリフレッシュトークン

string
refresh_token_end_date

リフレッシュトークン有効期限

string
data

エンドポイント固有のレスポンスデータ

count

Count/search 系のヒット件数 (form-urlencoded レスポンスでは文字列で返ることがある)

integer | string
Example
{
"result": "success"
}