Skip to content
トレカクラウド
Esc
↑↓navigate↵open⌘Jpreview

Read a card's current values by grade

A read-only POST for up to 200 unique card catalog IDs. Use it as a reference price for cards you hold no unit of.

Each grade’s value is worked out as for a unit of that grade: the shop’s own price when it set one (source: "manual"), else the grade’s latest market price (source: "market"). Only grades with a value are returned, the ungraded one first. Inactive cards are left out; a card with no price has empty values. The order follows ids.

POST/cards/market-values
Authorization
AuthorizationOAuth2 access token · headerrequired

Authorization code flow (PKCE S256 required). Send resource=https://api.toreca-cloud.com/partner/v1 with the authorization, token and refresh requests. Access tokens last 15 minutes; refresh tokens last 90 days and rotate on every refresh.

Scopes:inventory:read
Request body
requiredapplication/json
idsstring<uuid>[]required
min items 1 · max items 200
Responses
200

Success

itemsobject[]required
Show properties
Array of object
idstring<uuid>required
valuesobject[]required
Show properties
Array of object
gradeUnitGrade | nullrequired

The grade; null for a price the shop set without a grade.

Show properties
One of:
UnitGrade
serviceCodestringrequired
serviceNamestringrequired
serviceKindstringrequired
Allowed:third_partyinternal
codestringrequired
labelstringrequired
numericScorenumber | nullrequired
Show properties
One of:
number
number
null
null
null
null
amountMinorintegerrequired
min 0
currencystringrequired
pricedAtstring<date-time>required

When the shop last set its price, or the market price's time

sourcestringrequired
Allowed:manualmarket
400

invalid_request: a parameter is invalid.

errorstringrequired

The error code. The main ones are below; more may be added.

  • 400: invalid_request (bad parameters or body), invalid_cursor
  • 401: invalid_token
  • 403: insufficient_scope, connection_revoked, client_disabled, forbidden, ip_not_allowed
  • 404: not_found
  • 409: conflict (updated at the same time; read again and retry), idempotency_conflict (a requestId reused for different content), receipt_not_confirmed (a purchase awaiting the customer's payment confirmation)
  • 422 units: unit_unavailable (not in stock), unit_not_allocated (not allocated to this partner), unit_not_found
  • 422 holds: invalid_expiry, hold_shipped, hold_cancelled, hold_confirmed, hold_blocked, sale_amount_required (neither a sale price nor a market value)
  • 422 listings and shipments: 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 moves: 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 other: invalid_webhook_url, invalid_generated_at
  • 429: rate_limited
  • 503: photo_unavailable
scopestring

With insufficient_scope, the missing scope

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

invalid_token: the token is missing, expired, or for another resource.

errorstringrequired

The error code. The main ones are below; more may be added.

  • 400: invalid_request (bad parameters or body), invalid_cursor
  • 401: invalid_token
  • 403: insufficient_scope, connection_revoked, client_disabled, forbidden, ip_not_allowed
  • 404: not_found
  • 409: conflict (updated at the same time; read again and retry), idempotency_conflict (a requestId reused for different content), receipt_not_confirmed (a purchase awaiting the customer's payment confirmation)
  • 422 units: unit_unavailable (not in stock), unit_not_allocated (not allocated to this partner), unit_not_found
  • 422 holds: invalid_expiry, hold_shipped, hold_cancelled, hold_confirmed, hold_blocked, sale_amount_required (neither a sale price nor a market value)
  • 422 listings and shipments: 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 moves: 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 other: invalid_webhook_url, invalid_generated_at
  • 429: rate_limited
  • 503: photo_unavailable
scopestring

With insufficient_scope, the missing scope

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

One of insufficient_scope, connection_revoked, client_disabled or forbidden.

errorstringrequired

The error code. The main ones are below; more may be added.

  • 400: invalid_request (bad parameters or body), invalid_cursor
  • 401: invalid_token
  • 403: insufficient_scope, connection_revoked, client_disabled, forbidden, ip_not_allowed
  • 404: not_found
  • 409: conflict (updated at the same time; read again and retry), idempotency_conflict (a requestId reused for different content), receipt_not_confirmed (a purchase awaiting the customer's payment confirmation)
  • 422 units: unit_unavailable (not in stock), unit_not_allocated (not allocated to this partner), unit_not_found
  • 422 holds: invalid_expiry, hold_shipped, hold_cancelled, hold_confirmed, hold_blocked, sale_amount_required (neither a sale price nor a market value)
  • 422 listings and shipments: 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 moves: 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 other: invalid_webhook_url, invalid_generated_at
  • 429: rate_limited
  • 503: photo_unavailable
scopestring

With insufficient_scope, the missing scope

requestIdstring<uuid>
inventoryItemIdsstring<uuid>[]
holdIdsstring<uuid>[]
commitmentIdsstring<uuid>[]
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://api.toreca-cloud.com/partner/v1/cards/market-values' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "ids": [
    "497f6eca-6276-4993-bfeb-53cbbbba6f08"
  ]
}'
Response
{
  "items": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "values": [
        {
          "grade": {
            "serviceCode": "string",
            "serviceName": "string",
            "serviceKind": "third_party",
            "code": "string",
            "label": "string",
            "numericScore": 0
          },
          "amountMinor": 0,
          "currency": "JPY",
          "pricedAt": "2019-08-24T14:15:22Z",
          "source": "manual"
        }
      ]
    }
  ]
}

Was this page helpful?