Skip to content

Commit 1e39b2e

Browse files
committed
feat(predict): probability to purchase args
1 parent 531a810 commit 1e39b2e

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

source/includes/_predict.probability-to-purchase.md.erb

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Probability to purchase
22

33
```shell
4-
curl https://<%= config[:api_endpoint] %>/predict/probability-to-purchase?shop_id=SHOPID&did=DEVICE_ID
4+
curl https://<%= config[:api_endpoint] %>/predict/probability-to-purchase?shop_id=SHOPID&did=$DEVICE_ID&email=$EMAIL&phone=$PHONE&telegram_id=$TELEGRAM_ID&loyalty_id=$LOYALTY_ID
55
```
66

77
```javascript
@@ -30,8 +30,7 @@ curl https://<%= config[:api_endpoint] %>/predict/probability-to-purchase?shop_i
3030

3131
{
3232
"probability": 33,
33-
"message": "...",
34-
"did": "..."
33+
"user_id": "..."
3534
}
3635
```
3736

@@ -45,5 +44,12 @@ Tries to predict visitor's probability to purchase according to user's behavior.
4544
| Parameter | Type | Required | Description |
4645
|------------------------------|--------|------------|--------------------------------------------------------------------------------------------------------------|
4746
| shop_id | String | true | Your API key |
48-
| did | String | true | Device ID |
49-
47+
| did* | String | true | Device ID |
48+
| email* | String | true | Email |
49+
| phone* | String | true | Phone |
50+
| telegram_id* | String | true | Telegram ID |
51+
| loyalty_id* | String | true | Loyalty ID |
52+
53+
<aside class="notice">
54+
At least one of identifiers (marked by *) must present in request: did, email, phone, loyalty_id or telegram_id. It's used to identify user.
55+
</aside>

0 commit comments

Comments
 (0)