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

買取強化対象の一覧を取得する

いま掲載中の買取強化対象を、強化価格の高い順に返します。開始前、一時停止中、終了したもの、期限が過ぎたものは返しません。

許可したメンバーには、店舗での purchases.read 権限が必要です。

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

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

スコープ:purchase-boosts:read
クエリパラメーター
includestring

filled を指定すると、残り枚数が0の強化も status: "filled" で返します。

デフォルト: "open"
許可される値:openfilled
レスポンス
200

買取強化対象の一覧

boostsPurchaseBoost[]必須
プロパティを表示
PurchaseBoost の配列
idstring<uuid>必須
targetBoostTarget必須
プロパティを表示
いずれか 1 つ:
object
kindstring必須
cardBoostCard必須

対象のカード

プロパティを表示
idstring<uuid>
namestring
localizedNamesobject
cardNumberstring | null
setTotalRawstring | null
languageCodestring
imageUrlstring<uri> | null
rarityobject | null
プロパティを表示
codestring
namestring
setobject | null
プロパティを表示
idstring<uuid>
codestring
namestring
gameGame
プロパティを表示
idstring<uuid>
codestring
namestring
gradeGrade | null必須

対象のグレード。null はグレードを問いません。

プロパティを表示
いずれか 1 つ:
Grade
idstring<uuid>
codestring
labelstring

表示名(例:PSA 10)

serviceCodestring
serviceNamestring
serviceKindstring

third_party は外部の鑑定、internal は店舗の状態ランク

許可される値:third_partyinternal
null
null
object
kindstring必須
productBoostProduct必須

対象のBOX・パック・デッキ

プロパティを表示
idstring<uuid>
namestring
productKindstring

box、pack、deck など

janCodestring | null
languageCodestring
imageUrlstring<uri> | null
gameGame
priceMinorinteger必須

1枚あたりの強化価格(通貨の最小単位。円なら円の整数)

currencystring必須

ISO 4217(例:JPY)

remainingQuantityinteger | null必須

あと何枚買い取るか。null は上限なし。

最小 0
statusstring必須

filled は include=filled のときだけ返ります。

許可される値:openfilled
startsAtstring<date-time> | null必須

掲載の開始。null は指定なし。

endsAtstring<date-time> | null必須

掲載の終了。この時刻になった時点で終わります。null は指定なし。

notestring | null必須

店舗がLPや投稿向けに書いた一言(200文字まで)

updatedAtstring<date-time>必須
pricelessBoostsPricelessBoost[]必須

海外販売の提案から作った強化のうち、店舗が価格を公開していないものを、価格・残り枚数・期間・メモなしで返します。価格を公開したものは boosts に入ります。同じ対象は1件にまとめ、boosts が価格付きで同じ対象を返しているときは入りません。店舗が海外販売を使っていなければ空です。

プロパティを表示
PricelessBoost の配列
targetBoostTarget必須
プロパティを表示
いずれか 1 つ:
object
kindstring必須
cardBoostCard必須

対象のカード

プロパティを表示
idstring<uuid>
namestring
localizedNamesobject
cardNumberstring | null
setTotalRawstring | null
languageCodestring
imageUrlstring<uri> | null
rarityobject | null
プロパティを表示
codestring
namestring
setobject | null
プロパティを表示
idstring<uuid>
codestring
namestring
gameGame
gradeGrade | null必須

対象のグレード。null はグレードを問いません。

プロパティを表示
いずれか 1 つ:
Grade
idstring<uuid>
codestring
labelstring

表示名(例:PSA 10)

serviceCodestring
serviceNamestring
serviceKindstring

third_party は外部の鑑定、internal は店舗の状態ランク

許可される値:third_partyinternal
null
null
object
kindstring必須
productBoostProduct必須

対象のBOX・パック・デッキ

プロパティを表示
idstring<uuid>
namestring
productKindstring

box、pack、deck など

janCodestring | null
languageCodestring
imageUrlstring<uri> | null
gameGame
updatedAtstring<date-time>必須

更新日時

generatedAtstring<date-time>必須

一覧を作った時刻

400

invalid_request。パラメーターが正しくありません。

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>[]
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/purchase-boosts' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json'
レスポンス
{
  "boosts": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "target": {
        "kind": "card",
        "card": {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "name": "string",
          "localizedNames": {
            "property1": "string",
            "property2": "string"
          },
          "cardNumber": "string",
          "setTotalRaw": "string",
          "languageCode": "string",
          "imageUrl": "http://example.com",
          "rarity": {
            "code": "string",
            "name": "string"
          },
          "set": {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "code": "string",
            "name": "string"
          },
          "game": {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "code": "string",
            "name": "string"
          }
        },
        "grade": {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "code": "string",
          "label": "string",
          "serviceCode": "string",
          "serviceName": "string",
          "serviceKind": "third_party"
        }
      },
      "priceMinor": 0,
      "currency": "string",
      "remainingQuantity": 0,
      "status": "open",
      "startsAt": "2019-08-24T14:15:22Z",
      "endsAt": "2019-08-24T14:15:22Z",
      "note": "string",
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "pricelessBoosts": [
    {
      "target": {
        "kind": "card",
        "card": {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "name": "string",
          "localizedNames": {
            "property1": "string",
            "property2": "string"
          },
          "cardNumber": "string",
          "setTotalRaw": "string",
          "languageCode": "string",
          "imageUrl": "http://example.com",
          "rarity": {
            "code": "string",
            "name": "string"
          },
          "set": {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "code": "string",
            "name": "string"
          },
          "game": {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "code": "string",
            "name": "string"
          }
        },
        "grade": {
          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
          "code": "string",
          "label": "string",
          "serviceCode": "string",
          "serviceName": "string",
          "serviceKind": "third_party"
        }
      },
      "updatedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "generatedAt": "2019-08-24T14:15:22Z"
}

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