API reference · Types
LineLookupResponse
Part of the response of POST /lines/lookup.
Type: object
Example
{
"success": true,
"data": {
"lines": [
{
"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
successboolean requiredWhether the operation completed as requested.
Constraints: allowed values:
truedataobject requiredThe operation or event payload.
Show child fieldsHide child fields
data.lines LinerequiredLookup Line[] One element per requested pair, in request order.
Show child fieldsHide child fields
data.integer requiredlines[]. sellerId The requested seller id. Together with
skuId, identifies the cart line.data.integer requiredlines[]. skuId The requested SKU id. Together with
sellerId, identifies the cart line.data.object or null requiredlines[]. seller Null when the seller is unknown.
Show child fieldsHide child fields
data.string requiredlines[]. seller. name Seller display name; not a handle/slug.
data.object or null requiredlines[]. product Canonical catalog display data; null when the SKU is unknown.
Show child fieldsHide child fields
data.integer requiredlines[]. product. productId See Canonical catalog in Core concepts.
data.string or null requiredlines[]. product. name data.string or null requiredlines[]. product. set The card set or expansion.
data.string or null requiredlines[]. product. image The product image URL shown to the buyer.
data.object or null requiredlines[]. sku The catalog condition, language, and finish. Null when the SKU is unknown.
Show child fieldsHide child fields
data.string or null requiredlines[]. sku. condition The normalized condition assigned to the card.
data.string or null requiredlines[]. sku. language The language of the card printing.
data.string or null requiredlines[]. sku. finish The physical finish or foil treatment of the card.
data.integer or null requiredlines[]. currentPrice The current listing price in integer cents. Null when there is no live listing for this pair.
data.integer requiredlines[]. available On-hand minus committed units. Zero when there is no live listing for this pair.
data.objectlines[]. sellerUnavailable Present 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
data.integer requiredlines[]. sellerUnavailable. sellerId The unavailable store id, matching the cart line.
data.string requiredlines[]. sellerUnavailable. reason 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
data.objectlines[]. policy The eligibility and buyer-protection decision for this line.
Show child fieldsHide child fields
data.string requiredlines[]. policy. status Constraints: allowed values:
eligible,blockeddata.object or null requiredlines[]. policy. error Error details for a failed request.
Show child fieldsHide child fields
data.string requiredlines[]. policy. error. code The stable machine-readable code for this result.
data.string requiredlines[]. policy. error. message A human-readable explanation of the result.
data.string requiredlines[]. policy. error. action How to resolve this issue.
data.lines[]. disclosures Listingor nullDisclosures Provenance, grading, and authenticity statements shown to the buyer.
Show child fieldsHide child fields
data.string requiredlines[]. disclosures. imageSource Constraints: allowed values:
catalogdata.string requiredlines[]. disclosures. conditionSource Constraints: allowed values:
seller_declareddata.string requiredlines[]. disclosures. authenticitySource Constraints: allowed values:
seller_attestationdata.boolean requiredlines[]. disclosures. snapcasterInspected Constraints: allowed values:
falsedata.boolean requiredlines[]. disclosures. snapcasterGraded Constraints: allowed values:
falsedata.boolean requiredlines[]. disclosures. snapcasterAuthenticated Constraints: allowed values:
falsedata.string requiredlines[]. disclosures. gradingStandard Constraints: allowed values:
snapcaster-magic-v1,seller-declared-no-specialist-promisedata.string or null requiredlines[]. disclosures. declaredGrade data.string requiredlines[]. disclosures. buyerProtection Constraints: allowed values:
magic-grade-and-authenticity,genuine-and-as-described
data.lines[]. fulfillmentObligation Listingor nullFulfillment Obligation Show child fieldsHide child fields
data.string requiredlines[]. fulfillmentObligation. sku The SKU that identifies the card variant.
Constraints: allowed values:
exactdata.string requiredlines[]. fulfillmentObligation. printing The card printing the seller must supply.
Constraints: allowed values:
exactdata.string requiredlines[]. fulfillmentObligation. language The language of the card printing.
Constraints: allowed values:
exactdata.string requiredlines[]. fulfillmentObligation. finish The physical finish or foil treatment of the card.
Constraints: allowed values:
exactdata.string requiredlines[]. fulfillmentObligation. condition The normalized condition assigned to the card.
Constraints: allowed values:
declared-or-better
Used by
POST /lines/lookup- Look up cart lines (response)