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
status: string The status is a string result that only has three possible values. "Success", "Fail" or “error”.
message: string The message value represents a short description about the status received.
data: {object} The data variable represents the information expected from the request made. This contains the payment information and the decision of the transaction
Request
Path Parameters
transaction_id
string
Yes
Transaction ID obtained from the create_decision endpoint
Request Body
Parameters
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?