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

卸先マスタ検索

POST
/api_v1_master_wholesale/search
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'access_token=xxxxxxxxxxxxxx&refresh_token=xxxxxxxxxxxxxx&wait_flag=1&fields=wholesale_id, wholesale_name,wholesale_kana,wholesale_deleted_flag&wholesale_deleted_flag-eq=0&offset=0&limit=100' https://api.next-engine.org/api_v1_master_wholesale/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」を指定した場合、「商品コード、商品名、在庫数、仕入先名」を検索結果として取得します / 指定できる項目名: wholesale_id, wholesale_name, wholesale_kana, wholesale_post_name, wholesale_zip_code, wholesale_address1, wholesale_address2, wholesale_phone, wholesale_fax, wholesale_mail_address, wholesale_destination_pic_name, wholesale_destination_pic_kana, wholesale_destination_zip_code, wholesale_destination_address1, wholesale_destination_address2, wholesale_destination_phone, wholesale_delivery_id, wholesale_delivery_name, wholesale_payment_method_id, wholesale_payment_method_name, wholesale_retail_ratio, wholesale_destination_no, wholesale_credit_line_price, wholesale_closing_day, wholesale_note, wholesale_deleted_flag, wholesale_creation_date, wholesale_last_modified_date, wholesale_last_modified_null_safe_date, wholesale_creator_id, wholesale_creator_name, wholesale_last_modified_by_id, wholesale_last_modified_by_null_safe_id, wholesale_last_modified_by_name, wholesale_last_modified_by_null_safe_name

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
wholesale_id

卸先コード / 文字列型

string | integer | number | boolean | null
wholesale_name

卸先名 / 文字列型

string | integer | number | boolean | null
wholesale_kana

卸先カナ / 文字列型

string | integer | number | boolean | null
wholesale_post_name

部署名 / 文字列型

string | integer | number | boolean | null
wholesale_zip_code

郵便番号 / 文字列型

string | integer | number | boolean | null
wholesale_address1

住所1 / 文字列型

string | integer | number | boolean | null
wholesale_address2

住所2 / 文字列型

string | integer | number | boolean | null
wholesale_phone

電話番号 / 文字列型

string | integer | number | boolean | null
wholesale_fax

FAX番号 / 文字列型

string | integer | number | boolean | null
wholesale_mail_address

メールアドレス / 文字列型

string | integer | number | boolean | null
wholesale_destination_pic_name

送付先名 / 文字列型

string | integer | number | boolean | null
wholesale_destination_pic_kana

送付先カナ / 文字列型

string | integer | number | boolean | null
wholesale_destination_zip_code

送付先郵便番号 / 文字列型

string | integer | number | boolean | null
wholesale_destination_address1

送付先住所1 / 文字列型

string | integer | number | boolean | null
wholesale_destination_address2

送付先住所2 / 文字列型

string | integer | number | boolean | null
wholesale_destination_phone

送付先電話番号 / 文字列型

string | integer | number | boolean | null
wholesale_delivery_id

発送方法区分 / 文字列型

string | integer | number | boolean | null
wholesale_delivery_name

発送方法名 / 文字列型

string | integer | number | boolean | null
wholesale_payment_method_id

支払区分 / 文字列型

string | integer | number | boolean | null
wholesale_payment_method_name

支払名 / 文字列型

string | integer | number | boolean | null
wholesale_retail_ratio

掛率 / 数値型

string | integer | number | boolean | null
wholesale_destination_no

卸先番号 / 数値型

string | integer | number | boolean | null
wholesale_credit_line_price

与信枠(円) / 数値型

string | integer | number | boolean | null
wholesale_closing_day

締日 / 数値型

string | integer | number | boolean | null
wholesale_note

備考 / 文字列型

string | integer | number | boolean | null
wholesale_deleted_flag

削除フラグ / 文字列型

string | integer | number | boolean | null
wholesale_creation_date

作成日 / 日時型

string | integer | number | boolean | null
wholesale_last_modified_date

最終更新日 / 日時型

string | integer | number | boolean | null
wholesale_last_modified_null_safe_date

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

string | integer | number | boolean | null
wholesale_creator_id

作成担当者ID / 数値型

string | integer | number | boolean | null
wholesale_creator_name

作成担当者名 / 文字列型

string | integer | number | boolean | null
wholesale_last_modified_by_id

最終更新者ID / 数値型

string | integer | number | boolean | null
wholesale_last_modified_by_null_safe_id

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

string | integer | number | boolean | null
wholesale_last_modified_by_name

最終更新者名 / 文字列型

string | integer | number | boolean | null
wholesale_last_modified_by_null_safe_name

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

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

Example

{
"result": "success",
"count": "1",
"data": [
{
"wholesale_id": "5555",
"wholesale_name": "hcm - wholesaler",
"wholesale_kana": "",
"wholesale_deleted_flag": "0"
}
],
"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 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": [
{}
]
}