コンテンツにスキップ
トレカクラウド
Esc
↑↓移動↵開く⌘Jプレビュー

カードマスタを検索する

名前、カード番号、JAN、IDで有効なカードを検索します。最大25件です。

GET/cards
認証
AuthorizationOAuth2 アクセストークン · header必須

認可コードフロー(PKCE S256 必須)。認可・トークン・更新のリクエストには resource=https://api.toreca-cloud.com/partner/v1 を付けます。アクセストークンは15分、リフレッシュトークンは90日有効で、更新のたびに入れ替わります。

スコープ:inventory:read
クエリパラメーター
searchstring必須
最小長 1 · 最大長 150
limitinteger
最小 1 · 最大 25 · デフォルト: 25
レスポンス
200

カード

cardsCard[]必須
プロパティを表示
Card の配列
idstring<uuid>
namestring
localizedNamesobject
cardNumberstring | null
setTotalRawstring | null
janCodestring | null
languageCodestring
variantstring | null
finishstring | null
imageUrlstring<uri> | null
rarityobject | null
プロパティを表示
codestring
namestring
setobject | null
プロパティを表示
idstring<uuid>
codestring
namestring
nameEnstring | null
gameGame
プロパティを表示
idstring<uuid>
codestring
namestring
snkrdunkSnkrdunkProduct | null

スニダンの商品。店舗がカードマスタでスニダンURLを設定していればそれ(消していれば null)、なければ共通のカードマスタの商品。

プロパティを表示
いずれか 1 つ:
SnkrdunkProduct
productIdstring必須
^[1-9][0-9]*$ に一致
urlstring<uri>必須
null
null
401

invalid_token。トークンがない、期限切れ、または別のリソース向けです。

errorstring必須

エラーのコード。主なものは次のとおりです。今後、値が増えることがあります。

  • 400:invalid_request(パラメーターや本文が正しくない)、invalid_cursor
  • 401:invalid_token
  • 403:insufficient_scope、connection_revoked、client_disabled、forbidden、ip_not_allowed
  • 404:not_found
  • 409:conflict(同時に更新された。読み直してやり直す)、idempotency_conflict(requestId を別の内容に流用した)、receipt_not_confirmed(お客様の着金確認待ちの買取品)
  • 422 個体:unit_unavailable(在庫にない)、unit_not_allocated(この連携先に割り当てられていない)、unit_not_found
  • 422 確保:invalid_expiry、hold_shipped、hold_cancelled、hold_confirmed、hold_blocked、sale_amount_required(売値も時価もない)
  • 422 掲載・配送:commitment_not_on_sale、commitment_not_allocated、commitment_shipping、commitment_blocked、commitment_closed、commitment_not_on_shipment、shipment_shipped、shipment_cancelled、shipment_not_shipped、shipment_blocked、shipment_refused
  • 422 移動:invalid_location、location_inactive、different_site、same_site、mixed_sites、invalid_site、site_inactive、wrong_site、unit_not_on_transfer、transfer_line_closed、unit_not_on_checkout、move_refused、transfer_refused、checkout_refused、return_refused
  • 422 そのほか:invalid_webhook_url、invalid_generated_at
  • 429:rate_limited
  • 503:photo_unavailable
scopestring

insufficient_scope のとき、足りない権限

requestIdstring<uuid>
inventoryItemIdsstring<uuid>[]
holdIdsstring<uuid>[]
commitmentIdsstring<uuid>[]
403

insufficient_scope、connection_revoked、client_disabled、forbidden のいずれかです。

errorstring必須

エラーのコード。主なものは次のとおりです。今後、値が増えることがあります。

  • 400:invalid_request(パラメーターや本文が正しくない)、invalid_cursor
  • 401:invalid_token
  • 403:insufficient_scope、connection_revoked、client_disabled、forbidden、ip_not_allowed
  • 404:not_found
  • 409:conflict(同時に更新された。読み直してやり直す)、idempotency_conflict(requestId を別の内容に流用した)、receipt_not_confirmed(お客様の着金確認待ちの買取品)
  • 422 個体:unit_unavailable(在庫にない)、unit_not_allocated(この連携先に割り当てられていない)、unit_not_found
  • 422 確保:invalid_expiry、hold_shipped、hold_cancelled、hold_confirmed、hold_blocked、sale_amount_required(売値も時価もない)
  • 422 掲載・配送:commitment_not_on_sale、commitment_not_allocated、commitment_shipping、commitment_blocked、commitment_closed、commitment_not_on_shipment、shipment_shipped、shipment_cancelled、shipment_not_shipped、shipment_blocked、shipment_refused
  • 422 移動:invalid_location、location_inactive、different_site、same_site、mixed_sites、invalid_site、site_inactive、wrong_site、unit_not_on_transfer、transfer_line_closed、unit_not_on_checkout、move_refused、transfer_refused、checkout_refused、return_refused
  • 422 そのほか:invalid_webhook_url、invalid_generated_at
  • 429:rate_limited
  • 503:photo_unavailable
scopestring

insufficient_scope のとき、足りない権限

requestIdstring<uuid>
inventoryItemIdsstring<uuid>[]
holdIdsstring<uuid>[]
commitmentIdsstring<uuid>[]
試してみる
サーバー
認証
パラメーター
リクエスト
curl -X GET 'https://api.toreca-cloud.com/partner/v1/cards?search=string' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json'
レスポンス
{
  "cards": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "name": "string",
      "localizedNames": {
        "property1": "string",
        "property2": "string"
      },
      "cardNumber": "string",
      "setTotalRaw": "string",
      "janCode": "string",
      "languageCode": "string",
      "variant": "string",
      "finish": "string",
      "imageUrl": "http://example.com",
      "rarity": {
        "code": "string",
        "name": "string"
      },
      "set": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "code": "string",
        "name": "string",
        "nameEn": "string"
      },
      "game": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "code": "string",
        "name": "string"
      },
      "snkrdunk": {
        "productId": "string",
        "url": "https://snkrdunk.com/apparels/123456"
      }
    }
  ]
}

このページは役に立ちましたか?