This site requires javascript to be enabled.

  • Search AI-powered

Results for

xxx

Risk-assess card

POST https://{domainname}/v1/{merchantId}/riskassessments/cards

Risk assessments

Through this API you can have our fraud prevention systems assess the risk for potential fraud based using the details you provide. You can either have us assess this risk when you submit the transaction for processing or you can do this separately from the payment process, using the risk assessment calls.

We offers two groups of checks:

  • Centred around card data
  • Centred around bank account data
Both groups perform multiple check within one call depending on configuration.

Request

When evaluating the risk of fraud on card transactions a generic rule of thumb is: more relevant data = more relevant results. This is especially true of the checks performed at Retail Decisions as their solutions allow you to take much more data points into account for the evaluation of the risk. Any relevant additional data can be used to build rulesets on or is potential differentiating data for the neural score.

The other checks only focus on the card data itself and no additional data is taken into consideration. This API allows you to submit almost the same data as when you do a transaction. In this case the data is only used to assess the risk and not actually process a payment.

Payloaddomain.RiskAssessmentCard

Properties
Property Type Required Details
close

Description

Object containing Card object
  • SDK Object type
    domain.Card
close

Description

The complete credit/debit card number (also know as the PAN). The minimum input length is 12 digits.
The card number is always obfuscated in any of our responses
close

Description

The card holder's name on the card. Minimum length of 2, maximum length of 51 characters. The '+' character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
close

Description

Card Verification Value, a 3 or 4 digit code used as an additional security feature for card not present transactions.
close

Description

Expiry date of the card
Format: MMYY
close

Description

Issue number on the card (if applicable)
close

Description

The first 2 digits of the card's PIN code. May be optionally submitted for South Korean cards (paymentProductIds 180, 181, 182, 183, 184, 185 and 186). Submitting this property may improve your authorization rate.
close

Description

Object containing additional data that will be used to assess the risk of fraud
  • SDK Object type
    domain.FraudFields
close
Deprecated: For risk assessments there is no replacement. For other calls, please use order.shipping.addressIndicator to indicate that the billing and shipping address are identical.

Description

Indicates that invoice and shipping addresses are equal.
close

Description

Additional black list input
close
Deprecated: This should be the same as order.customer.billingAddress

Description

The address that belongs to the owner of the card
  • SDK Object type
    domain.Address
close
Deprecated

Description

Additional address information. The additionalInfo is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
close
Deprecated

Description

City
Note: For payments with product 1503 the maximum length is not 40 but 20.
close
Deprecated

Description

ISO 3166-1 alpha-2 country code
close
Deprecated

Description

House number. The houseNumber is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
close
Deprecated

Description

Full name of the state or province
close
Deprecated

Description

ISO 3166-2 alpha-3 state code
Notes:
  • The maximum length for 3-D Secure version 2 is AN3 for payments that are processed by the GlobalCollect platform
  • The maximum length for paymentProductId 1503 (Boleto) is AN2 for payments that are processed by the GlobalCollect platform
  • The maximum length is 3 for payments that are processed by the WL Online Payment Acceptance platform
close
Deprecated

Description

Streetname
close
Deprecated

Description

Zip code
Note: For payments with product 1503 the maximum length is not 10 but 8.
close

Description

The IP Address of the customer that is making the payment. The '+' character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
close
Deprecated: Use order.customer.device.defaultFormFill instead

Description

Degree of default form fill, with the following possible values:
  • automatically - All fields filled automatically
  • automatically-but-modified - All fields filled automatically, but some fields were modified manually
  • manually - All fields were entered manually
close
Deprecated: No replacement

Description

Indicates that the device fingerprint has been used while processing the order.
close
Deprecated: Use order.customer.device.deviceFingerprintTransactionId instead

Description

One must set the deviceFingerprintTransactionId received by the response of the endpoint /{merchant}/products/{paymentProductId}/deviceFingerprint
close

Description

One of the following gift card types:
  • celebrate-fall - Celebrate Fall
  • grandparents-day - Grandparent's Day
  • independence-day - Independence Day
  • anniversary - Anniversary
  • birthday - Birthday
  • congratulations - Congratulations
  • april-fools-day - April Fool's Day
  • easter - Easter
  • fathers-day - Father's Day
  • graduation - Graduation
  • holiday - Holiday
  • seasons-greetings - Season's Greetings
  • passover - Passover
  • kwanzaa - Kwanzaa
  • halloween - Halloween
  • mothers-day - Mother's Day
  • new-years-day - New Year's Day
  • bosses-day - Bosses' Day
  • st-patricks-day - St. Patrick's Day
  • sweetest-day - Sweetest Day
  • christmas - Christmas
  • baby-shower - Baby Shower
  • thanksgiving - Thanksgiving
  • other - Other
  • valentines-day - Valentine's Day
  • wedding - Wedding
  • secretarys-day - Secretary's Day
  • chinese-new-year - Chinese New Year
  • hanukkah - Hanukkah
