拠点と保管場所を取得する
無効なものも含めて、店舗のすべての拠点と保管場所を返します。
GET
/inventory/sitesAuthorization
AuthorizationOAuth2 access token · headerrequired認可コードフロー(PKCE S256 必須)。認可・トークン・更新のリクエストには resource=https://api.toreca-cloud.com/partner/v1 を付けます。アクセストークンは15分、リフレッシュトークンは90日有効で、更新のたびに入れ替わります。
Scopes:
inventory:readResponses
200
拠点の一覧
sitesSite[]requiredShow propertiesHide properties
Array of
Siteidstring<uuid>codestringnamestringkindstringcountryCodestringtimezonestringisActivebooleancreatedAtstring<date-time>updatedAtstring<date-time>locationsLocation[]Show propertiesHide properties
Array of
Locationidstring<uuid>siteIdstring<uuid>codestringnamestringkindstringisActivebooleancreatedAtstring<date-time>updatedAtstring<date-time>401
invalid_token。トークンがない、期限切れ、または別のリソース向けです。
errorstringrequiredエラーのコード
scopestringinsufficient_scope のとき、足りない権限
403
insufficient_scope、connection_revoked、client_disabled、forbidden のいずれかです。
errorstringrequiredエラーのコード
scopestringinsufficient_scope のとき、足りない権限

