Skip to Content
Docs

Risk reviews

Approve or decline transactions flagged for manual review using the risk reviews API.

A risk review is created when a transaction or a customer matches a review rule configured in the dashboard. The review doesn't block the payment. The charge succeeds immediately. Instead, the review flags the transaction or customer so you can investigate and then approve or decline it through the API.

Risk reviews require the Standalone Risk feature to be enabled on your account. Contact Pay.com support to enable it.

Requirements

Risk reviews need three things in place:

  • Standalone Risk enabled on your account (contact Pay.com support)
  • A review rule configured in the dashboard
  • A webhook endpoint subscribed to the review.transaction.created event (and review.customer.created if you use customer review rules)

How it works

You configure the rule once. Then each flagged charge reaches you as a webhook event, and you resolve its review through the API.

  1. 1

    Configure a review rule

    Create a review rule in the Pay.com dashboard that targets the transactions you want to flag. When a charge matches the rule, Pay.com creates a review automatically after the charge succeeds.

    See Review rules for the conditions you can target and how to set them up.

  2. 2

    Receive the webhook

    Pay.com sends a review.transaction.created event to your endpoint approximately 3-15 seconds after the charge is created. The data.id field contains the review ID you'll use in the next steps.

    {
      "id": "evt_701808188143438848",
      "resource": "event",
      "type": "review.transaction.created",
      "created": "2026-04-21T14:55:11.021Z",
      "data": {
        "id": "rvw_701808188000832512",
        "resource": "review",
        "created": "2026-04-21T14:55:10.987Z",
        "expires": "2026-04-24T14:55:10.987Z",
        "reference": "chrg_701808118295692288",
        "reviewer_identifier": null,
        "reviewer_origin": null,
        "status": "pending_review",
        "status_reason": null,
        "test_mode": true,
        "type": "transaction"
      }
    }

    The data.reference field contains the ID of the object that triggered the review, here a charge. Always verify the Pay-Signature header before processing the event. See Verify webhook signatures.

  3. 3

    Retrieve the review

    Use the review ID from the webhook to fetch the full review object. If you don't have the review ID, you can look it up by the ID of the flagged object instead: a charge, hold, refund, payout, or customer (chrg_, hld_, rfnd_, po_, or cust_).

    If you have the review ID:

    GET /v1/risk/review/rvw_701808188000832512

    If you only have the charge ID (returns a list, with an empty data array when no review exists):

    GET /v1/risk/review/reference/chrg_701808118295692288
  4. 4

    Resolve the review

    After investigating the transaction, call PUT /v1/risk/review/{review_id} to approve or decline it. Both status and status_reason are required.

    The optional reviewer_identifier and reviewer_origin fields let you record who performed the review and from where.

    To approve:

    {
      "status": "approved",
      "status_reason": "Customer verified via phone call",
      "reviewer_identifier": "agent@example.com",
      "reviewer_origin": "manual"
    }

    To decline:

    {
      "status": "declined",
      "status_reason": "Suspicious transaction pattern",
      "reviewer_identifier": "agent@example.com",
      "reviewer_origin": "manual"
    }

    Resolving a review records your decision and sends a review.transaction.reviewed event (review.customer.reviewed for a customer review). It doesn't change the linked transaction. A charge stays succeeded whether you approve or decline. Declining is an internal record-keeping action. To reverse the funds, issue a refund separately.

    Reviews expire 3 days after creation (review.transaction.expired) and can no longer be resolved after that. You can resolve only a review whose status is pending_review. Updating an expired or already-resolved review returns a 400 error, and an unknown review ID returns a 404.

The review object

The review object represents a flagged transaction or customer and tracks its status from creation to resolution. It is returned by GET /v1/risk/review/{review_id} and included in the review.* webhook payloads.

FieldTypeDescription
idstringUnique identifier for the review (rvw_...).
resourcestringAlways "review".
createdstringISO 8601 timestamp when the review was created.
expiresstringISO 8601 timestamp when the review expires, 3 days after created.
referencestringThe ID of the flagged object: a charge, hold, refund, or payout (chrg_, hld_, rfnd_, po_) for transaction reviews, or a customer (cust_) for customer reviews.
statusstringCurrent status: pending_review, approved, declined, or expired after 3 days without a decision.
status_reasonstringThe reason provided when the review was resolved. null until resolved.
reviewer_identifierstringIdentity of the person who resolved the review. null until resolved.
reviewer_originstringSource of the resolution, for example "manual". null until resolved.
typestring"transaction" or "customer".
test_modebooleantrue if the review was created in the sandbox.

Next steps

Was this page helpful?