コンテンツにスキップ
お問い合わせ

店舗マスタ検索

POST
/api_v1_master_shop/search
curl -X POST -H 'content-type: application/x-www-form-urlencoded' \
-d 'access_token=xxx&refresh_token=xxx&wait_flag=1&fields=xxx&shop_id-eq=xxx' \
https://api.next-engine.org/api_v1_master_shop/search
Media typeapplication/x-www-form-urlencoded
object
access_token
required

Access_token取得により取得した値

string
refresh_token

Access_token取得により取得した値 / 【指定してaccess_tokenの有効期限が切れた場合】 正常に出力パラメータが設定されaccess_tokenとrefresh_tokenが新しい値に更新されます 【省略してaccess_tokenの有効期限が切れた場合】 出力パラメータ「result」の値がredirectになります(成功時以外の出力パラメータ参照)

string
wait_flag

1:メイン機能過負荷でも可能な限りエラーにせず実行1以外:メイン機能過負荷の場合、003002のエラーを返却 / 詳細はパラメータ共通事項「待機フラグについて」を参照して下さい / 省略時: 1以外とする

string
fields
required

検索結果で取得するフィールドをカンマ区切りで指定(SELECT句相当) / 例:商品マスタ検索で「goods_id, goods_name, stock_quantity, supplier_name」を指定した場合、「商品コード、商品名、在庫数、仕入先名」を検索結果として取得します / 指定できる項目名: shop_id, shop_name, shop_kana, shop_abbreviated_name, shop_handling_goods_name, shop_close_date, shop_note, shop_mall_id, shop_authorization_type_id, shop_authorization_type_name, shop_tax_id, shop_tax_name, shop_currency_unit_id, shop_currency_unit_name, shop_tax_calculation_sequence_id, shop_type_id, shop_deleted_flag, shop_creation_date, shop_last_modified_date, shop_last_modified_null_safe_date, shop_creator_id, shop_creator_name, shop_last_modified_by_id, shop_last_modified_by_null_safe_id, shop_last_modified_by_name, shop_last_modified_by_null_safe_name, mall_id, mall_name, mall_kana, mall_note, mall_country_id, mall_deleted_flag

string
offset

オフセットの数値(OFFSET句相当) / 0:一番最初の検索結果から取得、1:2番めの検索結果から取得・・・ / 省略時: 0

integer
0
limit

取得数の数値(LIMIT句相当) / 省略時: 10000

integer
default: 10000 >= 1
key
additional properties

キーは「フィールド名-比較演算子」(WHERE句のカラムと比較演算子相当) / 検索条件の値(WHERE句の値相当) / 例:商品マスタ検索でパラメータ:goods_id-like、値:“%-red”と指定した場合、商品コードが*-redの商品マスタを検索します

string

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

Media typeapplication/json
object
result
required

success / success以外の場合の出力パラメータは成功時以外の出力パラメータ参照

string
access_token

入力パラメータで指定したaccess_token/新たに発行されたaccess_token / 有効なrefresh_tokenを指定してaccess_tokenの有効期限がきれた場合、新たに発行(この時点から1日有効)されたaccess_tokenになります

string
access_token_end_date

Access_tokenの有効期限切れ日時

string
refresh_token

入力パラメータで指定したrefresh_token/新たに発行されたrefresh_token / access_tokenが新しく発行された場合、新たに発行(この時点から3日有効)されたrefresh_tokenになります

string
refresh_token_end_date

Refresh_tokenの有効期限切れ日時

string
count

検索結果の件数

integer | string
data

検索結果の連想配列(JSONのオブジェクト型)

Array<object>
object
shop_id

店舗ID / 数値型

string | integer | number | boolean | null
shop_name

店舗名 / 文字列型

string | integer | number | boolean | null
shop_kana

店舗名カナ / 文字列型

string | integer | number | boolean | null
shop_abbreviated_name

店舗略名 / 文字列型

string | integer | number | boolean | null
shop_handling_goods_name

取扱商品名 / 文字列型

string | integer | number | boolean | null
shop_close_date

閉店日 / 日時型