close

Description

Gift message
close
Deprecated: Use order.customer.account.hasForgottenPassword instead

Description

Specifies if the customer (initially) had forgotten their password
  • true - The customer has forgotten their password
  • false - The customer has not forgotten their password
close
Deprecated: Use order.customer.account.hasPassword instead

Description

Specifies if the customer entered a password to gain access to an account registered with the you
  • true - The customer has used a password to gain access
  • false - The customer has not used a password to gain access
close
Deprecated: Use order.customer.isPreviousCustomer instead

Description

Specifies if the customer has a history of online shopping with the merchant
  • true - The customer is a known returning customer
  • false - The customer is new/unknown customer
close

Description

Timezone in which the order was placed. The '+' character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
close
Deprecated: Use order.shipping.comments instead

Description

Comments included during shipping
close
Deprecated: Use order.shipping.trackingNumber instead

Description

Shipment tracking number
close
Deprecated: No replacement

Description

Details on how the order is shipped to the customer
  • SDK Object type
    domain.FraudFieldsShippingDetails
close
Deprecated: No replacement

Description

Details regarding the shipping method
close
Deprecated: No replacement

Description

Shipping method speed indicator
close
Deprecated: No replacement

Description

Shipping method type indicator
close

Description

Array of up to 16 userData properties, each with a max length of 256 characters, that can be used for fraudscreening
close
Deprecated: Use merchant.websiteUrl instead

Description

The website from which the purchase was made
close

Description

Object containing information on you, the merchant
  • SDK Object type
    domain.MerchantRiskAssessment
close

Description

The website from which the purchase was made
close

Description

Order object containing order related data
  • SDK Object type
    domain.OrderRiskAssessment
close

Description

Object containing additional input on the order
  • SDK Object type
    domain.AdditionalOrderInputAirlineData
close

Description

Object that holds airline specific data
  • SDK Object type
    domain.AirlineData
close

Description

Numeric code identifying the agent
close

Description

Airline numeric code
close

Description

Date of the Flight
Format: YYYYMMDD
close

Description

Object that holds the data on the individual legs of the ticket
close
  • SDK Object type
    domain.AirlineFlightLeg
close

Description

Reservation Booking Designator
close

Description

Arrival airport/city code
close

Description

The arrival time in the local time zone
Format: HH:MM
close

Description

IATA carrier code
close

Description

Identifying number of a ticket issued to a passenger in conjunction with this ticket and that constitutes a single contract of carriage
close

Description

The coupon number associated with this leg of the trip. A ticket can contain several legs of travel, and each leg of travel requires a separate coupon
close

Description

Date of the leg
Format: YYYYMMDD
close

Description

The departure time in the local time at the departure airport
Format: HH:MM
close

Description

An endorsement can be an agency-added notation or a mandatory government required notation, such as value-added tax. A restriction is a limitation based on the type of fare, such as a ticket with a 3-day minimum stay
close

Description

New ticket number that is issued when a ticket is exchanged
close

Description

Fare of this leg
close

Description

Fare Basis/Ticket Designator
close

Description

Fee for this leg of the trip
close

Description

The flight number assigned by the airline carrier with no leading spaces
Should be a numeric string
close

Description

Sequence number of the flight leg
close

Description

Origin airport/city code
close

Description

PassengerClass if this leg
close
Deprecated: Use passengerClass instead

Description

ServiceClass of this leg (this property is used for fraud screening on the Ogone Payment Platform).

Possible values are:

  • economy
  • premium-economy
  • business
  • first
close

Description

Possible values are:
  • permitted = Stopover permitted
  • non-permitted = Stopover not permitted
close

Description

Taxes for this leg of the trip
close

Description

Airline tracing number
close

Description

  • true = The ticket is an E-Ticket
  • false = the ticket is not an E-Ticket
close
Deprecated: Use order.customer.accountType instead

Description

  • true = a registered known customer
  • false = unknown customer
close

Description

  • true - Restricted, the ticket is non-refundable
  • false - No restrictions, the ticket is (partially) refundable
close

Description

  • true - The payer is the ticket holder
  • false - The payer is not the ticket holder
close

Description

This is the date of issue recorded in the airline system In a case of multiple issuances of the same ticket to a cardholder, you should use the last ticket date.
Format: YYYYMMDD
close

Description

