Developer Guide

Feedback Order

Update status of a transaction from pending-manual-review to APPROVE, REJECT or IGNORE. The FraudLabs Pro algorithm will improve the formula in determine the FraudLabs Pro score using the data collected.

SIGN UP NOW

Request

POST  https://api.fraudlabspro.com/v2/order/feedback
Parameter Description
id (required) Unique transaction Id generated by Fraud Check API.
key (required) API license key.
format (optional) Return the result in json or xml format. Default:xml
Valid values: json | xml
action (required) Perform APPROVE, REJECT, or REJECT_BLACKLIST action to transaction.
  • APPROVE: Approve a transaction
  • REJECT: Reject a transaction
  • REJECT_BLACKLIST: Reject and blacklist the transaction
When a transaction was blacklisted, the information will be recorded into the system for future blacklist validation check.
note (optional) Notes for the feedback request.

Response

Parameter Description
fraudlabspro_id The fraudlabspro ID that was updated.

Sample Codes

<?php
require_once 'lib/FraudLabsPro.php';

// Configures FraudLabs Pro API key
FraudLabsPro\Configuration::apiKey('YOUR_API_KEY');

FraudLabsPro\Order::feedback([
	'id'		=> '20170906MXFHSTRF',
	// Please refer to reference section for full list of feedback statuses
	'status'	=> FraudLabsPro\Order::APPROVE,
	'note'		=> 'This customer made a valid purchase before.',
]);
import com.fraudlabspro.*;
import java.util.Hashtable;

public class FLP {

    public static void main(String[] args) {
        // Configures FraudLabs Pro API key
        FraudLabsPro.APIKEY = "YOUR_API_KEY";

        // Feedback Order API
        Order fb = new Order();

        // Sets feedback details
        Hashtable data = new Hashtable<>();
        data.put("id", "20180709-NHAEUK");
        data.put("action", fb.APPROVE);  // Please refer to reference section for full list of feedback statuses
        data.put("note", "This customer made a valid purchase before.");

        String result = fb.feedback(data);  // Sends feedback details to FraudLabs Pro
    }
}
Imports FraudLabsPro.FraudLabsPro
Imports Newtonsoft.Json

Module Program
    Sub Main()
        'Configure FraudLabs Pro API KEY
        FraudLabsProConfig.APIKey = "YOUR_API_KEY"

        'Set FeedBack Order parameter
        Dim FeedBackPara As New OrderPara With {
            .ID = "20240112-1EILFK",
            .Action = Order.Action.APPROVE,
            .Note = "This customer made a valid purchase before."
        }

        'Feedback Order API
        Dim FeedbackOrder As New Order
        Dim result = FeedbackOrder.FeedbackOrder(FeedBackPara)

        Console.WriteLine("fraudlabspro_id: " & result("fraudlabspro_id").ToString)
    End Sub
End Module
using FraudLabsPro.FraudLabsPro;
using System.Collections;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

// Configure FraudLabs Pro API KEY
FraudLabsProConfig.APIKey = "YOUR_API_KEY";

// Set FeedBack Order parameter
OrderPara FeedBackPara = new()
{
	ID = "20240112-1EILFK",
	Action = Order.Action.APPROVE,  // Please refer to reference section for full list of feedback statuses
	Note = "This customer made a valid purchase before."
};

// Feedback Order API
Order FeedbackOrder = new();
JObject result = FeedbackOrder.FeedbackOrder(FeedBackPara);

Console.WriteLine("fraudlabspro_id: " + result["fraudlabspro_id"]);
 # Import SDK to use the function
from libs.order import Order

 # Configure your API key
api_key = 'YOUR_API_KEY'

feedback_variables = {
	'key': api_key,
	'id': '20180705-WISXW2',
	# Please refer to reference section for full list of feedback statuses
	'action': 'APPROVE',
	'notes': 'This is for testing purpose.',
}
print(Order.feedback(feedback_variables))
curl https://api.fraudlabspro.com/v2/order/feedback \
--header 'Content-Type: application/json' \
--data '{
	"key": "Enter_License_Key",
	"format": "json",
	"id": "20130131-O263CR",
	"action": "APPROVE"
}'
require 'fraudlabspro_ruby'

FraudlabsproRuby::Configuration.api_key = 'YOUR_API_KEY'

result = FraudlabsproRuby::Api::Order.feedback(
  transaction_id: '20180713-ZNVPV4',
  status: FraudlabsproRuby::Api::Order::APPROVE
)
const {FraudValidation} = require("fraudlabspro-nodejs");

var flp = new FraudValidation('YOUR API KEY');

params = {
	id: '20170906MXFHSTRF',
	action: 'APPROVE',
	note: 'This customer made a valid purchase before.',
};
flp.feedback(params, (err, data) => {
	if (!err) {
		console.log(data);
	}
});