API reference · Types
ListingItemResult
Part of the response of POST /listings, DELETE /listings and POST /listings/bulk.
Type: object
Example
{
"skuId": 14602,
"op": "upsert",
"status": "applied",
"externalRef": "platform-listing-1042"
}Fields
skuIdinteger requiredSee Canonical catalog in Core concepts.
Example
14602opstring requiredThe write operation to apply to this item.
Constraints: allowed values:
upsert,deleteExampleupsertstatusstring requiredThe result for this item.
unmatchedcorresponds toUNMATCHED: Snapcaster stored the item, but its SKU is absent from the canonical catalog.rejectedcorresponds toREJECTED: validation failed and Snapcaster did not store the item. Checkreasonfor details.Constraints: allowed values:
applied,unmatched,rejected,noopExampleappliedcodestringThe stable machine-readable code for this result.
Constraints: allowed values:
INVALID_REQUEST,STALE_SNAPSHOT,SNAPSHOT_CONFLICT,PRODUCT_MISMATCHreasonstringWhy the item was rejected; present only when status is "rejected".
externalRefstringThe submitted listing reference, if supplied.
Example
platform-listing-1042
Used by
POST /listings- Upsert listings (response)DELETE /listings- Soft-delete listings (response)POST /listings/bulk- Bulk upsert/delete listings (response)