Skip to main content

List Reading Records

GET 

/api/success-plan/readings/:reading/records

Shows the records behind a measured reading: the ones it counted, or the ones an exclusion rule left out. The records are re-run live and paged.

Required scope: success_plan:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Only measured readings have records; entered readings answer 422. For a settled month whose re-run totals now differ, drift holds the stored and now totals (value, included, excluded per rule); otherwise it is null.

Authentication: Requires Bearer token with the success_plan:read scope. The user must hold the success_plan.view permission.

Response: the paginated records (data, current_page, per_page, total, …), plus bucket, rule, drift, method_doc (how the figure is measured), method_version, rules (each exclusion rule as key, label, count) and reading (the reading with its period, state, counts and breakdown). Record fields depend on the metric; oversell records carry the sales order, product, warehouse, date, quantity and claim status.

Request​

Responses​

OK

Response Headers
    Content-Type