Resolve a task
Applies a one-click fix, marks a guided task done, or records external completion — per the task’s resolution type.
/tasks/{task_id}/resolveAuthorizationBearer token (JWT) · headerrequiredJWT issued by the external IdP via the OAuth 2.0 authorization-code flow (Kinde in
production; a simulator in test). The client obtains it and sends it as a Bearer token on
every authenticated call. Sarvex's services verify it — issuer, audience, signature
(IdP JWKS), expiry — and read identity and tenant from its claims. Sarvex does not issue
or revoke these tokens. merchant_id/store_id are read from the verified claims (and the
merchant→store mapping), never from the URL. The operator scope is required for
/operator/*. Operators acting on a specific merchant pass the X-Operate-As header,
which is recorded in the audit log.
task_idstringrequiredIdempotency-KeystringClient-generated key; replays return the original result.
application/jsonnotestringResolved task.
task_idstringstore_idstringThe store this task belongs to.
titlestringPlain-language, merchant vocabulary.
why_it_mattersstringownertask_ownermerchantsarvexexternalresolutiontask_resolutionone_clickguidedautomaticexternal_waitstatetask_stateopenin_progressblockeddoneblocks_checkoutbooleansourcestringEmitting domain; the task spine unifies all of these.
readinesschecklistvalidationconsistencymonitoringcatalog_importsource_refstring | nullId of the underlying issue/item/finding for drill-in.
remediationsremediation[]Typed drill-in payload for source=readiness tasks: the rule-based fixes available for the task's product (source_ref = sku). Absent or empty for other sources, or when no unapplied fix exists.
Show propertiesHide properties
remediationremediation_idstringskustringfieldstringfrom_valuestringto_valuestringtypestringrulemanualtruststringhighlowfindingobject | nullTyped drill-in payload for source=monitoring tasks: the consistency finding that raised this task, snapshotted at raise time (not re-evaluated live). Absent for other sources.
Show propertiesHide properties
finding_idstringskustringfieldstringsourcesobjectseverityseverityinfowarningcriticaldetected_atstring<date-time>issuesproduct_issue[]Typed drill-in payload for source=readiness tasks: the product's open issues that have no rule-based fix (remediable=manual), so a merchant must edit the value directly. Absent or empty for other sources, or when every blocking issue on the product has an automatic remediation covered by remediations.
Show propertiesHide properties
product_issueissue_idstringfieldstringproblemstringmissingfree_textnon_standard_enuminconsistentblocks_checkoutbooleanrevenue_impact_monthlymoneyShow propertiesHide properties
amount_minorintegerrequiredAmount in minor units (cents).
currencystringrequiredremediablestringrulemanualcreated_atstring<date-time>updated_atstring<date-time>Task is not in a resolvable state (e.g. owner=external, blocked-external).
errorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequireddetailsobject | null