Account

API Endpoints #

Account #

GET v1/user #

https://tw.supplier.yahoo.com/api/spa/v1/user

取得供應商使用者資訊。僅會回傳目前登入使用者之資訊。
Parameters
Parameter Name Type Required Note
fields String N Options:
  • -profile
  • -yContactWindows
Only supported when querying 購中 user

Output

  • HTTP Status Code: 200 (OK)
  • Object: User
Error
HTTP Status Code Error Code Description
400 Invalid input
400 40000005 Contains illegal character(s)
401 40100001 Missing or bad authentication
401 40100002 Invalid cookie
401 40100003 Missing or bad authentication
401 40100004 Check wssid failed
401 40100006 Cookie has expired
404 40404000 User not found
500 50000006 Internal server error
500 50000020 Internal server error
Example
Case Request Response Status Response
取得購中供應商資訊 Cookie: supplier cookie
GET /spa/v1/user?fields=-profile,-yContactWindows
HTTP/1.1 200 Response
取得購中供應商資訊與所有設定細節 Cookie: supplier cookie
GET /spa/v1/user
HTTP/1.1 200 Response
取得購中店供應商資訊 Cookie: seller cookie
GET /spa/v1/user
HTTP/1.1 200 Response