Skip to content

Commit

Permalink
update(readme): apply decisions by userId, orderId and sessionId
Browse files Browse the repository at this point in the history
  • Loading branch information
vanatd committed Mar 30, 2020
1 parent 8b92c48 commit d8a3040
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,11 +292,24 @@ client.events.create({

### [Apply Decisions](https://siftscience.com/developers/docs/curl/decisions-api/apply-decisions)

#### User decision
```javascript
client.decisions.applyByAccountIdAndUserId('accountId', 'userId', {
decision_id : 'user_looks_ok_payment_abuse'
});
```
#### Order decision
```javascript
client.decisions.applyByAccountIdAndOrderId('accountId', 'userId', 'orderId', {
decision_id : 'user_looks_ok_payment_abuse'
});
```
#### Session decision
```javascript
client.decisions.applyByAccountIdAndSessionId('accountId', 'userId', 'sessionId', {
decision_id : 'user_looks_ok_payment_abuse'
});
```

### [User Decisions](https://siftscience.com/developers/docs/curl/decisions-api/decision-status)

Expand Down

0 comments on commit d8a3040

Please sign in to comment.