iGaming preAuth risk scoring
1 min
POST
https://api.accertify.net/api/v1/unified-risk/preAuthIGaming
Body Parameters
- preAuthobjectrequiredExample
{ "transactionID": "IGM-12345678", "transactionDateTime": "2022-06-10T14:30:00-05:00", "eventSource": "web", "accountID": "98712345678", "isGuestCheckout": false, "paymentAmount": 500, "deliveryAmount": 0, "success": false, "ipAddress": "10.12.12.123", "emailAddress": "[email protected]", "authenticationMethod": "password", "failureCode": "authFailed", "brand": "acme", "phoneNumber": "3125555555", "latitude": 41.878, "longitude": -87.629, "accountStatus": "active", "firstName": "Jane", "middleName": "Marie", "lastName": "Doe", "purchaseType": "services", "listingID": "abcd1234", "isPaymentOptimization": false, "account": { "isEnrolledInLoyaltyProgram": true, "loyaltyNumber": "Id1234", "accountLocale": "en-US", "accountLevel": "Gold", "accountType": "individual", "loyaltyProgramName": "Members Plus", "loyaltyPointsBalance": 987654321 }, "payment": { "isGift": false, "orderMessage": "Enjoy the gift", "isPaymentInInstallments": false, "isPaymentRecurring": false }, "addresses": [ { "addressType": "billing", "addressID": "23l4jk23klj23", "primaryFlag": true, "isAddressOnFile": true, "firstName": "Jane", "middleName": "Marie", "lastName": "Doe", "emailAddress": "[email protected]", "phone": "3125555555", "phoneCountryCode": "001", "address1": "1863 Main Street", "address2": "Apt 7", "city": "Chicago", "region": "IL", "postCode": "60601", "country": "US" } ], "paymentMethods": [ { "paymentType": "creditCard", "paymentMethodID": "2ljr9vxsdfew", "paymentMethodAmount": 500, "isPaymentStoredOnFile": true, "cardToken": "6f7%gf38hfUa", "expirationMonth": "11", "expirationYear": "2027", "nameOnCreditCard": "Jane Doe", "cardBin": "345678", "cardLastFour": "1111", "totalFailedAttempts": 0, "addressID": "23kl4l32l" } ], "memberStats": { "wagersLast7Days": 42, "wagersAmountLast7Days": 850, "wagersWonLast7Days": 18, "averageWager7Days": 25.5, "houseLimit": 5000 }, "deposit": { "depositID": "DEP1234567", "depositDateTime": "2022-06-10T14:28:00-05:00", "depositTotalAmount": 500, "taxAmount": 0, "currencyCode": "USD", "salesRepID": "SR#46k90", "referralCode": "API 210315" } }Description- transactionIDstringrequiredExampleDescriptionMax Length40
- transactionDateTimestring<date-time>requiredExampleDescriptionFormatdate-time
- eventSourcestring<agentPhone | agentStore | affiliate | kiosk | mobileApp | other | web>requiredExampleDescriptionAllowedagentPhoneagentStoreaffiliatekioskmobileAppotherweb
- accountIDstringExampleDescription
- isGuestCheckoutbooleanrequiredDescription
- isAgenticCheckoutbooleanDescription
- paymentAmountnumberrequiredExampleDescriptionMinimum0
- deliveryAmountnumberrequiredDescriptionMinimum0
- successbooleanrequiredDescription
- ipAddressstringExampleDescription
- userAgentstringExampleDescriptionMax Length250
- deviceTransactionIDstringExampleDescription
- devicePayloadstringExampleDescription
- ubaIDstringExampleDescriptionMax Length100
- ubaEventsstringExampleDescription
- emailAddressstringrequiredExampleDescription
- authenticationMethodstring<appAuthenticator | appPush | other | password | passkey | magicLink | SMS>ExampleDescriptionAllowedappAuthenticatorappPushotherpasswordpasskeymagicLinkSMS
- failureCodestring<authFailed | exportCompliance | other>ExampleDescriptionAllowedauthFailedexportComplianceother
- brandstringExampleDescriptionMax Length50
- phoneNumberstringExampleDescriptionMax Length25
- latitudenumberExampleDescription
- longitudenumberExampleDescription
- accountStatusstring<active | dormant | suspended | terminated | trial | other>ExampleDescriptionAllowedactivedormantsuspendedterminatedtrialother
- firstNamestringExampleDescription
- middleNamestringExampleDescription
- lastNamestringExampleDescription
- purchaseTypestring<physicalItems | digitalItems | services | other>requiredExampleDescriptionAllowedphysicalItemsdigitalItemsservicesother
- listingIDstringExampleDescriptionMax Length50
- isPaymentOptimizationbooleanDescription
- depositobjectExample
{ "depositID": "DEP1234567", "depositDateTime": "2022-06-10T14:28:00-05:00", "depositTotalAmount": 500, "taxAmount": 0, "currencyCode": "USD", "salesRepID": "SR#46k90", "referralCode": "API 210315" }Description- depositIDstringExampleDescription
- depositDateTimestring<date-time>ExampleDescriptionFormatdate-time
- depositTotalAmountnumberExampleDescriptionMinimum0
- taxAmountnumberDescriptionMinimum0
- currencyCodestringExampleDescription
- salesRepIDstringExampleDescription
- referralCodestringExampleDescription
- withdrawalobjectDescription
- withdrawalIDstringExampleDescription
- withdrawalDateTimestring<date-time>ExampleDescriptionFormatdate-time
- withdrawalTotalAmountnumberExampleDescriptionMinimum0
- taxAmountnumberDescriptionMinimum0
- currencyCodestringExampleDescription
- memberStatsobjectExample
{ "wagersLast7Days": 42, "wagersAmountLast7Days": 850, "wagersWonLast7Days": 18, "averageWager7Days": 25.5, "houseLimit": 5000 }Description- wagersLastDayintegerExampleDescriptionMinimum0
- wagersAmountLastDaynumberExampleDescriptionMinimum0
- wagersWonLastDayintegerExampleDescriptionMinimum0
- wagersAmountWonLastDaynumberExampleDescriptionMinimum0
- averageOddsLastDaynumberExampleDescriptionMinimum0
- wagersLast7DaysintegerExampleDescriptionMinimum0
- wagersAmountLast7DaysnumberExampleDescriptionMinimum0
- wagersWonLast7DaysintegerExampleDescriptionMinimum0
- wagersAmountWonLast7DaysnumberExampleDescriptionMinimum0
- averageOddsLast7DaysnumberExampleDescriptionMinimum0
- wagersLast30DaysintegerExampleDescriptionMinimum0
- wagersAmountLast30DaysnumberExampleDescriptionMinimum0
- wagersWonLast30DaysintegerExampleDescriptionMinimum0
- wagersAmountWonLast30DaysnumberExampleDescriptionMinimum0
- averageOddsLast30DaysnumberExampleDescriptionMinimum0
- wagersLast90DaysintegerExampleDescriptionMinimum0
- wagersAmountLast90DaysnumberExampleDescriptionMinimum0
- wagersWonLast90DaysintegerExampleDescriptionMinimum0
- wagersAmountWonLast90DaysnumberExampleDescriptionMinimum0
- averageOddsLast90DaysnumberExampleDescriptionMinimum0
- wagersLast365DaysintegerExampleDescriptionMinimum0
- wagersAmountLast365DaysnumberExampleDescriptionMinimum0
- wagersWonLast365DaysintegerExampleDescriptionMinimum0
- wagersAmountWonLast365DaysnumberExampleDescriptionMinimum0
- averageOddsLast365DaysnumberExampleDescriptionMinimum0
- wagersLifetimeintegerExampleDescriptionMinimum0
- wagersAmountLifetimenumberExampleDescriptionMinimum0
- wagersWonLifetimeintegerExampleDescriptionMinimum0
- wagersAmountWonLifetimenumberExampleDescriptionMinimum0
- averageOddsLifetimenumberExampleDescriptionMinimum0
- averageWagerLastDaynumberExampleDescriptionMinimum0
- averageWager7DaysnumberExampleDescriptionMinimum0
- averageWager30DaysnumberExampleDescriptionMinimum0
- averageWager90DaysnumberExampleDescriptionMinimum0
- averageWager365DaysnumberExampleDescriptionMinimum0
- averageWagerLifetimenumberExampleDescriptionMinimum0
- maxWagerLastDaynumberExampleDescriptionMinimum0
- maxWager7DaysnumberExampleDescriptionMinimum0
- maxWager30DaysnumberExampleDescriptionMinimum0
- maxWager90DaysnumberExampleDescriptionMinimum0
- maxWager365DaysnumberExampleDescriptionMinimum0
- maxWagerLifetimenumberExampleDescriptionMinimum0
- minWagerLastDaynumberExampleDescriptionMinimum0
- minWager7DaysnumberExampleDescriptionMinimum0
- minWager30DaysnumberExampleDescriptionMinimum0
- minWager90DaysnumberExampleDescriptionMinimum0
- minWager365DaysnumberExampleDescriptionMinimum0
- minWagerLifetimenumberExampleDescriptionMinimum0
- earlyCashoutsLastDayintegerExampleDescriptionMinimum0
- earlyCashoutsLast7DaysintegerExampleDescriptionMinimum0
- earlyCashoutsLast30DaysintegerExampleDescriptionMinimum0
- earlyCashoutsLast90DaysintegerExampleDescriptionMinimum0
- earlyCashoutsLast365DaysintegerExampleDescriptionMinimum0
- earlyCashoutsLifetimeintegerExampleDescriptionMinimum0
- earlyCashoutsAmountLastDaynumberExampleDescriptionMinimum0
- earlyCashoutsAmountLast7DaysnumberExampleDescriptionMinimum0
- earlyCashoutsAmountLast30DaysnumberExampleDescriptionMinimum0
- earlyCashoutsAmountLast90DaysnumberExampleDescriptionMinimum0
- earlyCashoutsAmountLast365DaysnumberExampleDescriptionMinimum0
- earlyCashoutsAmountLifetimenumberExampleDescriptionMinimum0
- liveWagersLastDayintegerExampleDescriptionMinimum0
- liveWagersLast7DaysintegerExampleDescriptionMinimum0
- liveWagersLast30DaysintegerExampleDescriptionMinimum0
- liveWagersLast90DaysintegerExampleDescriptionMinimum0
- liveWagersLast365DaysintegerExampleDescriptionMinimum0
- liveWagersLifetimeintegerExampleDescriptionMinimum0
- averageTimeBeforeMatchnumberExampleDescriptionMinimum0
- houseLimitnumberExampleDescriptionMinimum0
- accountobjectExample
{ "isEnrolledInLoyaltyProgram": true, "loyaltyNumber": "Id1234", "accountLocale": "en-US", "accountLevel": "Gold", "accountType": "individual", "loyaltyProgramName": "Members Plus", "loyaltyPointsBalance": 987654321 }Description- isEnrolledInLoyaltyProgrambooleanExampleDescription
- loyaltyNumberstringExampleDescription
- accountLocalestringExampleDescription
- accountLevelstringExampleDescription
- accountTypestring<individual | business | family | other>ExampleDescriptionAllowedindividualbusinessfamilyother
- accountRegistrationDateTimestring<date-time>ExampleDescriptionFormatdate-time
- accountEmailUpdatedDateTimestring<date-time>ExampleDescriptionFormatdate-time
- accountPasswordUpdatedDateTimestring<date-time>ExampleDescriptionFormatdate-time
- dateOfBirthstring<date>ExampleDescriptionFormatdate
- loyaltyProgramNamestringExampleDescriptionMax Length100
- loyaltyPointsBalanceintegerExampleDescriptionMinimum0
- paymentobjectExample
{ "isGift": false, "orderMessage": "Enjoy the gift", "isPaymentInInstallments": false, "isPaymentRecurring": false }Description- isGiftbooleanDescription
- orderMessagestringExampleDescription
- isPaymentInInstallmentsbooleanDescription
- installmentAmountnumberExampleDescriptionMinimum (exclusive)0
- installmentCurrencyCodestringExampleDescription
- installmentCountintegerExampleDescriptionMinimum (exclusive)0
- isPaymentRecurringbooleanDescription
- addressesobject[]Example
[ { "addressType": "billing", "addressID": "23l4jk23klj23", "primaryFlag": true, "isAddressOnFile": true, "firstName": "Jane", "middleName": "Marie", "lastName": "Doe", "emailAddress": "[email protected]", "phone": "3125555555", "phoneCountryCode": "001", "address1": "1863 Main Street", "address2": "Apt 7", "city": "Chicago", "region": "IL", "postCode": "60601", "country": "US" } ]- addressIDstringrequiredExampleDescription
- addressTypestring<account | billing | bopis | curbside | departure | destination | fulfillment | listing | lodging | pickup | return | shipping | venue | other>requiredExampleDescriptionAllowedaccountbillingbopiscurbsidedeparturedestinationfulfillmentlistinglodgingpickupreturnshippingvenueother
- primaryFlagbooleanExampleDescription
- isAddressOnFilebooleanExampleDescription
- firstNamestringrequiredExampleDescription
- middleNamestringExampleDescription
- lastNamestringrequiredExampleDescription
- emailAddressstringExampleDescription
- phonestringrequiredExampleDescription
- phoneCountryCodestringrequiredExampleDescription
- address1stringrequiredExampleDescription
- address2stringExampleDescription
- citystringrequiredExampleDescription
- regionstringrequiredExampleDescription
- postCodestringrequiredExampleDescription
- countrystringrequiredExampleDescription
- companyNamestringExampleDescription
- addressCreatedDateTimestring<date-time>ExampleDescriptionFormatdate-time
- addressUpdatedDateTimestring<date-time>ExampleDescriptionFormatdate-time
- paymentMethodsobject[]Example
[ { "paymentType": "creditCard", "paymentMethodID": "2ljr9vxsdfew", "paymentMethodAmount": 500, "isPaymentStoredOnFile": true, "cardToken": "6f7%gf38hfUa", "expirationMonth": "11", "expirationYear": "2027", "nameOnCreditCard": "Jane Doe", "cardBin": "345678", "cardLastFour": "1111", "totalFailedAttempts": 0, "addressID": "23kl4l32l" } ]- paymentTypestring<bankAccount | cash | check | creditCard | cryptoCurrency | digitalWallet | electronicFundTransfer | giftCard | invoice | loan | loyaltyPoints | moneyOrder | secCard | storeCredit | thirdParty | voucher>ExampleDescriptionAllowedbankAccountcashcheckcreditCardcryptoCurrencydigitalWalletelectronicFundTransfergiftCardinvoiceloanloyaltyPointsmoneyOrdersecCardstoreCreditthirdPartyvoucher
- paymentMethodIDstringExampleDescription
- paymentMethodAmountnumberExampleDescriptionMinimum0
- isPaymentStoredOnFilebooleanExampleDescription
- cardNumberstringExampleDescription
- cardTokenstringExampleDescription
- expirationMonthstring<01 | 02 | 03 | 04 | 05 | 06 | 07 | 8 | 9 | 10 | 11 | 12>ExampleDescriptionAllowed0102030405060789101112
- expirationYearstringExampleDescription
- nameOnCreditCardstringExampleDescription
- cardBinstringExampleDescription
- cardLastFourstringExampleDescription
- totalFailedAttemptsintegerDescriptionMinimum0
- paymentMethodCreatedDateTimestring<date-time>ExampleDescriptionFormatdate-time
- paymentMethodUpdatedDateTimestring<date-time>ExampleDescriptionFormatdate-time
- addressIDstringExampleDescription
- nameOnAccountstringExampleDescription
- walletTypestringExampleDescription
- walletStatusstring<active | pending | inactive>ExampleDescriptionAllowedactivependinginactive
- isWalletProtectionEligiblebooleanExampleDescription
- paymentMethodBalanceAmountnumberExampleDescriptionMinimum (exclusive)0
- giftCardNumberstringExampleDescription
- giftCardLastFourstringExampleDescription
- giftCardBINstringExampleDescription
- expirationDaystringExampleDescription
- pointsintegerExampleDescription
- loyaltyProgramNamestringExampleDescription
- accountTypestring<checking | saving | moneyMarket | other>ExampleDescriptionAllowedcheckingsavingmoneyMarketother
- itemsobject[]
- itemTypestring<giftCard | parking | physicalGood | reservation | subscription | ticket | other>ExampleDescriptionAllowedgiftCardparkingphysicalGoodreservationsubscriptionticketother
- brandNamestringExampleDescription
- descriptionstringExampleDescription
- categorystringExampleDescription
- itemIDstringExampleDescription
- isHighRiskItembooleanrequiredExampleDescription
- pricenumberrequiredExampleDescriptionMinimum0
- faceValueAmountnumberExampleDescriptionMinimum0
- quantitynumberExampleDescription
- addressIDstringExampleDescription
- productConditionstring<new | openPackage | other | refurbished | used>ExampleDescriptionAllowednewopenPackageotherrefurbishedused
- shippingCompanystring<dhl | fedex | ups | usps | other>ExampleDescriptionAlloweddhlfedexupsuspsother
- companyNamestringExampleDescriptionMax Length50
- shippingMethodstring<digital | ground | international | other | nextDay | sameDay | storePickup | twoDay | threeDay>requiredExampleDescriptionAlloweddigitalgroundinternationalothernextDaysameDaystorePickuptwoDaythreeDay
- shippingTrackingNumberstringExampleDescriptionMax Length30
- promoCodestringExampleDescriptionMax Length40
- promoAmountnumberExampleDescriptionMinimum0
- promoTypestring<bogo | bundle | employeeDiscount | freeShipping | loyaltyDiscount | newMemberDiscount | percentage | quantityPromotion | other>ExampleDescriptionAllowedbogobundleemployeeDiscountfreeShippingloyaltyDiscountnewMemberDiscountpercentagequantityPromotionother
- pickupLocationstring<curbside | dropBox | inStore | other>ExampleDescriptionAllowedcurbsidedropBoxinStoreother
- pickupDateTimestring<date-time>ExampleDescriptionFormatdate-time
- pickupPersonFirstNamestringExampleDescriptionMax Length40
- pickupPersonLastNamestringExampleDescriptionMax Length40
- promotionsobject[]
- promoCodestringExampleDescription
- promoAmountnumberrequiredExampleDescriptionMinimum0
- promoTypestring<bogo | bundle | employeeDiscount | freeShipping | loyaltyDiscount | newMemberDiscount | percentage | quantityPromotion | other>ExampleDescriptionAllowedbogobundleemployeeDiscountfreeShippingloyaltyDiscountnewMemberDiscountpercentagequantityPromotionother
Responses
200
- scoredPreAuthResultDescription
- eventIDstring
- eventDetailseventDetailsDescription
- deviceDetailsobject
- browserSpoofRiskstringExampleDescription
- deviceIDNewstringExampleDescription
- browserIsMobilestringExampleDescription
- mobileIsRootedstringExampleDescription
- deviceIDFirstSeennumberExampleDescription
- browserNewCookiestringExampleDescription
- deviceIDTimesSeennumberExampleDescription
- mobileAppstringExampleDescription
- browserReplayTagStatusstringExampleDescription
- deviceIDstringExampleDescription
- connectionDetailsobject
- hostingIndicatorstringExampleDescription
- isTorstringExampleDescription
- hostingIndicatorRealstringExampleDescription
- realIPMatchstringExampleDescription
- countryCodestringExampleDescription
- countryCodeRealstringExampleDescription
- isProxystringExampleDescription
- paymentOptimizationpaymentOptimizationDescription
- 3DSModulestringExampleDescription
- 3DSRunstringExampleDescription
- 3DSRecommendationstring<00 | 01 | 02 | 03 | 04 | 05 | 06 | >ExampleDescriptionAllowed00010203040506
- SCAResultstring<In Scope Exempt TRA | In Scope Exempt LVT | In Scope Exempt SCP | In Scope Not Exempt | Out of Scope>ExampleDescriptionAllowedIn Scope Exempt TRAIn Scope Exempt LVTIn Scope Exempt SCPIn Scope Not ExemptOut of Scope
- messagesapiMessages
- errorapiMessage[]
- codestringrequiredExampleDescription
- messagestringrequiredExampleDescription
- fieldstringExampleDescription
- detailsmap<string, string>Description
- warningapiMessage[]
- codestringrequiredExampleDescription
- messagestringrequiredExampleDescription
- fieldstringExampleDescription
- detailsmap<string, string>Description
- infoapiMessage[]
- codestringrequiredExampleDescription
- messagestringrequiredExampleDescription
- fieldstringExampleDescription
- detailsmap<string, string>Description
- statusbooleanrequired
400
- validationFailedErrorDescription
- errorCodeintegerExampleDescription
- errorMessagestringExampleDescription
- errorsstring[]Example
[ "Missing required field: transactionID" ]
Description
401
- notAuthorizedErrorDescription
- errorCodeintegerExampleDescription
- errorMessagestringExampleDescription
429
- rateLimitErrorDescription
- errorCodeintegerExampleDescription
- errorMessagestringExampleDescription
500
- internalServerErrorDescription
- errorCodeintegerExampleDescription
- errorMessagestringExampleDescription
curl
curl --request POST \
--url https://api.accertify.net/api/v1/unified-risk/preAuthIGaming \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data-raw '{
"transactionID": "IGM-12345678",
"transactionDateTime": "2022-06-10T14:30:00-05:00",
"eventSource": "web",
"isGuestCheckout": false,
"paymentAmount": 500,
"deliveryAmount": 0,
"success": false,
"emailAddress": "[email protected]",
"purchaseType": "services",
"addresses": [
{
"addressID": "23l4jk23klj23",
"addressType": "billing",
"firstName": "Jane",
"lastName": "Doe",
"phone": "3125555555",
"phoneCountryCode": "001",
"address1": "1863 Main Street",
"city": "Chicago",
"region": "IL",
"postCode": "60601",
"country": "US"
}
],
"items": [
{
"isHighRiskItem": true,
"price": 1199.99,
"shippingMethod": "ground"
}
],
"promotions": [
{
"promoAmount": 50
}
]
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"transactionID": "IGM-12345678",
"transactionDateTime": "2022-06-10T14:30:00-05:00",
"eventSource": "web",
"isGuestCheckout": false,
"paymentAmount": 500,
"deliveryAmount": 0,
"success": false,
"emailAddress": "[email protected]",
"purchaseType": "services",
"addresses": [
{
"addressID": "23l4jk23klj23",
"addressType": "billing",
"firstName": "Jane",
"lastName": "Doe",
"phone": "3125555555",
"phoneCountryCode": "001",
"address1": "1863 Main Street",
"city": "Chicago",
"region": "IL",
"postCode": "60601",
"country": "US"
}
],
"items": [
{
"isHighRiskItem": true,
"price": 1199.99,
"shippingMethod": "ground"
}
],
"promotions": [
{
"promoAmount": 50
}
]
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.accertify.net/api/v1/unified-risk/preAuthIGaming", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.accertify.net/api/v1/unified-risk/preAuthIGaming")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump({
"transactionID": "IGM-12345678",
"transactionDateTime": "2022-06-10T14:30:00-05:00",
"eventSource": "web",
"isGuestCheckout": false,
"paymentAmount": 500,
"deliveryAmount": 0,
"success": false,
"emailAddress": "[email protected]",
"purchaseType": "services",
"addresses": [
{
"addressID": "23l4jk23klj23",
"addressType": "billing",
"firstName": "Jane",
"lastName": "Doe",
"phone": "3125555555",
"phoneCountryCode": "001",
"address1": "1863 Main Street",
"city": "Chicago",
"region": "IL",
"postCode": "60601",
"country": "US"
}
],
"items": [
{
"isHighRiskItem": true,
"price": 1199.99,
"shippingMethod": "ground"
}
],
"promotions": [
{
"promoAmount": 50
}
]
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.accertify.net/api/v1/unified-risk/preAuthIGaming"
payload = json.dumps({
"transactionID": "IGM-12345678",
"transactionDateTime": "2022-06-10T14:30:00-05:00",
"eventSource": "web",
"isGuestCheckout": False,
"paymentAmount": 500,
"deliveryAmount": 0,
"success": False,
"emailAddress": "[email protected]",
"purchaseType": "services",
"addresses": [
{
"addressID": "23l4jk23klj23",
"addressType": "billing",
"firstName": "Jane",
"lastName": "Doe",
"phone": "3125555555",
"phoneCountryCode": "001",
"address1": "1863 Main Street",
"city": "Chicago",
"region": "IL",
"postCode": "60601",
"country": "US"
}
],
"items": [
{
"isHighRiskItem": True,
"price": 1199.99,
"shippingMethod": "ground"
}
],
"promotions": [
{
"promoAmount": 50
}
]
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Successful response.
{
"eventID": "",
"eventDetails": {
"deviceDetails": {
"browserSpoofRisk": "HIGH_RISK",
"deviceIDNew": "true",
"browserIsMobile": "true",
"mobileIsRooted": "true",
"deviceIDFirstSeen": 97,
"browserNewCookie": "false",
"deviceIDTimesSeen": 123,
"mobileApp": "true",
"browserReplayTagStatus": "VALID",
"deviceID": "63dc80b4-e585-4ae8-8004-e24fb0d1fa84"
},
"connectionDetails": {
"hostingIndicator": "true",
"isTor": "true",
"hostingIndicatorReal": "true",
"realIPMatch": "true",
"countryCode": "us",
"countryCodeReal": "de",
"isProxy": "false"
}
},
"paymentOptimization": {
"3DSModule": "active",
"3DSRun": "true",
"3DSRecommendation": "06",
"SCAResult": "In Scope Not Exempt"
},
"messages": {
"error": [
{
"code": "FIELD_REQUIRED_MISSING",
"message": "transactionID is required and was not provided",
"field": "transactionID",
"details": ""
}
],
"warning": [
{
"code": "FIELD_REQUIRED_MISSING",
"message": "transactionID is required and was not provided",
"field": "transactionID",
"details": ""
}
],
"info": [
{
"code": "FIELD_REQUIRED_MISSING",
"message": "transactionID is required and was not provided",
"field": "transactionID",
"details": ""
}
]
},
"status": false
}400
// Error response for invalid or missing request inputs. Returned when one or more required fields are absent or fail validation.
{
"errorCode": 400,
"errorMessage": "Validation Failed",
"errors": [
""
]
}401
// Error response for authentication or authorization failures. Returned when credentials are invalid or the authenticated user has no matching API configuration for this endpoint.
{
"errorCode": 401,
"errorMessage": "Not Authorized"
}429
// Error response when the request rate limit has been exceeded for the API user or API configuration.
{
"errorCode": 429,
"errorMessage": "Rate Limit Exceeded"
}500
// Error response when the request cannot be processed due to an unexpected internal error.
{
"errorCode": 500,
"errorMessage": "Internal Server Error"
}