Your ID of the customer in the context of the airline data
close

Description

Name of the airline
close

Description

Total number of passengers in the party. If the the property numberInParty is not present, then the number of passengers will be used on the WL Online Payment Acceptance Platform.
close

Description

Name of passenger
close

Description

Object that holds the data on the individual passengers (this object is used for fraud screening on the Ogone Payment Platform)
close
  • SDK Object type
    domain.AirlinePassenger
close

Description

First name of the passenger (this property is used for fraud screening on the Ogone Payment Platform)
close

Description

Surname of the passenger (this property is used for fraud screening on the Ogone Payment Platform)
close

Description

Surname prefix of the passenger (this property is used for fraud screening on the Ogone Payment Platform)
close

Description

Title of the passenger (this property is used for fraud screening on the Ogone Payment Platform)
close

Description

Place of issue
For sales in the US the last two characters (pos 14-15) must be the US state code.
close

Description

Passenger name record
close

Description

IATA point of sale name
close

Description

city code of the point of sale
close

Description

Possible values:
  • e-ticket
  • city-ticket-office
  • airport-ticket-office
  • ticket-by-mail
  • ticket-on-departure
close

Description

The ticket or document number. On the Ogone Payment Platform and the GlobalCollect Payment Platform it contains:
  • Airline code: 3-digit airline code number
  • Form code: A maximum of 3 digits indicating the type of document, the source of issue and the number of coupons it contains
  • Serial number: A maximum of 8 digits allocated on a sequential basis, provided that the total number of digits allocated to the form code and serial number shall not exceed ten
  • TICKETNUMBER can be replaced with PNR if the ticket number is unavailable
close

Description

Total fare for all legs on the ticket, excluding taxes and fees. If multiple tickets are purchased, this is the total fare for all tickets
close

Description

Total fee for all legs on the ticket. If multiple tickets are purchased, this is the total fee for all tickets
close

Description

Total taxes for all legs on the ticket. If multiple tickets are purchased, this is the total taxes for all tickets
close

Description

Name of the travel agency issuing the ticket. For direct airline integration, leave this property blank on the Ogone Payment Platform.
close

Description

Object that holds lodging specific data
  • SDK Object type
    domain.LodgingData
close

Description

Object that holds lodging related charges
close
  • SDK Object type
    domain.LodgingCharge
close

Description

Amount of additional charges associated with the stay of the guest.
Note: The currencyCode is presumed to be identical to the order.amountOfMoney.currencyCode.
close

Description

Currency for Charge amount. The code should be in 3 letter ISO format.
close

Description

Type of additional charges associated with the stay of the guest. Allowed values:
  • lodging
  • telephone
  • restaurant
  • minibar
  • giftshop
  • laundry
  • transport
  • gratuity
  • conferenceRoom
  • audiovisual
  • banquet
  • internet
  • earlyDeparture
  • roomService
  • loungeBar
  • other
close

Description

The date the guest checks into (or plans to check in to) the facility.
Format: YYYYMMDD
close

Description

The date the guest checks out of (or plans to check out of) the facility.
Format: YYYYMMDD
close

Description

The Lodging Folio Number assigned to the itemized statement of charges and credits associated with this lodging stay, which can be any combination of characters and numerals defined by the Merchant or authorized Third Party Processor.
close

Description

Indicates whether the room reservation is confirmed.
  • true - The room reservation is confirmed
  • false - The room reservation is not confirmed
close

Description

Defines whether or not the facility conforms to the requirements of the Hotel and Motel Fire Safety Act of 1990, or similar legislation.
  • true - The facility conform to the requirements
  • false - The facility doesn't conform to the requirements
close

Description

Indicate if this the customer is a no show case. In such case, the lodging property can charge a no show fee.
  • true - The customer is a no show
  • false - Not applicable
close

Description

Indicated the preference of the customer for a smoking or non-smoking room.
  • true - A smoking room is preferred
  • false - A non-smoking room is preferred
close

Description

The total number of adult guests staying (or planning to stay) at the facility (i.e., all booked rooms)
close

Description

The number of nights for the lodging stay
close

Description

The number of rooms rented for the lodging stay
close

Description

Code that corresponds to the category of lodging charges detailed in this message. Allowed values:
  • lodging - (Default) Submitted charges are for lodging
  • noShow - Submitted charges are for the failure of the guest(s) to check in for reserved a room
  • advancedDeposit - Submitted charges are for an Advanced Deposit to reserve one or more rooms
If no value is submitted the default value lodging is used.
close

Description

The international customer service phone number of the facility
close

Description

The local phone number of the facility in an international phone number format
close

Description

Name of the person or business entity charged for the reservation and/or lodging stay
close

