DecisionFeedback

Decision Feedback API is used to push the feedback results (decline or accept) to your business system for further performance optimization (TrustID、TrustTxn、TrustPromo).

API Format

Base URL

Decision Feedback API address you configured on the TD portal.

API

URLRequest MethodsContent-TypeOutput FormatCharacter Set
api-base-url?timestamp=xxx&partner_code=xxx&access_key=xxx&sign=xxxPOSTapplication/jsonJSONUTF-8
Authentication
ParameterTypeDescriptionRequired/OptionalNotes
timestampStringCurrent Timestamprequiredmillisecond
partner_codeStringPartner Coderequiredassigned by TD
access_keyStringAccess Keyrequiredassigned by TD
signStringSignrequired
How the 'sign' is generated?

sign = HmacSHA1(partner_code+timestamp+access_key,access_secret)

In which, 'access_secret' is assigned by TD.

headers
Parameter NameValueRequired/OptionalNotes
Content-Typeapplication/jsonrequired
xxxxxxconditionally requiredthe customized field you configured on the TD portal

Push Request Parameter

ParameterTypeDescriptionRequired/OptionalNotes
typeStringID Typerequiredenumeration: sequence_id
idStringID Valuerequired
resultStringResultrequiredenumeration:
decline
accept
operatorStringOperatorrequiredname of the operator, and can be replaced by the operator's account or email.
timeLongTimerequiredmillisecond
reasonStringReasons or Notesoptional

Push Request Example

{
  "type": "sequence_id",
  "id": "1648777165770866F82AC7F326307055",
  "result": "accept",
  "operator": "Pierre-zb",
  "time": "1673402388579",
  "reason": "lorem tags"
}

Response Parameter

Parameters that your business system needs to respond to after receiving a push request

ParameterTypeDescriptionRequired/OptionalNotes
codeIntegerAPI Status Coderequired
messageStringStatus Messagerequiredspecific abnormal reasons will be provided when the API is abnormal

API Status Code

codeDescription
200Success

Response Example

{
  "code": 200,
  "message": ""
}