Remove Records
/api/search/records/removeRemoves records of the calling plugin from the store's dashboard search, at most 500 a call. An id that is not searchable is skipped, so a call can be retried whole.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
1 <= items <= 500Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/search/records/remove" \ -H "Content-Type: application/json" \ -d '{ "ids": [ "string" ] }'Record Sales POST
Records sales the calling plugin made for the store outside its checkout, at most 100 a call, which the dashboard adds to the store's revenue on the day each occurred. A sale in another currency than the store's is kept but, like an order in an earlier store currency, not added. Idempotent per `ref`, so a report can be retried whole; a `ref` already recorded as another sale is refused with SaleRefReused, and a sale dated more than a day ahead with SaleDatedAhead, each recording nothing of the report. Requires the store to have granted the plugin sales:write.
Save Records PUT
Makes records of the calling plugin searchable in the store's dashboard search, or updates them, at most 500 a call. Write a record when it is created or changes; the dashboard shows what was written last, so a call can be retried whole. Titles and subtitles are shown as plain text: whitespace runs collapse to one space, control and direction-override characters are dropped, and text past 120 (title) or 160 (subtitle) characters is cut with "…". A record targeting a product or order the store does not have is refused with SearchTargetNotInStore, writing nothing.
