Send payment event
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>Transaction monitoring API
Send payment event
Send event of type “payment”
POST
/
api
/
v3
/
transmon
/
payment
Send payment event
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>Body
application/json
Payment data