入出荷区分情報取得
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" \ -d 'access_token=xxxxxxxxxxxxxx&refresh_token=xxxxxxxxxxxxxx&wait_flag=1' \"https://api.next-engine.org/api_v1_system_iotype/info"// POST /api_v1_system_iotype/info - 入出荷区分情報取得const params = new URLSearchParams({ access_token: '<access_token>',})const res = await fetch('https://api.next-engine.org/api_v1_system_iotype/info', { method: 'POST', headers: { 'content-type': 'application/x-www-form-urlencoded' }, body: params,})const json = await res.json()if (json.result !== 'success') throw new Error(json.message ?? json.code)console.log(json.data)# POST /api_v1_system_iotype/info - 入出荷区分情報取得import requests
params = { 'access_token': '<access_token>',}res = requests.post( 'https://api.next-engine.org/api_v1_system_iotype/info', data=params,)json = res.json()if json['result'] != 'success': raise RuntimeError(json.get('message') or json.get('code'))print(json.get('data'))Request Bodyrequired
Section titled “Request Bodyrequired”object
Access_token取得により取得した値
Access_token取得により取得した値 / 【指定してaccess_tokenの有効期限が切れた場合】 正常に出力パラメータが設定されaccess_tokenとrefresh_tokenが新しい値に更新されます 【省略してaccess_tokenの有効期限が切れた場合】 出力パラメータ「result」の値がredirectになります(成功時以外の出力パラメータ参照)
1:メイン機能過負荷でも可能な限りエラーにせず実行1以外:メイン機能過負荷の場合、003002のエラーを返却 / 詳細はパラメータ共通事項「待機フラグについて」を参照して下さい / 省略時: 1以外とする
Example generated
access_token=example&refresh_token=example&wait_flag=exampleResponses
Section titled “Responses”実行結果 (result が success / error / redirect のいずれか)
object
success / success以外の場合の出力パラメータは成功時以外の出力パラメータ参照
入力パラメータで指定したaccess_token/新たに発行されたaccess_token / 有効なrefresh_tokenを指定してaccess_tokenの有効期限がきれた場合、新たに発行(この時点から1日有効)されたaccess_tokenになります
入力パラメータで指定したrefresh_token/新たに発行されたrefresh_token / access_tokenが新しく発行された場合、新たに発行(この時点から3日有効)されたrefresh_tokenになります
入力パラメータで指定したaccess_token/新たに発行されたaccess_tokenの有効期限日時
入力パラメータで指定したrefresh_token/新たに発行されたrefresh_tokenの有効期限日時
検索結果の件数
検索結果の連想配列(JSONのオブジェクト型) / 検索対象の全フィールドを返却します
object
入出荷区分 / 文字列型
入出荷名 / 文字列型
Example
{ "result": "success", "count": "16", "data": [ { "io_type_id": "0", "io_type_name": "出荷" }, { "io_type_id": "74", "io_type_name": "予約在庫出庫" }, { "io_type_id": "73", "io_type_name": "予約在庫入庫" }, { "io_type_id": "72", "io_type_name": "不良品出庫" }, { "io_type_id": "71", "io_type_name": "不良品入庫" }, { "io_type_id": "70", "io_type_name": "不良品への振替" }, { "io_type_id": "60", "io_type_name": "欠品" }, { "io_type_id": "50", "io_type_name": "他勘定入庫" }, { "io_type_id": "40", "io_type_name": "他勘定出庫" }, { "io_type_id": "30", "io_type_name": "仕入返品" }, { "io_type_id": "22", "io_type_name": "仕入修正" }, { "io_type_id": "20", "io_type_name": "仕入" }, { "io_type_id": "12", "io_type_name": "出荷確定戻し" }, { "io_type_id": "11", "io_type_name": "売上返品戻し" }, { "io_type_id": "10", "io_type_name": "売上返品" }, { "io_type_id": "99", "io_type_name": "棚卸" } ], "access_token": "xxxxxxxxxxx", "access_token_end_date": "2017-04-13 18:24:53", "refresh_token": "xxxxxxxxxxx", "refresh_token_end_date": "2017-04-15 18:24:53"}クライアントエラー (HTTP ステータス自体は 200 + result=error で返ることが多い)
失敗時の応答。パラメータ共通事項の「成功時以外の出力パラメータ」を参照
object
Error(code にエラー原因のメッセージコード、message にエラーメッセージ)または redirect(再ログインのため uid・state 取得にリダイレクトする)
エラーコード
object
Example generated
{ "result": "example", "code": "example", "message": [ {} ]}