API reference · Types
LineLookupLine
Part of the response of POST /lines/lookup.
Type: object
Example
{
"sellerId": 0,
"skuId": 0,
"seller": {
"name": "string"
},
"product": {
"productId": 0,
"name": "string",
"set": "string",
"image": "string"
},
"sku": {
"condition": "string",
"language": "string",
"finish": "string"
},
"currentPrice": 0,
"available": 0
}Fields
sellerIdinteger requiredThe requested seller id. Together with
skuId, identifies the cart line.skuIdinteger requiredThe requested SKU id. Together with
sellerId, identifies the cart line.sellerobject or null requiredNull when the seller is unknown.
Show child fieldsHide child fields
seller.string requiredname Seller display name; not a handle/slug.
productobject or null requiredCanonical catalog display data; null when the SKU is unknown.
Show child fieldsHide child fields
product.integer requiredproductId See Canonical catalog in Core concepts.
product.string or null requiredname product.string or null requiredset The card set or expansion.
product.string or null requiredimage The product image URL shown to the buyer.
skuobject or null requiredThe catalog condition, language, and finish. Null when the SKU is unknown.
Show child fieldsHide child fields
sku.string or null requiredcondition The normalized condition assigned to the card.
sku.string or null requiredlanguage The language of the card printing.
sku.string or null requiredfinish The physical finish or foil treatment of the card.
currentPriceinteger or null requiredThe current listing price in integer cents. Null when there is no live listing for this pair.
availableinteger requiredOn-hand minus committed units. Zero when there is no live listing for this pair.
sellerUnavailableobjectPresent when the store cannot accept checkout; absent when it is ready. The response keeps the line and its current
currentPriceandavailablevalues. Use this field to decide how to display the line in the cart. If several lines belong to the same unavailable store, each includes the same block.Show child fieldsHide child fields
sellerUnavailable.integer requiredsellerId The unavailable store id, matching the cart line.
sellerUnavailable.string requiredreason SELLER_ON_VACATIONmeans the store has enabled vacation mode and is otherwise ready.SELLER_UNAVAILABLEcovers all other causes without exposing the store's private account status.Constraints: allowed values:
SELLER_ON_VACATION,SELLER_UNAVAILABLE
policyobjectThe eligibility and buyer-protection decision for this line.
Show child fieldsHide child fields
policy.string requiredstatus Constraints: allowed values:
eligible,blockedpolicy.object or null requirederror Error details for a failed request.
Show child fieldsHide child fields
policy.string requirederror. code The stable machine-readable code for this result.
policy.string requirederror. message A human-readable explanation of the result.
policy.string requirederror. action How to resolve this issue.
disclosuresListingor nullDisclosures Provenance, grading, and authenticity statements shown to the buyer.
Show child fieldsHide child fields
disclosures.string requiredimageSource Constraints: allowed values:
catalogdisclosures.string requiredconditionSource Constraints: allowed values:
seller_declareddisclosures.string requiredauthenticitySource Constraints: allowed values:
seller_attestationdisclosures.boolean requiredsnapcasterInspected Constraints: allowed values:
falsedisclosures.boolean requiredsnapcasterGraded Constraints: allowed values:
falsedisclosures.boolean requiredsnapcasterAuthenticated Constraints: allowed values:
falsedisclosures.string requiredgradingStandard Constraints: allowed values:
snapcaster-magic-v1,seller-declared-no-specialist-promisedisclosures.string or null requireddeclaredGrade disclosures.string requiredbuyerProtection Constraints: allowed values:
magic-grade-and-authenticity,genuine-and-as-described
fulfillmentObligationListingor nullFulfillment Obligation Show child fieldsHide child fields
fulfillmentObligation.string requiredsku The SKU that identifies the card variant.
Constraints: allowed values:
exactfulfillmentObligation.string requiredprinting The card printing the seller must supply.
Constraints: allowed values:
exactfulfillmentObligation.string requiredlanguage The language of the card printing.
Constraints: allowed values:
exactfulfillmentObligation.string requiredfinish The physical finish or foil treatment of the card.
Constraints: allowed values:
exactfulfillmentObligation.string requiredcondition The normalized condition assigned to the card.
Constraints: allowed values:
declared-or-better
Used by
POST /lines/lookup- Look up cart lines (response)