Skip to Content
Docs
Risk review

Resolve a risk review

PUT/risk/review/{review_id}

Resolves a pending risk review by approving or declining it. Only reviews in status pending_review can be resolved.

Resolving a review only records the decision: the reviewed charge or customer is not changed. A review.transaction.reviewed or review.customer.reviewed webhook is sent.

Headers

AuthorizationstringRequired
HTTP Basic auth: your API key as the password, with an empty username. See Authentication.

Path parameters

review_idstringRequired

Unique identifier for the risk review.

Parameters

statusstringRequired

The resolution status for the review.

One of approved or declined.

status_reasonstringRequired

The reason for the resolution decision.

reviewer_identifierstring

Identifier of the person or system that resolved the review.

reviewer_originstring

The source of the review decision.

Returns

Returns the risk review object.

idstringRequired

Unique identifier for the risk review.

resourcestringRequired

String representing the object's type.

One of review.

referencestringRequired

Unique identifier for the reviewed object. A charge (chrg_), hold (hld_), refund (rfnd_) or payout (po_) ID when type is transaction, or a customer ID (cust_) when type is customer.

typestringRequired

Type of entity being reviewed. One of transaction or customer.

One of transaction or customer.

statusstringRequired

Status of the review. One of pending_review, approved, declined, or expired (not resolved before expires).

One of pending_review, approved, declined or expired.

status_reasonstring or null

The reason given when the review was resolved. Null until the review is resolved.

reviewer_identifierstring or null

Identifier of the person or system that resolved the review. Null until the review is resolved.

reviewer_originstring or null

The source of the review decision. Null until the review is resolved.

createdstringRequired

Time at which the object was created, in ISO 8601 format.

expiresstring

Time at which a pending review expires, in ISO 8601 format.

test_modeboolean

Whether the review was created in the sandbox.

Errors

400
Invalid request parameters, or the review is not in status pending_review ("Unable to update already processed review").
401
The API key or access token is missing, unknown or no longer works (invalid_key, invalid_token, legacy_keys_ended, legacy_keys_off or permission_denied).
403
The request was refused: the API key may not make it (for example resource_not_allowed, key_disabled, network_not_allowed, pci_required or merchant_required), or this resource isn't enabled for your account (permission_denied). code says why.
404
Risk review not found.
500
Internal server error.
503
Service unavailable. Retry after the number of seconds in Retry-After, or after a few seconds when there's none.
Was this page helpful?