API reference · Types
ListingWriteResponse
Part of the response of POST /listings, DELETE /listings and POST /listings/bulk.
Type: object
Example
{
"success": true,
"data": {
"results": [
{
"skuId": 14602,
"op": "upsert",
"status": "applied",
"externalRef": "platform-listing-1042"
}
]
}
}Fields
successboolean requiredWhether the operation completed as requested.
Constraints: allowed values:
trueExampletruedataobject requiredThe operation or event payload.
Show child fieldsHide child fields
data.results ListingrequiredItem Result[] The outcome recorded for each submitted item.
Show child fieldsHide child fields
data.integer requiredresults[]. skuId See Canonical catalog in Core concepts.
Example
14602data.string requiredresults[]. op The write operation to apply to this item.
Constraints: allowed values:
upsert,deleteExampleupsertdata.string requiredresults[]. status The 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,noopExampleapplieddata.stringresults[]. code The stable machine-readable code for this result.
Constraints: allowed values:
INVALID_REQUEST,STALE_SNAPSHOT,SNAPSHOT_CONFLICT,PRODUCT_MISMATCHdata.stringresults[]. reason Why the item was rejected; present only when status is "rejected".
data.stringresults[]. externalRef The 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)