cURL
curl --request POST \
--url https://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'apiSecret: <api-key>' \
--data '
{
"device": {
"deviceId": "ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789",
"manufacturer": "Apple",
"model": "iPhone 15 Pro",
"name": "Amara iPhone 15 Pro",
"osName": "iOS",
"osVersion": "18.1.0"
},
"customerId": "CUS-10001"
}
'import requests
url = "https://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device"
payload = {
"device": {
"deviceId": "ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789",
"manufacturer": "Apple",
"model": "iPhone 15 Pro",
"name": "Amara iPhone 15 Pro",
"osName": "iOS",
"osVersion": "18.1.0"
},
"customerId": "CUS-10001"
}
headers = {
"apiKey": "<api-key>",
"apiSecret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
apiKey: '<api-key>',
apiSecret: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
device: {
deviceId: 'ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789',
manufacturer: 'Apple',
model: 'iPhone 15 Pro',
name: 'Amara iPhone 15 Pro',
osName: 'iOS',
osVersion: '18.1.0'
},
customerId: 'CUS-10001'
})
};
fetch('https://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device', 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://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device",
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([
'device' => [
'deviceId' => 'ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789',
'manufacturer' => 'Apple',
'model' => 'iPhone 15 Pro',
'name' => 'Amara iPhone 15 Pro',
'osName' => 'iOS',
'osVersion' => '18.1.0'
],
'customerId' => 'CUS-10001'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apiKey: <api-key>",
"apiSecret: <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://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device"
payload := strings.NewReader("{\n \"device\": {\n \"deviceId\": \"ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789\",\n \"manufacturer\": \"Apple\",\n \"model\": \"iPhone 15 Pro\",\n \"name\": \"Amara iPhone 15 Pro\",\n \"osName\": \"iOS\",\n \"osVersion\": \"18.1.0\"\n },\n \"customerId\": \"CUS-10001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("apiSecret", "<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://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device")
.header("apiKey", "<api-key>")
.header("apiSecret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"device\": {\n \"deviceId\": \"ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789\",\n \"manufacturer\": \"Apple\",\n \"model\": \"iPhone 15 Pro\",\n \"name\": \"Amara iPhone 15 Pro\",\n \"osName\": \"iOS\",\n \"osVersion\": \"18.1.0\"\n },\n \"customerId\": \"CUS-10001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apiKey"] = '<api-key>'
request["apiSecret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"device\": {\n \"deviceId\": \"ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789\",\n \"manufacturer\": \"Apple\",\n \"model\": \"iPhone 15 Pro\",\n \"name\": \"Amara iPhone 15 Pro\",\n \"osName\": \"iOS\",\n \"osVersion\": \"18.1.0\"\n },\n \"customerId\": \"CUS-10001\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Device saved successfully"
}{
"error": 400,
"message": "Invalid request payload: transactionData.reference is required"
}Transaction Monitoring
Save User Device
POST api/v1/transaction-monitoring/customers/device
cURL
curl --request POST \
--url https://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device \
--header 'Content-Type: application/json' \
--header 'apiKey: <api-key>' \
--header 'apiSecret: <api-key>' \
--data '
{
"device": {
"deviceId": "ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789",
"manufacturer": "Apple",
"model": "iPhone 15 Pro",
"name": "Amara iPhone 15 Pro",
"osName": "iOS",
"osVersion": "18.1.0"
},
"customerId": "CUS-10001"
}
'import requests
url = "https://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device"
payload = {
"device": {
"deviceId": "ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789",
"manufacturer": "Apple",
"model": "iPhone 15 Pro",
"name": "Amara iPhone 15 Pro",
"osName": "iOS",
"osVersion": "18.1.0"
},
"customerId": "CUS-10001"
}
headers = {
"apiKey": "<api-key>",
"apiSecret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
apiKey: '<api-key>',
apiSecret: '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
device: {
deviceId: 'ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789',
manufacturer: 'Apple',
model: 'iPhone 15 Pro',
name: 'Amara iPhone 15 Pro',
osName: 'iOS',
osVersion: '18.1.0'
},
customerId: 'CUS-10001'
})
};
fetch('https://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device', 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://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device",
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([
'device' => [
'deviceId' => 'ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789',
'manufacturer' => 'Apple',
'model' => 'iPhone 15 Pro',
'name' => 'Amara iPhone 15 Pro',
'osName' => 'iOS',
'osVersion' => '18.1.0'
],
'customerId' => 'CUS-10001'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apiKey: <api-key>",
"apiSecret: <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://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device"
payload := strings.NewReader("{\n \"device\": {\n \"deviceId\": \"ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789\",\n \"manufacturer\": \"Apple\",\n \"model\": \"iPhone 15 Pro\",\n \"name\": \"Amara iPhone 15 Pro\",\n \"osName\": \"iOS\",\n \"osVersion\": \"18.1.0\"\n },\n \"customerId\": \"CUS-10001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("apiSecret", "<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://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device")
.header("apiKey", "<api-key>")
.header("apiSecret", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"device\": {\n \"deviceId\": \"ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789\",\n \"manufacturer\": \"Apple\",\n \"model\": \"iPhone 15 Pro\",\n \"name\": \"Amara iPhone 15 Pro\",\n \"osName\": \"iOS\",\n \"osVersion\": \"18.1.0\"\n },\n \"customerId\": \"CUS-10001\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sigmaprod.sabipay.com/api/v1/transaction-monitoring/customers/device")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apiKey"] = '<api-key>'
request["apiSecret"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"device\": {\n \"deviceId\": \"ios-7F3A9C2E-91B4-4A5E-9D8A-1F23C4B56789\",\n \"manufacturer\": \"Apple\",\n \"model\": \"iPhone 15 Pro\",\n \"name\": \"Amara iPhone 15 Pro\",\n \"osName\": \"iOS\",\n \"osVersion\": \"18.1.0\"\n },\n \"customerId\": \"CUS-10001\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Device saved successfully"
}{
"error": 400,
"message": "Invalid request payload: transactionData.reference is required"
}Body
application/json
Save users device for transaction monitoring
Response
Transaction monitoring result
Message after sevice is saved
Example:
"Device saved successfully"
⌘I