Description

Object that holds lodging related room data
close
  • SDK Object type
    domain.LodgingRoom
close

Description

Daily room rate exclusive of any taxes and fees
Note: The currencyCode is presumed to be identical to the order.amountOfMoney.currencyCode.
close

Description

Currency for Daily room rate. The code should be in 3 letter ISO format
close

Description

Daily room tax
Note: The currencyCode is presumed to be identical to the order.amountOfMoney.currencyCode.
close

Description

Currency for Daily room tax. The code should be in 3 letter ISO format
close

Description

Number of nights charged at the rate in the dailyRoomRate property
close

Description

Location of the room within the facility, e.g. Park or Garden etc.
close

Description

Room number
close

Description

Size of bed, e.g., king, queen, double.
close

Description

Describes the type of room, e.g., standard, deluxe, suite.
close

Description

Object containing amount and ISO currency code attributes
  • SDK Object type
    domain.AmountOfMoney
close

Description

Amount in cents and always having 2 decimals
close

Description

Three-letter ISO currency code representing the currency for the amount
close

Description

Object containing the details of the customer
  • SDK Object type
    domain.CustomerRiskAssessment
close

Description

Object containing data related to the account the customer has with you
  • SDK Object type
    domain.CustomerAccountRiskAssessment
close

Description

Specifies if the customer (initially) had forgotten their password
  • true - The customer has forgotten their password
  • false - The customer has not forgotten their password
close

Description

Specifies if the customer entered a password to gain access to an account registered with the you
  • true - The customer has used a password to gain access
  • false - The customer has not used a password to gain access
close

Description

Type of the customer account that is used to place this order. Can have one of the following values:
  • none - The account that was used to place the order is a guest account or no account was used at all
  • created - The customer account was created during this transaction
  • existing - The customer account was an already existing account prior to this transaction
close

Description

Object containing billing address details
  • SDK Object type
    domain.Address
close

Description

Additional address information. The additionalInfo is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
close

Description

City
Note: For payments with product 1503 the maximum length is not 40 but 20.
close

Description

ISO 3166-1 alpha-2 country code
close

Description

House number. The houseNumber is truncated after 10 characters for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform
close

Description

Full name of the state or province
close

Description

ISO 3166-2 alpha-3 state code
Notes:
  • The maximum length for 3-D Secure version 2 is AN3 for payments that are processed by the GlobalCollect platform
  • The maximum length for paymentProductId 1503 (Boleto) is AN2 for payments that are processed by the GlobalCollect platform
  • The maximum length is 3 for payments that are processed by the WL Online Payment Acceptance platform
close

Description

Streetname
close

Description

Zip code
Note: For payments with product 1503 the maximum length is not 10 but 8.
close

Description

Object containing contact details like email address
  • SDK Object type
    domain.ContactDetailsRiskAssessment
close

Description

Email address of the customer
close

Description

Object containing information on the device and browser of the customer
  • SDK Object type
    domain.CustomerDeviceRiskAssessment
close

Description

Degree of default form fill, with the following possible values:
  • automatically - All fields filled automatically
  • automatically-but-modified - All fields filled automatically, but some fields were modified manually
  • manually - All fields were entered manually
close

Description

One must set the deviceFingerprintTransactionId received by the response of the endpoint /{merchant}/products/{paymentProductId}/deviceFingerprint
close

Description

Specifies if the customer has a history of online shopping with the merchant
  • true - The customer is a known returning customer
  • false - The customer is new/unknown customer
close

Description

The locale that the customer should be addressed in (for 3rd parties). Note that some 3rd party providers only support the languageCode part of the locale, in those cases we will only use part of the locale provided.
close

Description

Object containing personal information like name, date of birth and gender
  • SDK Object type
    domain.PersonalInformationRiskAssessment
close

Description

Object containing the name details of the customer
  • SDK Object type
    domain.PersonalNameRiskAssessment
close

Description

Given name(s) or first name(s) of the customer
close

Description

Surname(s) or last name(s) of the customer
close

Description

The prefix of the surname - in between first name and surname - of the customer
close
Deprecated: Use order.shipping.address instead

Description

Object containing shipping address details
  • SDK Object type
    domain.AddressPersonal
close
Deprecated

Description

Additional address information
close
Deprecated

Description

City
close
Deprecated

Description

ISO 3166-1 alpha-2 country code
close
Deprecated

Description

House number
close
Deprecated

Description

Object that holds the name elements
  • SDK Object type
    domain.PersonalName
close
Deprecated

Description

Given name(s) or first name(s) of the customer. The '+' character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
close
Deprecated

Description

