Get the results of a batch universal enrichment job
curl --request GET \
--url https://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results \
--header 'X-Api-Key: <api-key>'import requests
url = "https://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results', 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://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <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"
"net/http"
"io"
)
func main() {
url := "https://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"results": [
{
"transactionInfo": {
"type": "spending",
"subType": null,
"spendingInfo": null,
"thirdParties": [
{
"id": "ac48cef2-0d7f-4159-865e-e92b152262bc",
"name": "Paypal",
"type": "payment_processor",
"logo": "https://static.v2.spadeapi.com/logos/9063bc0f0a3f4b1fbf644f9862e17002/light.png",
"website": "https://www.paypal.com/"
}
],
"recurrenceInfo": null,
"display": {
"name": "<string>",
"categoryName": "<string>",
"graphic": "<string>"
},
"transferInfo": {
"isAdjustmentOrRefund": true
},
"atmInfo": {
"sponsorName": "<string>",
"ownerName": "<string>"
},
"isAccountVerification": true,
"isPeerToPeer": true,
"isDigitalWallet": true,
"transactionId": "<string>",
"riskInsights": {
"irregularWebPresenceDetected": true,
"negativeOnlineSentiment": true,
"highRiskEntity": true,
"riskyIndustry": true
}
},
"counterparty": [
{
"location": [
{
"id": "fdf79470-3deb-4638-956a-6859e473b9d8",
"address": "1234 W 5th Ave Suite 100",
"addressLine1": "1234 W 5th Ave",
"addressLine2": "Suite 100",
"city": "New York",
"region": "NY",
"country": "USA",
"postalCode": "10001",
"latitude": 45,
"longitude": 120,
"phoneNumber": "+18664862360",
"matchScore": 93.5
}
],
"possibleCounterpartyAlternate": null,
"id": "704bbd58-fb12-4bdb-9aae-2786704ea92a",
"name": "Amazon",
"legalName": "Amazon Inc.",
"industry": [
{
"id": "011-000-000-000",
"name": "Retail",
"icon": "https://static.v2.spadeapi.com/categories/ee4ee39fd5474d31ac42f9e606b9040a/light.png"
}
],
"matchScore": 93.5,
"logo": "https://static.v2.spadeapi.com/logos/de33f8973bc934c5b368a5b27155db02/light.png",
"phoneNumber": "+18664862360",
"website": "https://www.amazon.com"
}
],
"enrichmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mobileAppInfo": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"logo": "<string>",
"developerName": "<string>",
"developerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hasGamblingOrRewards": true,
"hasSimulatedGambling": true
},
"customAttributes": {},
"actions": [
{
"id": "<string>",
"type": "merchant_trigger",
"action": {},
"scope": "account",
"source": "counterparty",
"categoryId": "<string>",
"categoryName": "<string>"
}
],
"statusCode": 123,
"errors": {}
}
]
}{
"batchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"invalidField": [
"<string>"
]
}{
"details": "<string>"
}{
"details": "<string>"
}{
"details": "<string>"
}Universal Enrichment
Get the results of a batch universal enrichment job
Get the results of a batch universal enrichment job.
GET
/
batches
/
{universalEnrichmentBatchId}
/
results
Get the results of a batch universal enrichment job
curl --request GET \
--url https://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results \
--header 'X-Api-Key: <api-key>'import requests
url = "https://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results', 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://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <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"
"net/http"
"io"
)
func main() {
url := "https://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://east.sandbox.spade.com/batches/{universalEnrichmentBatchId}/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"results": [
{
"transactionInfo": {
"type": "spending",
"subType": null,
"spendingInfo": null,
"thirdParties": [
{
"id": "ac48cef2-0d7f-4159-865e-e92b152262bc",
"name": "Paypal",
"type": "payment_processor",
"logo": "https://static.v2.spadeapi.com/logos/9063bc0f0a3f4b1fbf644f9862e17002/light.png",
"website": "https://www.paypal.com/"
}
],
"recurrenceInfo": null,
"display": {
"name": "<string>",
"categoryName": "<string>",
"graphic": "<string>"
},
"transferInfo": {
"isAdjustmentOrRefund": true
},
"atmInfo": {
"sponsorName": "<string>",
"ownerName": "<string>"
},
"isAccountVerification": true,
"isPeerToPeer": true,
"isDigitalWallet": true,
"transactionId": "<string>",
"riskInsights": {
"irregularWebPresenceDetected": true,
"negativeOnlineSentiment": true,
"highRiskEntity": true,
"riskyIndustry": true
}
},
"counterparty": [
{
"location": [
{
"id": "fdf79470-3deb-4638-956a-6859e473b9d8",
"address": "1234 W 5th Ave Suite 100",
"addressLine1": "1234 W 5th Ave",
"addressLine2": "Suite 100",
"city": "New York",
"region": "NY",
"country": "USA",
"postalCode": "10001",
"latitude": 45,
"longitude": 120,
"phoneNumber": "+18664862360",
"matchScore": 93.5
}
],
"possibleCounterpartyAlternate": null,
"id": "704bbd58-fb12-4bdb-9aae-2786704ea92a",
"name": "Amazon",
"legalName": "Amazon Inc.",
"industry": [
{
"id": "011-000-000-000",
"name": "Retail",
"icon": "https://static.v2.spadeapi.com/categories/ee4ee39fd5474d31ac42f9e606b9040a/light.png"
}
],
"matchScore": 93.5,
"logo": "https://static.v2.spadeapi.com/logos/de33f8973bc934c5b368a5b27155db02/light.png",
"phoneNumber": "+18664862360",
"website": "https://www.amazon.com"
}
],
"enrichmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mobileAppInfo": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"url": "<string>",
"logo": "<string>",
"developerName": "<string>",
"developerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hasGamblingOrRewards": true,
"hasSimulatedGambling": true
},
"customAttributes": {},
"actions": [
{
"id": "<string>",
"type": "merchant_trigger",
"action": {},
"scope": "account",
"source": "counterparty",
"categoryId": "<string>",
"categoryName": "<string>"
}
],
"statusCode": 123,
"errors": {}
}
]
}{
"batchId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"invalidField": [
"<string>"
]
}{
"details": "<string>"
}{
"details": "<string>"
}{
"details": "<string>"
}โI

