Runs the provided decision tree for the given company, optionally using the data provided in the body of the call.
Security
bearerToken
The Connect ID for the company that you wish to run the decision tree on. Obtained from /companies search results. A Connect ID is the primary Company identifier that is used to uniquely identify all companies across Creditsafe's Universe and Partner Network.
Example:companyId=GB-0-03836192
- Sandbox serverhttps://connect.sandbox.creditsafe.com/v1/decisionEngine/{provenirId}
- Production serverhttps://connect.creditsafe.com/v1/decisionEngine/{provenirId}
curl -i -X POST \
'https://connect.sandbox.creditsafe.com/v1/decisionEngine/{provenirId}?companyId=GB-0-03836192&originationId=SFC-1976' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"productType": "Product A",
"isCustomer": "Yes",
"salesValue": 197600
}'The text output to accompany the decision returned by the decision model.
Example:"The Sales Value requested is greater than Creditsafe's recommended credit limit."
An array of audit values. The parameters output for audit are tailored and bespoke to each decision tree.
Displays the optional text passed through to be stored against the decision in the original call to /{provenirId}. Typically used for internal identifiers (e.g. SalesForce IDs).
Example:"SFC-1976"
Response
{ "Decision": "Reject", "DecisionText": "The Sales Value requested is greater than Creditsafe's recommended credit limit.", "Audits": [ { … } ], "originationId": "SFC-1976", "statusCode": "3" }