Surname(s) or last name(s) of the customer. The surname is truncated after 25 characters, with the limit being applied after surnamePrefix is prepended, for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform The '+' character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
close
Deprecated

Description

Middle name - In between first name and surname - of the customer. The '+' character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
close
Deprecated

Description

Title of customer
close
Deprecated

Description

Full name of the state or province
close
Deprecated

Description

ISO 3166-2 alpha-3 state code
Notes:
  • The maximum length for 3-D Secure version 2 is AN3 for payments that are processed by the GlobalCollect platform
  • The maximum length for paymentProductId 1503 (Boleto) is AN2 for payments that are processed by the GlobalCollect platform
  • The maximum length is 3 for payments that are processed by the WL Online Payment Acceptance platform
close
Deprecated

Description

Streetname
close
Deprecated

Description

Zip code
close

Description

Object containing information regarding shipping / delivery
  • SDK Object type
    domain.ShippingRiskAssessment
close

Description

Object containing address information
  • SDK Object type
    domain.AddressPersonal
close

Description

Additional address information
close

Description

City
close

Description

ISO 3166-1 alpha-2 country code
close

Description

House number
close

Description

Object that holds the name elements
  • SDK Object type
    domain.PersonalName
close

Description

Given name(s) or first name(s) of the customer. The '+' character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
close

Description

Surname(s) or last name(s) of the customer. The surname is truncated after 25 characters, with the limit being applied after surnamePrefix is prepended, for payments, refunds or payouts that are processed by the WL Online Payment Acceptance platform The '+' character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
close

Description

Middle name - In between first name and surname - of the customer. The '+' character is not allowed in this property for transactions that are processed by TechProcess Payment Platform.
close

Description

Title of customer
close

Description

Full name of the state or province
close

Description

ISO 3166-2 alpha-3 state code
Notes:
  • The maximum length for 3-D Secure version 2 is AN3 for payments that are processed by the GlobalCollect platform
  • The maximum length for paymentProductId 1503 (Boleto) is AN2 for payments that are processed by the GlobalCollect platform
  • The maximum length is 3 for payments that are processed by the WL Online Payment Acceptance platform
close

Description

Streetname
close

Description

Zip code
close

Description

Comments included during shipping
close

Description

Shipment tracking number
close

Description

Payment product identifier
Please see payment products for a full overview of possible values.

Request example

SDK: Go

