curl --request POST \
--url https://api.dataspike.io/api/v3/transmon/payment \
--header 'Content-Type: application/json' \
--header 'ds-api-token: <api-key>' \
--data '
{
"applicant_id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
"checkout_billing_country": "US",
"user_ip_address": "27.134.25.17",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"user_device_id": "nmljasfdKsed8keM#@2k",
"session_duration": 7200,
"user_email_address": "myverynicelogin@example.com",
"user_phone_number": "+1 123 456-898-87",
"user_ds_registration": 3,
"user_initial_risk_score": 15,
"user_current_risk_score": 27,
"checkout_price": "560.00",
"checkout_isguest": true,
"checkout_billing_address": "8247 Christopher Mountains Apt. 462",
"checkout_billing_zip": "27315",
"checkout_card_bin": "259703",
"checkout_shipping_address": "9143 Wendy Park Suite 894",
"checkout_shipping_zip": "84639"
}
'import requests
url = "https://api.dataspike.io/api/v3/transmon/payment"
payload = {
"applicant_id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
"checkout_billing_country": "US",
"user_ip_address": "27.134.25.17",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"user_device_id": "nmljasfdKsed8keM#@2k",
"session_duration": 7200,
"user_email_address": "myverynicelogin@example.com",
"user_phone_number": "+1 123 456-898-87",
"user_ds_registration": 3,
"user_initial_risk_score": 15,
"user_current_risk_score": 27,
"checkout_price": "560.00",
"checkout_isguest": True,
"checkout_billing_address": "8247 Christopher Mountains Apt. 462",
"checkout_billing_zip": "27315",
"checkout_card_bin": "259703",
"checkout_shipping_address": "9143 Wendy Park Suite 894",
"checkout_shipping_zip": "84639"
}
headers = {
"ds-api-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'ds-api-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
applicant_id: 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6',
checkout_billing_country: 'US',
user_ip_address: '27.134.25.17',
user_agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0',
user_device_id: 'nmljasfdKsed8keM#@2k',
session_duration: 7200,
user_email_address: 'myverynicelogin@example.com',
user_phone_number: '+1 123 456-898-87',
user_ds_registration: 3,
user_initial_risk_score: 15,
user_current_risk_score: 27,
checkout_price: '560.00',
checkout_isguest: true,
checkout_billing_address: '8247 Christopher Mountains Apt. 462',
checkout_billing_zip: '27315',
checkout_card_bin: '259703',
checkout_shipping_address: '9143 Wendy Park Suite 894',
checkout_shipping_zip: '84639'
})
};
fetch('https://api.dataspike.io/api/v3/transmon/payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dataspike.io/api/v3/transmon/payment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'applicant_id' => 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6',
'checkout_billing_country' => 'US',
'user_ip_address' => '27.134.25.17',
'user_agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0',
'user_device_id' => 'nmljasfdKsed8keM#@2k',
'session_duration' => 7200,
'user_email_address' => 'myverynicelogin@example.com',
'user_phone_number' => '+1 123 456-898-87',
'user_ds_registration' => 3,
'user_initial_risk_score' => 15,
'user_current_risk_score' => 27,
'checkout_price' => '560.00',
'checkout_isguest' => true,
'checkout_billing_address' => '8247 Christopher Mountains Apt. 462',
'checkout_billing_zip' => '27315',
'checkout_card_bin' => '259703',
'checkout_shipping_address' => '9143 Wendy Park Suite 894',
'checkout_shipping_zip' => '84639'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"ds-api-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dataspike.io/api/v3/transmon/payment"
payload := strings.NewReader("{\n \"applicant_id\": \"f81d4fae-7dec-11d0-a765-00a0c91e6bf6\",\n \"checkout_billing_country\": \"US\",\n \"user_ip_address\": \"27.134.25.17\",\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0\",\n \"user_device_id\": \"nmljasfdKsed8keM#@2k\",\n \"session_duration\": 7200,\n \"user_email_address\": \"myverynicelogin@example.com\",\n \"user_phone_number\": \"+1 123 456-898-87\",\n \"user_ds_registration\": 3,\n \"user_initial_risk_score\": 15,\n \"user_current_risk_score\": 27,\n \"checkout_price\": \"560.00\",\n \"checkout_isguest\": true,\n \"checkout_billing_address\": \"8247 Christopher Mountains Apt. 462\",\n \"checkout_billing_zip\": \"27315\",\n \"checkout_card_bin\": \"259703\",\n \"checkout_shipping_address\": \"9143 Wendy Park Suite 894\",\n \"checkout_shipping_zip\": \"84639\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("ds-api-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dataspike.io/api/v3/transmon/payment")
.header("ds-api-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"applicant_id\": \"f81d4fae-7dec-11d0-a765-00a0c91e6bf6\",\n \"checkout_billing_country\": \"US\",\n \"user_ip_address\": \"27.134.25.17\",\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0\",\n \"user_device_id\": \"nmljasfdKsed8keM#@2k\",\n \"session_duration\": 7200,\n \"user_email_address\": \"myverynicelogin@example.com\",\n \"user_phone_number\": \"+1 123 456-898-87\",\n \"user_ds_registration\": 3,\n \"user_initial_risk_score\": 15,\n \"user_current_risk_score\": 27,\n \"checkout_price\": \"560.00\",\n \"checkout_isguest\": true,\n \"checkout_billing_address\": \"8247 Christopher Mountains Apt. 462\",\n \"checkout_billing_zip\": \"27315\",\n \"checkout_card_bin\": \"259703\",\n \"checkout_shipping_address\": \"9143 Wendy Park Suite 894\",\n \"checkout_shipping_zip\": \"84639\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dataspike.io/api/v3/transmon/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ds-api-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"applicant_id\": \"f81d4fae-7dec-11d0-a765-00a0c91e6bf6\",\n \"checkout_billing_country\": \"US\",\n \"user_ip_address\": \"27.134.25.17\",\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0\",\n \"user_device_id\": \"nmljasfdKsed8keM#@2k\",\n \"session_duration\": 7200,\n \"user_email_address\": \"myverynicelogin@example.com\",\n \"user_phone_number\": \"+1 123 456-898-87\",\n \"user_ds_registration\": 3,\n \"user_initial_risk_score\": 15,\n \"user_current_risk_score\": 27,\n \"checkout_price\": \"560.00\",\n \"checkout_isguest\": true,\n \"checkout_billing_address\": \"8247 Christopher Mountains Apt. 462\",\n \"checkout_billing_zip\": \"27315\",\n \"checkout_card_bin\": \"259703\",\n \"checkout_shipping_address\": \"9143 Wendy Park Suite 894\",\n \"checkout_shipping_zip\": \"84639\"\n}"
response = http.request(request)
puts response.read_body{
"event_id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
}"<string>"Send payment event
Send event of type “payment”
curl --request POST \
--url https://api.dataspike.io/api/v3/transmon/payment \
--header 'Content-Type: application/json' \
--header 'ds-api-token: <api-key>' \
--data '
{
"applicant_id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
"checkout_billing_country": "US",
"user_ip_address": "27.134.25.17",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"user_device_id": "nmljasfdKsed8keM#@2k",
"session_duration": 7200,
"user_email_address": "myverynicelogin@example.com",
"user_phone_number": "+1 123 456-898-87",
"user_ds_registration": 3,
"user_initial_risk_score": 15,
"user_current_risk_score": 27,
"checkout_price": "560.00",
"checkout_isguest": true,
"checkout_billing_address": "8247 Christopher Mountains Apt. 462",
"checkout_billing_zip": "27315",
"checkout_card_bin": "259703",
"checkout_shipping_address": "9143 Wendy Park Suite 894",
"checkout_shipping_zip": "84639"
}
'import requests
url = "https://api.dataspike.io/api/v3/transmon/payment"
payload = {
"applicant_id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
"checkout_billing_country": "US",
"user_ip_address": "27.134.25.17",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0",
"user_device_id": "nmljasfdKsed8keM#@2k",
"session_duration": 7200,
"user_email_address": "myverynicelogin@example.com",
"user_phone_number": "+1 123 456-898-87",
"user_ds_registration": 3,
"user_initial_risk_score": 15,
"user_current_risk_score": 27,
"checkout_price": "560.00",
"checkout_isguest": True,
"checkout_billing_address": "8247 Christopher Mountains Apt. 462",
"checkout_billing_zip": "27315",
"checkout_card_bin": "259703",
"checkout_shipping_address": "9143 Wendy Park Suite 894",
"checkout_shipping_zip": "84639"
}
headers = {
"ds-api-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'ds-api-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
applicant_id: 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6',
checkout_billing_country: 'US',
user_ip_address: '27.134.25.17',
user_agent: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0',
user_device_id: 'nmljasfdKsed8keM#@2k',
session_duration: 7200,
user_email_address: 'myverynicelogin@example.com',
user_phone_number: '+1 123 456-898-87',
user_ds_registration: 3,
user_initial_risk_score: 15,
user_current_risk_score: 27,
checkout_price: '560.00',
checkout_isguest: true,
checkout_billing_address: '8247 Christopher Mountains Apt. 462',
checkout_billing_zip: '27315',
checkout_card_bin: '259703',
checkout_shipping_address: '9143 Wendy Park Suite 894',
checkout_shipping_zip: '84639'
})
};
fetch('https://api.dataspike.io/api/v3/transmon/payment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dataspike.io/api/v3/transmon/payment",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'applicant_id' => 'f81d4fae-7dec-11d0-a765-00a0c91e6bf6',
'checkout_billing_country' => 'US',
'user_ip_address' => '27.134.25.17',
'user_agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0',
'user_device_id' => 'nmljasfdKsed8keM#@2k',
'session_duration' => 7200,
'user_email_address' => 'myverynicelogin@example.com',
'user_phone_number' => '+1 123 456-898-87',
'user_ds_registration' => 3,
'user_initial_risk_score' => 15,
'user_current_risk_score' => 27,
'checkout_price' => '560.00',
'checkout_isguest' => true,
'checkout_billing_address' => '8247 Christopher Mountains Apt. 462',
'checkout_billing_zip' => '27315',
'checkout_card_bin' => '259703',
'checkout_shipping_address' => '9143 Wendy Park Suite 894',
'checkout_shipping_zip' => '84639'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"ds-api-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dataspike.io/api/v3/transmon/payment"
payload := strings.NewReader("{\n \"applicant_id\": \"f81d4fae-7dec-11d0-a765-00a0c91e6bf6\",\n \"checkout_billing_country\": \"US\",\n \"user_ip_address\": \"27.134.25.17\",\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0\",\n \"user_device_id\": \"nmljasfdKsed8keM#@2k\",\n \"session_duration\": 7200,\n \"user_email_address\": \"myverynicelogin@example.com\",\n \"user_phone_number\": \"+1 123 456-898-87\",\n \"user_ds_registration\": 3,\n \"user_initial_risk_score\": 15,\n \"user_current_risk_score\": 27,\n \"checkout_price\": \"560.00\",\n \"checkout_isguest\": true,\n \"checkout_billing_address\": \"8247 Christopher Mountains Apt. 462\",\n \"checkout_billing_zip\": \"27315\",\n \"checkout_card_bin\": \"259703\",\n \"checkout_shipping_address\": \"9143 Wendy Park Suite 894\",\n \"checkout_shipping_zip\": \"84639\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("ds-api-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dataspike.io/api/v3/transmon/payment")
.header("ds-api-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"applicant_id\": \"f81d4fae-7dec-11d0-a765-00a0c91e6bf6\",\n \"checkout_billing_country\": \"US\",\n \"user_ip_address\": \"27.134.25.17\",\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0\",\n \"user_device_id\": \"nmljasfdKsed8keM#@2k\",\n \"session_duration\": 7200,\n \"user_email_address\": \"myverynicelogin@example.com\",\n \"user_phone_number\": \"+1 123 456-898-87\",\n \"user_ds_registration\": 3,\n \"user_initial_risk_score\": 15,\n \"user_current_risk_score\": 27,\n \"checkout_price\": \"560.00\",\n \"checkout_isguest\": true,\n \"checkout_billing_address\": \"8247 Christopher Mountains Apt. 462\",\n \"checkout_billing_zip\": \"27315\",\n \"checkout_card_bin\": \"259703\",\n \"checkout_shipping_address\": \"9143 Wendy Park Suite 894\",\n \"checkout_shipping_zip\": \"84639\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dataspike.io/api/v3/transmon/payment")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ds-api-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"applicant_id\": \"f81d4fae-7dec-11d0-a765-00a0c91e6bf6\",\n \"checkout_billing_country\": \"US\",\n \"user_ip_address\": \"27.134.25.17\",\n \"user_agent\": \"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0\",\n \"user_device_id\": \"nmljasfdKsed8keM#@2k\",\n \"session_duration\": 7200,\n \"user_email_address\": \"myverynicelogin@example.com\",\n \"user_phone_number\": \"+1 123 456-898-87\",\n \"user_ds_registration\": 3,\n \"user_initial_risk_score\": 15,\n \"user_current_risk_score\": 27,\n \"checkout_price\": \"560.00\",\n \"checkout_isguest\": true,\n \"checkout_billing_address\": \"8247 Christopher Mountains Apt. 462\",\n \"checkout_billing_zip\": \"27315\",\n \"checkout_card_bin\": \"259703\",\n \"checkout_shipping_address\": \"9143 Wendy Park Suite 894\",\n \"checkout_shipping_zip\": \"84639\"\n}"
response = http.request(request)
puts response.read_body{
"event_id": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
}"<string>"Authorizations
Body
Payment data
Applicant ID (user that sends payment)
"f81d4fae-7dec-11d0-a765-00a0c91e6bf6"
The country used for the billing address. ISO 3166-1 Alpha-2
"US"
The IP address of the user's current session
"27.134.25.17"
The full OS and browser type and version collected during the session
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0"
The unique identifier of the user's device
"nmljasfdKsed8keM#@2k"
The number of seconds since the user started the session
x >= 07200
The primary e-mail address associated with the user
"myverynicelogin@example.com"
The phone number associated with the user
"+1 123 456-898-87"
The number of days since the user's online registration
x >= 03
The original risk score that a customer was assigned during account registration. In range 0 <= ... <= 100
0 <= x <= 10015
The most current risk score that a customer has been assigned based on ongoing activity monitoring. In range 0 <= ... <= 100
0 <= x <= 10027
The amount the user is charged during checkout
"560.00"
Classify each checkout from a registered user, true/false
true
The complete street address and unit number used for billing
"8247 Christopher Mountains Apt. 462"
The postal code used for the billing address
"27315"
The first six digits of the card used for payment for the product being reviewed
"259703"
The complete street address and unit number used for shipping
"9143 Wendy Park Suite 894"
The postal code used for the shipping address
"84639"
Response
Created event ID
UUID of created event (you can use it for track result on WebHooks callback)
"f81d4fae-7dec-11d0-a765-00a0c91e6bf6"