string | integer | number | boolean | null
shop_note

備考 / 文字列型

string | integer | number | boolean | null
shop_mall_id

モールID / 数値型

string | integer | number | boolean | null
shop_authorization_type_id

オーソリ区分ID / 文字列型

string | integer | number | boolean | null
shop_authorization_type_name

オーソリ区分名 / 文字列型

string | integer | number | boolean | null
shop_tax_id

税区分ID / 文字列型

string | integer | number | boolean | null
shop_tax_name

税区分名 / 文字列型

string | integer | number | boolean | null
shop_currency_unit_id

通貨単位区分ID / 文字列型

string | integer | number | boolean | null
shop_currency_unit_name

通貨単位区分名 / 文字列型

string | integer | number | boolean | null
shop_tax_calculation_sequence_id

税計算順序 / 文字列型 / 0:商品計で税計算,1:単価から税計算

string | integer | number | boolean | null
shop_type_id

後払い.com サイトID / 文字列型

string | integer | number | boolean | null
shop_deleted_flag

削除フラグ / 文字列型

string | integer | number | boolean | null
shop_creation_date

作成日 / 日時型

string | integer | number | boolean | null
shop_last_modified_date

最終更新日 / 日時型

string | integer | number | boolean | null
shop_last_modified_null_safe_date

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

string | integer | number | boolean | null
shop_creator_id

作成担当者ID / 数値型

string | integer | number | boolean | null
shop_creator_name

作成担当者名 / 文字列型

string | integer | number | boolean | null
shop_last_modified_by_id

最終更新者ID / 数値型

string | integer | number | boolean | null
shop_last_modified_by_null_safe_id

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

string | integer | number | boolean | null
shop_last_modified_by_name

最終更新者名 / 文字列型

string | integer | number | boolean | null
shop_last_modified_by_null_safe_name

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

string | integer | number | boolean | null
mall_id

モール/カートID / 数値型

string | integer | number | boolean | null
mall_name

モール/カート名 / 文字列型

string | integer | number | boolean | null
mall_kana

モール/カートカナ / 文字列型

string | integer | number | boolean | null
mall_note

備考 / 文字列型

string | integer | number | boolean | null
mall_country_id

国ID / 文字列型

string | integer | number | boolean | null
mall_deleted_flag

削除フラグ / 文字列型

string | integer | number | boolean | null
key
additional properties
any

Example

{
"result": "success",
"count": "1",
"data": [
{
"shop_id": "1",
"shop_name": "Test01",
"shop_kana": "",
"shop_abbreviated_name": "tst1",
"shop_handling_goods_name": null,
"shop_close_date": null,
"shop_note": "",
"shop_mall_id": "1",
"shop_authorization_type_id": "0",
"shop_authorization_type_name": null,
"shop_tax_id": "0",
"shop_tax_name": "税込",
"shop_currency_unit_id": "1",
"shop_currency_unit_name": "円",
"shop_tax_calculation_sequence_id": "1",
"shop_type_id": null,
"shop_deleted_flag": "0",
"shop_creation_date": "2016-12-19 18:04:03",
"shop_last_modified_date": "2016-12-19 18:04:03",
"shop_last_modified_null_safe_date": "2016-12-19 18:04:03",
"shop_creator_id": "2",
"shop_creator_name": "xxx",
"shop_last_modified_by_id": "2",
"shop_last_modified_by_null_safe_id": "2",
"shop_last_modified_by_name": "xxx",
"shop_last_modified_by_null_safe_name": "xxx"
}
],
"access_token": "xxx",
"access_token_end_date": "2017-04-19 11:21:13",
"refresh_token": "xxx",
"refresh_token_end_date": "2017-04-21 11:21:13"
}

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

Media typeapplication/json

失敗時の応答。パラメータ共通事項の「成功時以外の出力パラメータ」を参照

object
result
required

Error(code にエラー原因のメッセージコード、message にエラーメッセージ)または redirect(再ログインのため uid・state 取得にリダイレクトする)

string
code

エラーコード

string
message
One of:
string

Example generated

{
"result": "example",
"code": "example",
"message": [
{}
]
}