This scenario you will probably use the most

  • // Assigning literals to pointer variables directly is not supported.
    // The below code uses helper functions connectsdk.NewBool, connectsdk.NewInt32, connectsdk.NewInt64 and connectsdk.NewString to overcome this issue.
    // These helper functions are provided by the SDK's root package.
    // http://stackoverflow.com/a/30716481 lists a few more alternatives.
    
    var card domain.Card
    card.CardNumber = connectsdk.NewString("4567350000427977")
    card.Cvv = connectsdk.NewString("123")
    card.ExpiryDate = connectsdk.NewString("1299")
    
    var flightLegs []domain.AirlineFlightLeg
    
    var flightLeg1 domain.AirlineFlightLeg
    flightLeg1.AirlineClass = connectsdk.NewString("1")
    flightLeg1.ArrivalAirport = connectsdk.NewString("AMS")
    flightLeg1.CarrierCode = connectsdk.NewString("KL")
    flightLeg1.Date = connectsdk.NewString("20150102")
    flightLeg1.DepartureTime = connectsdk.NewString("17:59")
    flightLeg1.Fare = connectsdk.NewString("fare")
    flightLeg1.FareBasis = connectsdk.NewString("INTERNET")
    flightLeg1.FlightNumber = connectsdk.NewString("791")
    flightLeg1.Number = connectsdk.NewInt32(1)
    flightLeg1.OriginAirport = connectsdk.NewString("BCN")
    flightLeg1.StopoverCode = connectsdk.NewString("non-permitted")
    
    flightLegs = append(flightLegs, flightLeg1)
    
    var flightLeg2 domain.AirlineFlightLeg
    flightLeg2.AirlineClass = connectsdk.NewString("1")
    flightLeg2.ArrivalAirport = connectsdk.NewString("BCN")
    flightLeg2.CarrierCode = connectsdk.NewString("KL")
    flightLeg2.Date = connectsdk.NewString("20150102")
    flightLeg2.DepartureTime = connectsdk.NewString("23:59")
    flightLeg2.Fare = connectsdk.NewString("fare")
    flightLeg2.FareBasis = connectsdk.NewString("INTERNET")
    flightLeg2.FlightNumber = connectsdk.NewString("792")
    flightLeg2.Number = connectsdk.NewInt32(2)
    flightLeg2.OriginAirport = connectsdk.NewString("AMS")
    flightLeg2.StopoverCode = connectsdk.NewString("non-permitted")
    
    flightLegs = append(flightLegs, flightLeg2)
    
    var airlineData domain.AirlineData
    airlineData.AgentNumericCode = connectsdk.NewString("123321")
    airlineData.Code = connectsdk.NewString("123")
    airlineData.FlightDate = connectsdk.NewString("20150102")
    airlineData.FlightLegs = &flightLegs
    airlineData.InvoiceNumber = connectsdk.NewString("123456")
    airlineData.IsETicket = connectsdk.NewBool(true)
    airlineData.IsRestrictedTicket = connectsdk.NewBool(true)
    airlineData.IsThirdParty = connectsdk.NewBool(true)
    airlineData.IssueDate = connectsdk.NewString("20150101")
    airlineData.MerchantCustomerID = connectsdk.NewString("14")
    airlineData.Name = connectsdk.NewString("Air France KLM")
    airlineData.PassengerName = connectsdk.NewString("WECOYOTE")
    airlineData.PlaceOfIssue = connectsdk.NewString("Utah")
    airlineData.PNR = connectsdk.NewString("4JTGKT")
    airlineData.PointOfSale = connectsdk.NewString("IATA point of sale name")
    airlineData.PosCityCode = connectsdk.NewString("AMS")
    airlineData.TicketDeliveryMethod = connectsdk.NewString("e-ticket")
    airlineData.TicketNumber = connectsdk.NewString("KLM20050000")
    
    var additionalInput domain.AdditionalOrderInputAirlineData
    additionalInput.AirlineData = &airlineData
    
    var amountOfMoney domain.AmountOfMoney
    amountOfMoney.Amount = connectsdk.NewInt64(100)
    amountOfMoney.CurrencyCode = connectsdk.NewString("EUR")
    
    var billingAddress domain.Address
    billingAddress.CountryCode = connectsdk.NewString("US")
    
    var customer domain.CustomerRiskAssessment
    customer.AccountType = connectsdk.NewString("existing")
    customer.BillingAddress = &billingAddress
    customer.Locale = connectsdk.NewString("en_US")
    
    var order domain.OrderRiskAssessment
    order.AdditionalInput = &additionalInput
    order.AmountOfMoney = &amountOfMoney
    order.Customer = &customer
    
    var body domain.RiskAssessmentCard
    body.Card = &card
    body.Order = &order
    
    response, err := client.V1().Merchant("merchantId").Riskassessments().Cards(body, nil)
    
  • // Assigning literals to pointer variables directly is not supported.
    // The below code uses helper functions connectsdk.NewInt64 and connectsdk.NewString to overcome this issue.
    // These helper functions are provided by the SDK's root package.
    // http://stackoverflow.com/a/30716481 lists a few more alternatives.
    
    var card domain.Card
    card.CardNumber = connectsdk.NewString("****************")
    card.Cvv = connectsdk.NewString("***")
    card.ExpiryDate = connectsdk.NewString("****")
    
    var amountOfMoney domain.AmountOfMoney
    amountOfMoney.Amount = connectsdk.NewInt64(100)
    amountOfMoney.CurrencyCode = connectsdk.NewString("USD")
    
    var billingAddress domain.Address
    billingAddress.CountryCode = connectsdk.NewString("US")
    
    var customer domain.CustomerRiskAssessment
    customer.BillingAddress = &billingAddress
    
    var order domain.OrderRiskAssessment
    order.AmountOfMoney = &amountOfMoney
    order.Customer = &customer
    
    var body domain.RiskAssessmentCard
    body.Card = &card
    body.Order = &order
    
    response, err := client.V1().Merchant("merchantId").Riskassessments().Cards(body, nil)
    
  • // Assigning literals to pointer variables directly is not supported.
    // The below code uses helper functions connectsdk.NewBool, connectsdk.NewInt32, connectsdk.NewInt64 and connectsdk.NewString to overcome this issue.
    // These helper functions are provided by the SDK's root package.
    // http://stackoverflow.com/a/30716481 lists a few more alternatives.
    
    var card domain.Card
    card.CardNumber = connectsdk.NewString("****************")
    card.Cvv = connectsdk.NewString("***")
    card.ExpiryDate = connectsdk.NewString("****")
    
    var flightLegs []domain.AirlineFlightLeg
    
    var flightLeg1 domain.AirlineFlightLeg
    flightLeg1.AirlineClass = connectsdk.NewString("1")
    flightLeg1.ArrivalAirport = connectsdk.NewString("AMS")
    flightLeg1.CarrierCode = connectsdk.NewString("KL")
    flightLeg1.Date = connectsdk.NewString("20150102")
    flightLeg1.DepartureTime = connectsdk.NewString("17:59")
    flightLeg1.Fare = connectsdk.NewString("fare")
    flightLeg1.FareBasis = connectsdk.NewString("INTERNET")
    flightLeg1.FlightNumber = connectsdk.NewString("791")
    flightLeg1.Number = connectsdk.NewInt32(1)
    flightLeg1.OriginAirport = connectsdk.NewString("BCN")
    flightLeg1.StopoverCode = connectsdk.NewString("non-permitted")
    
    flightLegs = append(flightLegs, flightLeg1)
    
    var flightLeg2 domain.AirlineFlightLeg
    flightLeg2.AirlineClass = connectsdk.NewString("1")
    flightLeg2.ArrivalAirport = connectsdk.NewString("BCN")
    flightLeg2.CarrierCode = connectsdk.NewString("KL")
    flightLeg2.Date = connectsdk.NewString("20150102")
    flightLeg2.DepartureTime = connectsdk.NewString("23:59")
    flightLeg2.Fare = connectsdk.NewString("fare")
    flightLeg2.FareBasis = connectsdk.NewString("INTERNET")
    flightLeg2.FlightNumber = connectsdk.NewString("792")
    flightLeg2.Number = connectsdk.NewInt32(2)
    flightLeg2.OriginAirport = connectsdk.NewString("AMS")
    flightLeg2.StopoverCode = connectsdk.NewString("non-permitted")
    
    flightLegs = append(flightLegs, flightLeg2)
    
    var airlineData domain.AirlineData
    airlineData.AgentNumericCode = connectsdk.NewString("123321")
    airlineData.Code = connectsdk.NewString("123")
    airlineData.FlightDate = connectsdk.NewString("20150102")
    airlineData.FlightLegs = &flightLegs
    airlineData.InvoiceNumber = connectsdk.NewString("123456")
    airlineData.IsETicket = connectsdk.NewBool(true)
    airlineData.IsRestrictedTicket = connectsdk.NewBool(true)
    airlineData.IsThirdParty = connectsdk.NewBool(true)
    airlineData.IssueDate = connectsdk.NewString("20150101")
    airlineData.MerchantCustomerID = connectsdk.NewString("14")
    airlineData.Name = connectsdk.NewString("Air France KLM")
    airlineData.PassengerName = connectsdk.NewString("WECOYOTE")
    airlineData.PlaceOfIssue = connectsdk.NewString("Utah")
    airlineData.PNR = connectsdk.NewString("4JTGKT")
    airlineData.PointOfSale = connectsdk.NewString("IATA point of sale name")
    airlineData.PosCityCode = connectsdk.NewString("AMS")
    airlineData.TicketDeliveryMethod = connectsdk.NewString("e-ticket")
    airlineData.TicketNumber = connectsdk.NewString("KLM20050000")
    
    var additionalInput domain.AdditionalOrderInputAirlineData
    additionalInput.AirlineData = &airlineData
    
    var amountOfMoney domain.AmountOfMoney
    amountOfMoney.Amount = connectsdk.NewInt64(100)
    amountOfMoney.CurrencyCode = connectsdk.NewString("USD")
    
    var billingAddress domain.Address
    billingAddress.CountryCode = connectsdk.NewString("US")
    
    var customer domain.CustomerRiskAssessment
    customer.AccountType = connectsdk.NewString("existing")
    customer.BillingAddress = &billingAddress
    
    var order domain.OrderRiskAssessment
    order.AdditionalInput = &additionalInput
    order.AmountOfMoney = &amountOfMoney
    order.Customer = &customer
    
    var body domain.RiskAssessmentCard
    body.Card = &card
    body.Order = &order
    
    response, err := client.V1().Merchant("merchantId").Riskassessments().Cards(body, nil)
    

