Travel post-authorization risk score
1 min
POST
https://api.accertify.net/api/v1/unified-risk/postAuthTravel
Body Parameters
- postAuthobjectrequiredExample
{ "transactionID": "ABC123456", "transactionDateTime": "2022-03-11T17:07:24-07:00", "eventSource": "web", "accountID": "12363454566", "isGuestCheckout": false, "isAgenticCheckout": false, "paymentAmount": 1082.91, "taxAmount": 1.23, "deliveryAmount": 5.99, "currencyCode": "USD", "success": true, "ipAddress": "10.12.12.123", "emailAddress": "[email protected]", "authenticationMethod": "magicLink", "failureCode": "authFailed", "brand": "acme", "phoneNumber": "3125555555", "latitude": 33.836, "longitude": -117.914, "accountStatus": "dormant", "firstName": "Jane", "middleName": "Marie", "lastName": "Doe", "purchaseType": "services", "isPaymentOptimization": false, "is3DS": false, "account": { "isEnrolledInLoyaltyProgram": true, "loyaltyNumber": "Id1234", "accountLocale": "en-US", "accountLevel": "Gold", "accountType": "family" }, "payment": { "salesRepID": "SR#46k90", "referralCode": "API 210315", "isGift": false, "orderMessage": "Enjoy the gift", "isPaymentInInstallments": false, "isPaymentRecurring": false }, "addresses": [ { "addressType": "billing", "addressID": "23l4jk23klj23", "firstName": "Jane", "lastName": "Doe", "phone": "3125555555", "phoneCountryCode": "001", "address1": "1863 Main Street", "city": "Chicago", "region": "IL", "postCode": "60601", "country": "US" } ], "paymentMethods": [ { "paymentType": "creditCard", "paymentMethodID": "2ljr9vxsdfew", "paymentMethodAmount": 1082.91, "expirationMonth": "11", "expirationYear": "2027", "nameOnCreditCard": "Jane Doe", "cardBin": "345678", "cardLastFour": "1111", "avsResult": "matched", "cvvResult": "matched", "cardAuthorizationCode": "A1B2C3", "cardAuthorizationDateTime": "2022-03-11T17:07:25-07:00", "sca3DSFlow": "frictionless", "sca3DSVersion": "2.2.0", "eciIndicator": "successful", "isSCASoftDecline": false, "sca3DSChallengeRequestType": "02", "sca3DSTransactionStatus": "Y", "scaAuthorizationStatus": "approve" } ], "flightInformation": { "pnr": "ABC123", "flightType": "round-trip", "initialDepartingAirport": "ORD", "finalArrivalAirport": "LAX", "numberOfPassengers": 1 }, "lodgingInformation": { "lodgingDetails": [ { "lodgingName": "The Landmark London", "lodgingPropertyID": "LDMRK001", "lodgingChainName": "Independent", "lodgingAmount": 350, "lodgingAmountCurrencyCode": "GBP", "lodgingRoomOccupancy": 2, "lodgingBedType": "King", "lodgingRoomType": "Deluxe", "lodgingCheckInDateTime": "2022-04-16T15:00:00+01:00", "lodgingCheckOutDateTime": "2022-04-20T11:00:00+01:00", "lodgingAddressID": "23l4jk23klj24" } ], "guests": [ { "guestFirstName": "Jane", "guestMiddleName": "Marie", "guestLastName": "Doe" } ] }, "carRentalInformation": { "carRentalDetails": [ { "carRentalBrand": "Hertz", "carRentalAmount": 210, "carRentalCurrencyCode": "GBP", "rentalType": "daily", "rentalClass": "compact", "pickupAddressID": "23l4jk23klj25", "pickUpDateTime": "2022-04-16T16:00:00+01:00", "returnAddressID": "23l4jk23klj26", "returnDateTime": "2022-04-20T10:00:00+01:00" } ] }, "cruiseInformation": { "cruiseDetails": [ { "cruiseBrand": "Royal Caribbean", "cruiseAmount": 1500, "cruiseCurrencyCode": "USD", "cruiseDepartureAddressID": "23l4jk23klj27", "cruiseInitialStartDateTime": "2022-06-01T16:00:00-04:00", "cruiseReturnAddressID": "23l4jk23klj27", "cruiseFinalReturnDateTime": "2022-06-08T09:00:00-04:00" } ] }, "activityInformation": { "activityDetails": [ { "activitySupplier": "London Eye", "activityName": "Thames River Cruise", "activityAmount": 45, "activityAmountCurrencyCode": "GBP", "activityAddressID": "23l4jk23klj28", "activityStartDateTime": "2022-04-17T14:00:00+01:00" } ] }, "agencyInformation": { "agencyDetails": [ { "agencyCode": "01234ABC", "agencyName": "Acme Travel Inc", "agencyConfirmationNumber": "ABC123", "agencyCountryCode": "US" } ] }, "insuranceInformation": { "insuranceDetails": [ { "insuranceType": "travel", "insuranceCity": "Chicago", "insuranceCountryCode": "US", "insuranceTotalAmount": 399.04, "insuranceCurrencyCode": "USD" } ] } }Description- transactionIDstringrequiredExampleDescriptionMax Length40
- transactionDateTimestring<date-time>requiredExampleDescriptionFormatdate-time
- eventSourcestring<agentPhone | agentStore | affiliate | kiosk | mobileApp | other | web>requiredExampleDescriptionAllowedagentPhoneagentStoreaffiliatekioskmobileAppotherweb
- accountIDstringExampleDescription
- isGuestCheckoutbooleanrequiredDescription
- isAgenticCheckoutbooleanDescription
- paymentAmountnumberrequiredExampleDescriptionMinimum0
- taxAmountnumberrequiredExampleDescriptionMinimum0
- deliveryAmountnumberrequiredExampleDescriptionMinimum0
- currencyCodestringrequiredExampleDescription
- successbooleanrequiredExampleDescription
- 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
- is3DSbooleanDescription
- flightInformationobjectExample
{ "pnr": "ABC123", "flightType": "round-trip", "initialDepartingAirport": "ORD", "finalArrivalAirport": "LAX", "numberOfPassengers": 1 }Description- pnrstringExampleDescription
- flightTypestring<one-way | round-trip | multi-city>ExampleDescriptionAllowedone-wayround-tripmulti-city
- isThirdPartyBookingbooleanDescription
- fareBasisCodestringExampleDescription
- otaIdentificationNumberstringExampleDescription
- otaNamestringExampleDescription
- initialDepartingAirportstringExampleDescription
- finalArrivalAirportstringExampleDescription
- numberOfPassengersintegerExampleDescriptionMinimum0
- segmentsobject[]Description
- routeInfostringExampleDescription
- airlineNamestringExampleDescription
- operatingAirlinestringExampleDescription
- flightNumberstringExampleDescription
- ticketClassstring<economy | premium | business | first>ExampleDescriptionAllowedeconomypremiumbusinessfirst
- fareClassstringExampleDescription
- specialFareTypestring<bereavement | corporate | employee | infant | military | senior | student | unaccompaniedMinor | other>ExampleDescriptionAllowedbereavementcorporateemployeeinfantmilitaryseniorstudentunaccompaniedMinorother
- isAwardTicketbooleanDescription
- departureDateTimestring<date-time>ExampleDescriptionFormatdate-time
- departureAirportCodestringExampleDescription
- arrivalDateTimestring<date-time>ExampleDescriptionFormatdate-time
- arrivalAirportCodestringExampleDescription
- isFinalDestinationbooleanExampleDescription
- passengersobject[]Description
- passengerIDstringExampleDescription
- ticketNumberstringExampleDescription
- passengerDateOfBirthstring<date>ExampleDescriptionFormatdate
- passengerGenderstring<F | M | U | O>ExampleDescriptionAllowedFMUO
- passengerAdultOrChildstring<adult | child | infant>ExampleDescriptionAllowedadultchildinfant
- passengerTitlestringExampleDescription
- passengerFirstNamestringExampleDescriptionMax Length40
- passengerMiddleNamestringExampleDescriptionMax Length20
- passengerLastNamestringExampleDescriptionMax Length40
- passengerFullNamestringExampleDescription
- passengerPhonestringExampleDescription
- passengerPhoneCountryCodestringExampleDescription
- passengerEmailAddressstringExampleDescription
- passengerCheckedBaggageCountintegerExampleDescriptionMinimum0
- passengerLoyaltyNumberstringExampleDescription
- passengerLoyaltySinceDatestring<date>ExampleDescriptionFormatdate
- passengerLoyaltyLevelstringExampleDescription
- passengerPassportNumberstringExampleDescription
- passengerPassportCountryCodestringExampleDescription
- passengerPassportExpirationDatestring<date>ExampleDescriptionFormatdate
- lodgingInformationobjectExample
{ "lodgingDetails": [ { "lodgingName": "The Landmark London", "lodgingPropertyID": "LDMRK001", "lodgingChainName": "Independent", "lodgingAmount": 350, "lodgingAmountCurrencyCode": "GBP", "lodgingRoomOccupancy": 2, "lodgingBedType": "King", "lodgingRoomType": "Deluxe", "lodgingCheckInDateTime": "2022-04-16T15:00:00+01:00", "lodgingCheckOutDateTime": "2022-04-20T11:00:00+01:00", "lodgingAddressID": "23l4jk23klj24" } ], "guests": [ { "guestFirstName": "Jane", "guestMiddleName": "Marie", "guestLastName": "Doe" } ] }Description- lodgingDetailsobject[]Example
[ { "lodgingName": "The Landmark London", "lodgingPropertyID": "LDMRK001", "lodgingChainName": "Independent", "lodgingAmount": 350, "lodgingAmountCurrencyCode": "GBP", "lodgingRoomOccupancy": 2, "lodgingBedType": "King", "lodgingRoomType": "Deluxe", "lodgingCheckInDateTime": "2022-04-16T15:00:00+01:00", "lodgingCheckOutDateTime": "2022-04-20T11:00:00+01:00", "lodgingAddressID": "23l4jk23klj24" } ]- lodgingNamestringExampleDescription
- lodgingPropertyIDstringExampleDescription
- lodgingChainNamestringExampleDescription
- lodgingAmountnumberExampleDescriptionMinimum0
- lodgingAmountCurrencyCodestringExampleDescription
- lodgingRoomOccupancyintegerExampleDescriptionMinimum0
- lodgingBedTypestringExampleDescription
- lodgingRoomTypestringExampleDescription
- lodgingCommentsstringExampleDescription
- lodgingCheckInDateTimestring<date-time>ExampleDescriptionFormatdate-time
- lodgingCheckOutDateTimestring<date-time>ExampleDescriptionFormatdate-time
- lodgingAddressIDstringExampleDescription
- guestsobject[]Example
[ { "guestFirstName": "Jane", "guestMiddleName": "Marie", "guestLastName": "Doe" } ]- guestFirstNamestringExampleDescription
- guestMiddleNamestringExampleDescription
- guestLastNamestringExampleDescription
- carRentalInformationobjectExample
{ "carRentalDetails": [ { "carRentalBrand": "Hertz", "carRentalAmount": 210, "carRentalCurrencyCode": "GBP", "rentalType": "daily", "rentalClass": "compact", "pickupAddressID": "23l4jk23klj25", "pickUpDateTime": "2022-04-16T16:00:00+01:00", "returnAddressID": "23l4jk23klj26", "returnDateTime": "2022-04-20T10:00:00+01:00" } ] }Description- carRentalDetailsobject[]Example
[ { "carRentalBrand": "Hertz", "carRentalAmount": 210, "carRentalCurrencyCode": "GBP", "rentalType": "daily", "rentalClass": "compact", "pickupAddressID": "23l4jk23klj25", "pickUpDateTime": "2022-04-16T16:00:00+01:00", "returnAddressID": "23l4jk23klj26", "returnDateTime": "2022-04-20T10:00:00+01:00" } ]- carRentalBrandstringExampleDescription
- carRentalAmountnumberExampleDescriptionMinimum0
- carRentalCurrencyCodestringExampleDescription
- rentalTypestringExampleDescription
- rentalClassstringExampleDescription
- pickupAddressIDstringExampleDescription
- pickUpDateTimestring<date-time>ExampleDescriptionFormatdate-time
- returnAddressIDstringExampleDescription
- returnDateTimestring<date-time>ExampleDescriptionFormatdate-time
- cruiseInformationobjectExample
{ "cruiseDetails": [ { "cruiseBrand": "Royal Caribbean", "cruiseAmount": 1500, "cruiseCurrencyCode": "USD", "cruiseDepartureAddressID": "23l4jk23klj27", "cruiseInitialStartDateTime": "2022-06-01T16:00:00-04:00", "cruiseReturnAddressID": "23l4jk23klj27", "cruiseFinalReturnDateTime": "2022-06-08T09:00:00-04:00" } ] }Description- cruiseDetailsobject[]Example
[ { "cruiseBrand": "Royal Caribbean", "cruiseAmount": 1500, "cruiseCurrencyCode": "USD", "cruiseDepartureAddressID": "23l4jk23klj27", "cruiseInitialStartDateTime": "2022-06-01T16:00:00-04:00", "cruiseReturnAddressID": "23l4jk23klj27", "cruiseFinalReturnDateTime": "2022-06-08T09:00:00-04:00" } ]- cruiseBrandstringExampleDescription
- cruiseAmountnumberExampleDescriptionMinimum0
- cruiseCurrencyCodestringExampleDescription
- cruiseDepartureAddressIDstringExampleDescription
- cruiseInitialStartDateTimestring<date-time>ExampleDescriptionFormatdate-time
- cruiseReturnAddressIDstringExampleDescription
- cruiseFinalReturnDateTimestring<date-time>ExampleDescriptionFormatdate-time
- activityInformationobjectExample
{ "activityDetails": [ { "activitySupplier": "London Eye", "activityName": "Thames River Cruise", "activityAmount": 45, "activityAmountCurrencyCode": "GBP", "activityAddressID": "23l4jk23klj28", "activityStartDateTime": "2022-04-17T14:00:00+01:00" } ] }Description- activityDetailsobject[]Example
[ { "activitySupplier": "London Eye", "activityName": "Thames River Cruise", "activityAmount": 45, "activityAmountCurrencyCode": "GBP", "activityAddressID": "23l4jk23klj28", "activityStartDateTime": "2022-04-17T14:00:00+01:00" } ]- activitySupplierstringExampleDescription
- activityNamestringExampleDescription
- activityAmountnumberExampleDescriptionMinimum0
- activityAmountCurrencyCodestringExampleDescription
- activityAddressIDstringExampleDescription
- activityStartDateTimestring<date-time>ExampleDescriptionFormatdate-time
- accountobjectExample
{ "isEnrolledInLoyaltyProgram": true, "loyaltyNumber": "Id1234", "accountLocale": "en-US", "accountLevel": "Gold", "accountType": "family" }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
{ "salesRepID": "SR#46k90", "referralCode": "API 210315", "isGift": false, "orderMessage": "Enjoy the gift", "isPaymentInInstallments": false, "isPaymentRecurring": false }Description- salesRepIDstringExampleDescriptionMax Length20
- referralCodestringExampleDescriptionMax Length50
- isGiftbooleanDescription
- isPaymentInInstallmentsbooleanDescription
- installmentAmountnumberExampleDescriptionMinimum (exclusive)0
- installmentCurrencyCodestringExampleDescription
- installmentCountintegerExampleDescriptionMinimum (exclusive)0
- isPaymentRecurringbooleanDescription
- orderMessagestringExampleDescription
- paymentMethodsobject[]Example
[ { "paymentType": "creditCard", "paymentMethodID": "2ljr9vxsdfew", "paymentMethodAmount": 1082.91, "expirationMonth": "11", "expirationYear": "2027", "nameOnCreditCard": "Jane Doe", "cardBin": "345678", "cardLastFour": "1111", "avsResult": "matched", "cvvResult": "matched", "cardAuthorizationCode": "A1B2C3", "cardAuthorizationDateTime": "2022-03-11T17:07:25-07:00", "sca3DSFlow": "frictionless", "sca3DSVersion": "2.2.0", "eciIndicator": "successful", "isSCASoftDecline": false, "sca3DSChallengeRequestType": "02", "sca3DSTransactionStatus": "Y", "scaAuthorizationStatus": "approve" } ]- 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
- totalFailedAttemptsintegerExampleDescriptionMinimum0
- 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
- avsResultstring<matched | partialMatch | notMatched | notChecked | systemError | other>ExampleDescriptionAllowedmatchedpartialMatchnotMatchednotCheckedsystemErrorother
- cvvResultstring<matched | notMatched>ExampleDescriptionAllowedmatchednotMatched
- cardAuthorizationCodestringExampleDescription
- cardAuthorizationDateTimestring<date-time>ExampleDescriptionFormatdate-time
- isPreAuthorizationRejectbooleanDescription
- postAuthorizationRejectReasonstring<creditReject | fraudReject | otherReject>ExampleDescriptionAllowedcreditRejectfraudRejectotherReject
- eciIndicatorstring<successful | unsuccessfulOrNotAttempted | attemptedButNotCompleted | other>ExampleDescriptionAllowedsuccessfulunsuccessfulOrNotAttemptedattemptedButNotCompletedother
- isSCASoftDeclinebooleanDescription
- sca3DSFlowstring<challenge | frictionless | dataOnly>ExampleDescriptionAllowedchallengefrictionlessdataOnly
- sca3DSVersionstringExampleDescription
- sca3DSChallengeRequestTypestring<02 | 03 | 04 | 05 | 06 | 10 | 11>ExampleDescriptionAllowed02030405061011
- sca3DSTransactionStatusstring<Y | N | U | A | I>ExampleDescriptionAllowedYNUAI
- scaAuthorizationStatusstring<approve | decline>ExampleDescriptionAllowedapprovedecline
- scaAuthorizationErrorstring<decline | fraudReject | insufficientFunds | invalidCard | incorrectInformation | lostOrStolen | withdrawalAmountExceeded | technicalError | other>ExampleDescriptionAlloweddeclinefraudRejectinsufficientFundsinvalidCardincorrectInformationlostOrStolenwithdrawalAmountExceededtechnicalErrorother
- 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
- addressesobject[]Example
[ { "addressType": "billing", "addressID": "23l4jk23klj23", "firstName": "Jane", "lastName": "Doe", "phone": "3125555555", "phoneCountryCode": "001", "address1": "1863 Main Street", "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
- isAddressOnFilebooleanDescription
- firstNamestringrequiredExampleDescription
- middleNamestringExampleDescription
- lastNamestringrequiredExampleDescription
- emailAddressstringExampleDescription
- phonestringrequiredExampleDescription
- phoneCountryCodestringrequiredExampleDescription
- address1stringrequiredExampleDescription
- address2stringExampleDescription
- citystringrequiredExampleDescription
- regionstringrequiredExampleDescription
- postCodestringrequiredExampleDescription
- countrystringrequiredExampleDescription
- companyNamestringExampleDescription
- addressCreatedDateTimestring<date-time>ExampleDescriptionFormatdate-time
- addressUpdatedDateTimestring<date-time>ExampleDescriptionFormatdate-time
- insuranceInformationobjectExample
{ "insuranceDetails": [ { "insuranceType": "travel", "insuranceCity": "Chicago", "insuranceCountryCode": "US", "insuranceTotalAmount": 399.04, "insuranceCurrencyCode": "USD" } ] }Description- insuranceDetailsobject[]Example
[ { "insuranceType": "travel", "insuranceCity": "Chicago", "insuranceCountryCode": "US", "insuranceTotalAmount": 399.04, "insuranceCurrencyCode": "USD" } ]Description- insuranceTypestringExampleDescriptionMax Length30
- insuranceCitystringExampleDescriptionMax Length40
- insuranceCountryCodestringExampleDescription
- insuranceStartDateTimestring<date-time>ExampleDescriptionFormatdate-time
- insuranceEndDateTimestring<date-time>ExampleDescriptionFormatdate-time
- insuranceNamestringExampleDescriptionMax Length50
- insuranceReservationNamestringExampleDescriptionMax Length100
- insuranceTotalAmountnumberExampleDescriptionMinimum0
- insuranceCurrencyCodestringExampleDescription
- agencyInformationobjectExample
{ "agencyDetails": [ { "agencyCode": "01234ABC", "agencyName": "Acme Travel Inc", "agencyConfirmationNumber": "ABC123", "agencyCountryCode": "US" } ] }Description- agencyDetailsobject[]Example
[ { "agencyCode": "01234ABC", "agencyName": "Acme Travel Inc", "agencyConfirmationNumber": "ABC123", "agencyCountryCode": "US" } ]Description- agencyCodestringExampleDescriptionMax Length20
- agencyNamestringExampleDescriptionMax Length50
- agencySalesRepresentativeIDstringExampleDescriptionMax Length20
- agencyConfirmationNumberstringExampleDescriptionMax Length25
- agencyCountryCodestringExampleDescription
- agencyEmailstringExampleDescription
- agencyHeadOfficestringExampleDescriptionMax Length50
- agencyPhonestringExampleDescriptionMax Length25
Responses
200
- scoredResultDescription
- eventIDstring
- eventDetailseventDetailsDescription
- deviceDetailsobject
- browserSpoofRiskstringExampleDescription
- deviceIDNewstringExampleDescription
- browserIsMobilestringExampleDescription
- mobileIsRootedstringExampleDescription
- deviceIDFirstSeennumberExampleDescription
- browserNewCookiestringExampleDescription
- deviceIDTimesSeennumberExampleDescription
- mobileAppstringExampleDescription
- browserReplayTagStatusstringExampleDescription
- deviceIDstringExampleDescription
- connectionDetailsobject
- hostingIndicatorstringExampleDescription
- isTorstringExampleDescription
- hostingIndicatorRealstringExampleDescription
- realIPMatchstringExampleDescription
- countryCodestringExampleDescription
- countryCodeRealstringExampleDescription
- isProxystringExampleDescription
- 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/postAuthTravel \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data-raw '{
"transactionID": "ABC123456",
"transactionDateTime": "2022-03-11T17:07:24-07:00",
"eventSource": "web",
"isGuestCheckout": false,
"paymentAmount": 1082.91,
"taxAmount": 1.23,
"deliveryAmount": 5.99,
"currencyCode": "USD",
"success": true,
"emailAddress": "[email protected]",
"purchaseType": "services",
"items": [
{
"isHighRiskItem": true,
"price": 1199.99,
"shippingMethod": "ground"
}
],
"promotions": [
{
"promoAmount": 50
}
],
"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"
}
]
}'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify({
"transactionID": "ABC123456",
"transactionDateTime": "2022-03-11T17:07:24-07:00",
"eventSource": "web",
"isGuestCheckout": false,
"paymentAmount": 1082.91,
"taxAmount": 1.23,
"deliveryAmount": 5.99,
"currencyCode": "USD",
"success": true,
"emailAddress": "[email protected]",
"purchaseType": "services",
"items": [
{
"isHighRiskItem": true,
"price": 1199.99,
"shippingMethod": "ground"
}
],
"promotions": [
{
"promoAmount": 50
}
],
"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"
}
]
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.accertify.net/api/v1/unified-risk/postAuthTravel", 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/postAuthTravel")
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": "ABC123456",
"transactionDateTime": "2022-03-11T17:07:24-07:00",
"eventSource": "web",
"isGuestCheckout": false,
"paymentAmount": 1082.91,
"taxAmount": 1.23,
"deliveryAmount": 5.99,
"currencyCode": "USD",
"success": true,
"emailAddress": "[email protected]",
"purchaseType": "services",
"items": [
{
"isHighRiskItem": true,
"price": 1199.99,
"shippingMethod": "ground"
}
],
"promotions": [
{
"promoAmount": 50
}
],
"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"
}
]
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.accertify.net/api/v1/unified-risk/postAuthTravel"
payload = json.dumps({
"transactionID": "ABC123456",
"transactionDateTime": "2022-03-11T17:07:24-07:00",
"eventSource": "web",
"isGuestCheckout": False,
"paymentAmount": 1082.91,
"taxAmount": 1.23,
"deliveryAmount": 5.99,
"currencyCode": "USD",
"success": True,
"emailAddress": "[email protected]",
"purchaseType": "services",
"items": [
{
"isHighRiskItem": True,
"price": 1199.99,
"shippingMethod": "ground"
}
],
"promotions": [
{
"promoAmount": 50
}
],
"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"
}
]
})
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"
}
},
"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"
}