POST/v1/items/delete-failed

Delete failed items

Removes up to 500 FAILED items for good once their money was returned: the item, its events, QR codes and scans and its files; the ledger entries stay. The result lists the deleted ids and, per refused id, why (not_found, not_failed, money_held, referenced).

Scope items.write

Body

itemIdsarray of stringrequiredmin items 1max items 500

Returns

2 fields of the 200 answer
deletedarray of stringrequired
refusedarray of objectsrequired
2 fields
idstringrequired
reasonenumrequired
not_foundnot_failedmoney_heldreferenced

Responses

200Success
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)