Responses

Please find below an overview of the possible responses.

Response 200 - OKdomain.RiskAssessmentResponse

When a risk assessments check was performed successfully you will find the results of the performed checks in the results array.

The results to the following checks are included:

  • retaildescisions-cc-fraud-check - Checks performed by Retail Descisions
  • globalcollect-blacklist-check-cc - Checks performed against blacklist entries on the GlobalCollect platform
  • authorization-check - Validation of the card details using an account validation check at the issuer
Depending on your configuration not all checks mentioned above might be performed.

Properties
Property Type Required Details
close

Description

Object that contains the results of the performed fraudchecks
close
  • SDK Object type
    domain.ResultDoRiskAssessment
close

Description

The Risk Services category with the following possible values:
  • retaildecisionsCCFraudCheck - checks performed by Retail Decisions
  • globalcollectBlacklistCheckCC - Checked against the blacklist on the GlobalCollect platform
  • authorizationCheck - 0$ auth card account validation check
  • ddFraudCheck - Check performed for German market via InterCard
  • validationbankAccount - Bank account details are algorithmically checked if they could exist
  • globalcollectBlacklistCheckDD - Checked against the blacklist on the GlobalCollect platform
close

Description

Risk service result with the following possible results:
  • accepted - Based on the checks performed the transaction can be accepted
  • challenged - Based on the checks performed the transaction should be manually reviewed
  • denied - Based on the checks performed the transaction should be rejected
  • no-advice - No fraud check was requested/performed
  • error - The fraud check resulted in an error and the fraud check was thus not performed
