Skip to content

Update Decision Log

Request

Updates the status and/or notes for a specified decision.

Security
bearerToken
Path
decisionLogIdstringrequired

The unique identifier of the decision log to retrieve, obtained from /usageLog.

Bodyapplication/json
statusCodenumber

The status that the decision will be updated to. Typically, 1 is reserved for positive outcomes, 2 for pending status and 3 for negative outcomes.

Example:1
notesstring

Free text field to allow for the saving of notes on the associated decision object.

Example:"Manually approved by Senior Credit Controller."
curl -i -X PATCH \
  'https://connect.sandbox.creditsafe.com/v1/decisionEngine/usageLog/{decisionLogId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "statusCode": 1,
    "notes": "Manually approved by Senior Credit Controller."
  }'

Responses

Bodyapplication/json
decisionLogIdnumber

The unique identifier for the decision log.

Example:64492
provenirIdstring

The unique identifier of the decision tree.

Example:"repoObj_0ed6a4aa_16e17d977e9_07ffb16e17d977e9"
friendlyNamestring

The name of the decision tree.

Example:"Check & Decide Demo"
userIdnumber

The unique identifier for the user's account, used across the Creditsafe product suite.

Example:101445010
companyIdstring

The connectId of the company that the decision was ran on. A connectId is the primary Company identifier that is used to uniquely identify all companies across Creditsafe's Universe and Partner Network.

Example:"US001-X-US60521352"
companyNamestring or null

The name of the company that the decision was ran on.

Example:"CREDITSAFE USA INC."
responseobject(ConnectDecisionEngineRunDecisionResponse)
decisionDatestring, (date-time)

The timestamp that the decision model was run.

notesstring or null

The notes associated with this decision.

statusnumber

The status of the decision. typically, 1 is reserved for positive outcomes, 2 for pending status and 3 for negative outcomes.

Example:3
modifiedDatestring, (date-time)

The timestamp that this decision was last modified.

correlationIdstringdeprecated

A unique ID assigned to this request.

Example:"23921650-c073-11ea-860f-06bc8182190e"
Response
{ "correlationId": "23921650-c073-11ea-860f-06bc8182190e", "decisionLogId": 64492, "provenirId": "repoObj_0ed6a4aa_16e17d977e9_07ffb16e17d977e9", "friendlyName": "Check & Decide Demo", "userId": 101445010, "companyId": "US001-X-US60521352", "companyName": "CREDITSAFE USA INC.", "response": { "Decision": "Reject", "DecisionText": "The Sales Value requested is greater than Creditsafe's recommended credit limit.", "Audits": [], "originationId": "SFC-1976", "statusCode": "3" }, "decisionDate": "2019-08-24T14:15:22Z", "notes": "string", "status": 3, "modifiedDate": "2019-08-24T14:15:22Z" }