TanqoryDocs

tanqoryExtOrderRiskAnalyze

  • Mutation
  • Orders and payments

Runs Tanqory's fraud analysis of an order, or runs it again: the result replaces the order's previous Tanqory assessment (an app's assessments are kept), sets the order's risk recommendation (HIGH: CANCEL, MEDIUM: INVESTIGATE, LOW: ACCEPT) and adds a line to the order's timeline naming the staff member. Reads the payment provider's own check of the payment where its gateway gives one. Staff only. NOT_FOUND, DISABLED, NOT_ALLOWED.

Arguments

ArgumentTypeRequiredDefault
orderIdID!Required

Returns

TanqoryExtOrderRiskAnalyzePayload

FieldTypeDescription
orderOrder

The order with its new risk summary.

userErrors[TanqoryExtOrderRiskAnalyzeUserError!]!

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_ACCESS_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"mutation TanqoryExtOrderRiskAnalyze($orderId: ID!) {\n  tanqoryExtOrderRiskAnalyze(orderId: $orderId) {\n    order { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"orderId":"gid://tanqory/Type/id"}}'

Built from commit 0cac88ece6de · API version 2026-10