Preview a bulk edit
Describes what a change would do to many lines at once, without changing anything. Choose the lines with a selection and one action; the response gives the exact number of lines matched, how many the change would leave alone and why, the current values against the new one, up to 10 sample lines, the market value of the matched lines, and a planId.
Confirm with POST /v1/inventory/bulk/edit/apply and the planId. A plan is valid for 24 hours, belongs to the account and the API client that previewed it, and applies one action. A second change needs a second preview.
Actions: set_quantity (1 to 9999), delete (removes the lines and cancels their listings, cannot be undone), remove_from_sale, set_condition, set_language, set_location, set_comment, set_notes, add_tags and remove_tags. Prices are not changed here: use the price update endpoints.
Tag and location names must match your existing labels. Changes to condition, language, location, comment and tags can merge a line into an identical one, which the MAY_MERGE_LINES warning reports.
The count is exact, and the cost grows with the number of matched lines. Counts toward the inventory-search rate limit.
Requires the inventory:write scope.
Body
- Properties: 8Type: objectactionrequired
- Properties: 3Type: objectselectionrequired
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl https://public-api.cardnexus.com/v1/inventory/bulk/edit/preview \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"selection": {
"filters": {
"name": "",
"printNumber": "ST02-44",
"nameSlug": "",
"customId": "",
"customIdPrefix": "",
"customIdContains": "",
"commentContains": "",
"inventoryIds": [
""
],
"customIds": [
""
],
"productIds": [
1
],
"expansionId": [
42,
118
],
"tags": {
"op": "and",
"values": [
"Trade binder"
]
},
"location": {
"op": "and",
"values": [
"Trade binder"
]
},
"condition": {
"op": "and",
"values": [
"NM"
]
},
"language": {
"op": "and",
"values": [
""
]
},
"finish": {
"op": "and",
"values": [
"Standard"
]
},
"productType": {
"op": "and",
"values": [
"card"
]
},
"productCategory": "",
"graded": true,
"forSale": true,
"quantity": {
"min": 0,
"max": 0
},
"listingPrice": {
"min": 0,
"max": 0
},
"gameFilters": {
"game": "sorcery",
"filters": {}
},
"updatedSince": "2026-11-09T13:53:13.059Z",
"marketPrice": {
"min": 0,
"max": 0
},
"hasMarketPrice": true,
"priceVsMarket": {
"minPercent": 1,
"maxPercent": 1
},
"priceCheckGroup": "way-above",
"marketChange": {
"period": "week",
"minPercent": 1,
"maxPercent": 1
}
},
"inventoryIds": [
""
],
"excludeInventoryIds": [
""
]
},
"action": {
"type": "set_quantity",
"quantity": 1,
"condition": "NM",
"language": "",
"location": "Trade binder",
"comment": "Slight edge wear on the back corner",
"notes": "Bought at the March show, restock from supplier A",
"tags": [
"Trade binder"
]
}
}'
{
"planId": "iep_Q3x9LmT2vK8pR1sW4yZ7aB",
"expiresAt": "2026-10-23T09:14:02.000Z",
"matched": 1840,
"matchedMarketValue": {
"eu": {
"amount": 6210.4,
"currency": "EUR"
},
"na": {
"amount": 6842.15,
"currency": "USD"
}
},
"willChange": 1840,
"skipped": {
"already_set": 0,
"not_applicable_graded": 0,
"not_applicable_sealed": 0,
"not_applicable_language": 0,
"not_for_sale": 0
},
"diff": {
"field": "location",
"before": [
{
"value": "Binder A",
"lines": 1840
}
],
"after": "Shelf 3"
},
"sample": [
{
"inventoryId": "6650f1c2a4b3e2d1c0b9a8e1",
"productId": 50212,
"name": "Charizard ex",
"before": "Binder A",
"after": "Shelf 3"
}
],
"warnings": []
}