Update Decision

Updates an existing decision that is in manual review status.

Endpoint: PUT /v1/risk/{transaction_id}

Headers

Content-Type: application/json
x-api-key: <YOUR_API_KEY>

This request is used when a transaction is pending for a review, and the customer need to update the information to approve the transaction, it has the following attributes

transaction_info {object}

Required: true

Represents the information details of the request in a JSON object. The object has the following attributes:

  • type: string Type value represent the type of request that is sent.

    Example: “authorization”

    Required: true

action_info {object}

Required: true Represents the action information object, that has the attributes:

  • decision_id: string

    Example: “8475986574758978745”

    Required: true

    The unique identifier of the decision.

  • decision: string

    Example: “Accept”

    Required: true

    The decision value that will be updated.

  • comments: string

    Example: 01/27

    Required: false

    An additional comment if need it.number: int Represents a Luhm compliant credit card value. Example: "4242424242424242" Required: true

Request

Path Parameters

Parameter
Type
Required
Description

transaction_id

string

Yes

Transaction ID obtained from the create_decision endpoint

Request Body

Parameters

Field
Type
Required
Description

transaction_info.type

string

Yes

Must be "update_decision"

transaction_info.reference_code

string

Yes

Original transaction reference code

action_info.decision_id

string

Yes

Decision ID to update

action_info.decision

string

Yes

New decision: "ACCEPT" or "REJECT"

action_info.comments

string

Optional

Comments about the decision

Response

Usage Examples

cURL - Update Decision

Last updated

Was this helpful?