close

Description

Object containing the results of the fraud checks performed by Retail Decisions
  • SDK Object type
    domain.RetailDecisionsCCFraudCheckOutput
  • Property is part of a group
    Learn more

    Properties that make up a group are mutually exclusive, which means you can only include one of each group in any given call.

    If there are multiple groups at one level in the object hierarchy we use numbers to distinguish groups from one another.

close

Description

Provides additional information about the fraud result
close

Description

The raw score returned by the Neural check returned by the evaluation of the transaction
close

Description

List of RuleCategoryFlags as setup in the Retail Decisions system that lead to the result
close

Description

Object containing the results of the fraud checks performed on the bank account data
  • SDK Object type
    domain.ValidationBankAccountOutput
  • Property is part of a group
    Learn more

    Properties that make up a group are mutually exclusive, which means you can only include one of each group in any given call.

    If there are multiple groups at one level in the object hierarchy we use numbers to distinguish groups from one another.

close

Description

Array of checks performed with the results of each check
close
  • SDK Object type
    domain.ValidationBankAccountCheck
close

Description

Code of the bank account validation check
close

Description

Description of check performed
close

Description

Result of the bank account validation check performed, with the following possible results:
  • PASSED - The check passed
  • ERROR - The check did not pass
  • WARNING - Depending on your needs this either needs to be treated as a passed or error response. It depends on your business logic and for what purpose you want to use the validated bank account details.
  • NOTCHECKED - This check was not performed, usually because one of the earlier checks already caused an error response to be triggered
close

Description

Bank name, matching the bank code of the request
close

Description

Reformatted account number according to local clearing rules
close

Description

Reformatted bank code according to local clearing rules
close

Description

Reformatted branch code according to local clearing rules

Response example

SDK: Go

This scenario you will probably use the most

  • {
        "results" : [
            {
                "category" : "globalcollectBlacklistCheckCC",
                "result" : "Accepted"
            },
            {
                "category" : "authorisationCheck",
                "result" : "Error"
            },
            {
                "category" : "retaildecisionsCCFraudCheck",
                "result" : "Error"
            }
        ]
    }
    

Response 400 - Bad requestdomain.ErrorResponse

Properties
Property Type Required Details
close

Description

Unique reference, for debugging purposes, of this error response
close

Description

List of one or more errors
close

Description

Contains detailed information on one single error.
  • SDK Object type
    domain.APIError
close

Description

Category the error belongs to. The category should give an indication of the type of error you are dealing with. Possible values:
  • CONNECT_PLATFORM_ERROR - indicating that a functional error has occurred in the Connect platform.
  • PAYMENT_PLATFORM_ERROR - indicating that a functional error has occurred in the Payment platform.
  • IO_ERROR - indicating that a technical error has occurred within the Connect platform or between Connect and any of the payment platforms or third party systems.
close

Description

Error code
close

Description

HTTP status code for this error that can be used to determine the type of error
close

Description

ID of the error. This is a short human-readable message that briefly describes the error.
close

Description

Human-readable error message that is not meant to be relayed to customer as it might tip off people who are trying to commit fraud
close

Description

Returned only if the error relates to a value that was missing or incorrect.
Contains a location path to the value as a JSonata query.
Some common examples:
  • a.b selects the value of property b of root property a,
  • a[1] selects the first element of the array in root property a,
  • a[b='some value'] selects all elements of the array in root property a that have a property b with value 'some value'.
close

Description

ID of the request that can be used for debugging purposes

Response example

SDK: Go

This scenario you will probably use the most

  • {
        "errorId" : "15eabcd5-30b3-479b-ae03-67bb351c07e6-00000092",
        "errors" : [
            {
                "code" : "20000000",
                "propertyName" : "bankAccountBban.accountNumber",
                "message" : "PARAMETER_NOT_FOUND_IN_REQUEST"
            }
        ]
    }