The first version of the Thirdwatch API is an exciting step forward towards making it easier for developers to pass data to Thirdwatch. # Introduction Once you've [registered your website/app](https://thirdwatch.ai) it's easy to start sending data to Thirdwatch. All endpoints are only accessible via https and are located at `api.thirdwatch.ai`. For instance: you can send event at the moment by ```HTTP POST``` Request to the following URL with your API key in ```Header``` and ```JSON``` data in request body. ``` https://api.thirdwatch.ai/event/v1 ``` Every API request must contain ```API Key``` in header value ```X-THIRDWATCH-API-KEY``` Every event must contain your ```_userId``` (if this is not available, you can alternatively provide a ```_sessionId``` value also in ```_userId```). # Score API The Score API is use to get an up to date cutomer trust score after you have sent transaction event and order successful. This API will provide the riskiness score of the order with reasons. Some examples of when you may want to check the score are before: - Before Shippement of a package - Finalizing a money transfer - Giving access to a prearranged vacation rental - Sending voucher on mail ``` https://api.thirdwatch.ai/neo/v1/score?api_key=<your api key>&order_id=<Order id> ``` According to Score you can decide to take action Approve or Reject. Orders with score more than 70 will consider as Riskey orders. We'll provide some reasons also in rules section. ## Response score API ``` { "order_id": "OCT45671", "user_id": "ajay_245", "order_timestamp": "2017-05-09T09:40:45.717Z", "score": 82, "flag": "red", -"reasons": [ { "name": "_numOfFailedTransactions", "display_name": "Number of failed transactions", "flag": "green", "value": "0", "is_display": true }, { "name": "_accountAge", "display_name": "Account age", "flag": "red", "value": "0", "is_display": true }, { "name": "_numOfOrderSameIp", "display_name": "Number of orders from same IP", "flag": "red", "value": "11", "is_display": true } ] } ```
Metadata
Release files for thirdwatch_api 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thirdwatch_api-0.0.3.tar.gz | 52.3 kB | Without provenance | Details for thirdwatch_api-0.0.3.tar.gz |
Release files / thirdwatch_api-0.0.3.tar.gz
| Download URL | thirdwatch_api-0.0.3.tar.gz |
|---|---|
| Size | 52.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
13139f6770e513f0958d9c2ae3e2db3a6c83e236c1826921cd6d5efebe55e694
|
|
BLAKE2b-256 checksum How to use checksums |
fc8234cb72b014701abe6bf8e79ea48db9ddeb77e2074c83848692c5deb2583b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for thirdwatch_api 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.