Skip to main content

Get Decision Evidence

GET 

/api/advertising/decisions/:type/:id/evidence

The evidence chart data behind one decision: the supply and spend timeline for the decision's product (daily stock history, projected stock running down to the next inbound arrival, forecast, daily spend and POAS against the 1.0 break-even, cover thresholds, inbound purchase-order markers) plus markers for every change SKU.io applied to that product's ads in the window.

Required scope: advertising:read

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

Requires the advertising.view permission. Token scope: advertising:read (personal access and OAuth tokens).

Path: type is one of signal, change_set, anomaly, goal_suggestion, supply_block, connection, experiment_result; id is the decision's id (1 to 64 letters, digits or dashes). Use the evidence.path from List Advertising Decisions. Only signal, change_set, anomaly, goal_suggestion and supply_block decisions can have evidence.

Query: product_id (optional integer): for a change set touching several products, the product to chart (it must be one the set touches). A single-product change set needs no product_id.

Returns 404 when the decision does not exist, has no single product to chart, or its type has no evidence.

Response: decision (type, id), product (id, sku, name, brand), break_even_poas, timeline (from, to, today, pool_warehouse_ids, lead_time_window, thresholds with pause_cover_days, resume_cover_days, pause_units, resume_units, inbound_markers and daily series), and action_markers (each applied change: date, change_id, ad_change_set_id, source, entity_type, entity_id, entity_label, operation, before, after, status).

Each timeline.series[] day carries other_sku_sales: sales the platform credited to this product's ads for other products that day (not part of poas, which counts only this product's own units).

Request​

Responses​

OK

Response Headers
    Content-Type