{"templateId":"markdown","versions":[{"version":"v1","label":"v1 (latest)","link":"/products/fraudsight/assessment","default":true,"active":true,"folderId":"bcec2bc6"}],"sharedDataIds":{"sidebar":"sidebar-products/fraudsight/sidebars.yaml","current-catalog-info":"current-catalog-info-/products/fraudsight/openapi","api-docs-products/fraudsight/@v1/openapi.yaml":"api-docs-products/fraudsight/@v1/openapi.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial","tabs","tab","openapi-code-sample","cards","card","admonition","code-snippet"]},"custom_product":"FraudSight","type":"markdown"},"seo":{"title":"Fraud assessment","description":"Worldpay for Developers - docs, code examples, resources and tools. Everything you need to build your omnichannel payment solution.","siteUrl":"https://docs.worldpay-bsh.securedataplatform.co.uk","image":"/access/assets/worldpay-logo-light.21b7daf79984773a9fcd7d4fbcb07ae5289dfffd6023c4c3dca720c7058e53dc.33f780a6.svg","keywords":"documentation, api, openapi, sdks, developer, payments, json, payouts, 3ds","jsonLd":{"@context":"https://schema.org","@type":"Organization","url":"https://docs.worldpay-bsh.securedataplatform.co.uk/access","name":"Worldpay"},"meta":[{"name":"google-site-verification","content":"zjziIKaP3ImsqsfhYnEBnq1R85UabiSwl7HTXuwtZuo"},{"name":"doc_product","content":"Access"},{"name":"doc_category","content":"Documentation"}],"llmstxt":{"hide":false,"sections":[{"title":"Payments API","description":"Payment orchestration API combining fraud assessment, 3ds authentication, SCA exemptions, Worldpay Token creation and a card or wallet based payment.","includeFiles":["products/payments/@20240601/**/*"]},{"title":"Payment Queries API","description":"Querying your payments data, based on a variety of parameters.","includeFiles":["products/payment-queries/@v1/**/*"]},{"title":"Card BIN Data API","description":"Provides detailed information about a card.","includeFiles":["products/card-bin/@v1/**/*"]},{"title":"3DS Authentication API","description":"Request 3DS authentication to protect against fraud, be SCA compliant and to shift liability using this standalone API.","includeFiles":["products/3ds/@v3/**/*"]},{"title":"FraudSight API","description":"Request a risk assessment and receive a response with an outcome (e.g. lowRisk) using this standalone API.","includeFiles":["products/fraudsight/@v1/**/*"]},{"title":"Checkout SDK","description":"Integrate using our clientside SDKs for both web and native devices. Benefit from SAQ-A/PCI-SSF compliance.","includeFiles":["products/checkout/web/@v2/**/*","products/checkout/ios/@v4/**/*","products/checkout/android/@v4/**/*","products/checkout/react-native/@v3/**/*","products/checkout/flutter/@v1/**/*"]},{"title":"Tokens API","description":"Minimizes the exposure of sensitive card details and increases the security of your customer's card details.","includeFiles":["products/tokens/@v3/**/*"]},{"title":"Card Payments API","description":"Request a card payment using this standalone API, requires separate requests for 3DS, Fraud assessment etc.","includeFiles":["products/card-payments/@v7/**/*"]},{"title":"Card Verifications API","description":"Verify your customer's card to maximize your authentication rates.","includeFiles":["products/card-verifications/@v6/**/*"]},{"title":"Account Payouts API","description":"Send funds to your customer's bank accounts and search for payouts using parameters.","includeFiles":["products/account-payouts/@20250101/**/*"]},{"title":"APMs","description":"Pay using eWallets, bank transfers, direct debits, local card schemes, Postpay and eInvoice/ Buy Now Pay Later.","includeFiles":["products/apms/@20240701/**/*"]},{"title":"Balance API","description":"Request your account details for a single account or all accounts under an entity.","includeFiles":["products/balance/@20250101/**/*"]},{"title":"Card Payouts API","description":"Send funds to your customer's cards.","includeFiles":["products/card-payouts/@v4/**/*"]},{"title":"Events (Webhooks)","description":"Receive status updates from Access Worldpay by setting up a webhook.","includeFiles":["products/events/@v1/**/*"]},{"title":"FX API","description":"Manage Foreign Exchange (FX) on your payments.","includeFiles":["products/fx/@v1/**/*"]},{"title":"Hosted Payment Pages (HPP) API","description":"Our low-code option to take payments securely at the lowest PCI compliance level - SAQ A.","includeFiles":["products/hosted-payment-pages/@v1/**/*"]},{"title":"Money Transfers API","description":"Money Transfer OCTs (Original Credit Transaction) allow funds to be pushed to an eligible card in 30 minutes or less.","includeFiles":["products/money-transfers/@v1/**/*"]},{"title":"Parties API","description":"Create parties, manage your payout instruments and beneficial owners and carry out identity verification checks.","includeFiles":["products/parties/@20250101/**/*"]},{"title":"SCA Exemptions API","description":"Maximize a frictionless checkout experience by using issuer data insights to apply exemptions.","includeFiles":["products/sca-exemptions/@v1/**/*"]},{"title":"Split Payments API","description":"Divide funds from a single payment amongst yourself and your parties/sellers.","includeFiles":["products/split-payments/@20250625/**/*"]},{"title":"Statements API","description":"Retrieve your account statement and see individual entries for all credits and debits.","includeFiles":["products/statements/@20250101/**/*"]},{"title":"Transfers API","description":"Transfer funds from source account to target account.","includeFiles":["products/transfers/@20250101/**/*"]},{"title":"Verified Tokens API","description":"Verified Tokens ensures that your customer's payment details are valid and CIT compliant when creating a token.","includeFiles":["products/verified-tokens/@v3/**/*"]}]}},"dynamicMarkdocComponents":["openapi"],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Last updated"]},": 16 July 2026 | ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/fraudsight/changelog/"},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Change log"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"fraud-assessment","__idx":0},"children":["Fraud assessment"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," your request to the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["fraudsight:assess"]}," action link."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"assessment-example-request","__idx":1},"children":["Assessment example request"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["POST  ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Risk assessment request body:"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Card","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/fraudsight/@v1/openapi.yaml","operationId":"assessment","exampleKey":"card/front","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.fraudsight-v1.hal+json","source":"{\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"paymentInstrument\": {\n      \"type\": \"card/front\",\n      \"cardHolderName\": \"Sherlock Holmes\",\n      \"cardNumber\": \"4444333322221111\",\n      \"cardExpiryDate\": {\n        \"month\": 5,\n        \"year\": 2035\n      },\n      \"billingAddress\": {\n        \"address1\": \"221B Baker Street\",\n        \"address2\": \"Marylebone\",\n        \"address3\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"value\": {\n      \"currency\": \"GBP\",\n      \"amount\": 250\n    }\n  },\n  \"deviceData\": {\n    \"provider\": {\n      \"name\": \"ravelin\",\n      \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n    },\n    \"ipAddress\": \"192.0.0.0\"\n  },\n  \"riskData\": {\n    \"account\": {\n      \"email\": \"sherlock.holmes@example.com\",\n      \"dateOfBirth\": \"1854-01-06\",\n      \"shopperId\": \"id123\"\n    },\n    \"transaction\": {\n      \"firstName\": \"Sherlock\",\n      \"lastName\": \"Holmes\",\n      \"phoneNumber\": \"02031234321\"\n    },\n    \"shipping\": {\n      \"firstName\": \"James\",\n      \"lastName\": \"Moriarty\",\n      \"address\": {\n        \"address1\": \"The Palatine Centre\",\n        \"address2\": \"Durham University\",\n        \"address3\": \"Stockton Road\",\n        \"postalCode\": \"DH1 3LE\",\n        \"city\": \"Durham\",\n        \"state\": \"County Durham\",\n        \"countryCode\": \"GB\",\n        \"phoneNumber\": \"01911234321\"\n      }\n    },\n    \"custom\": {\n      \"number1\": 1,\n      \"number2\": 2,\n      \"number3\": 3,\n      \"number4\": 4,\n      \"number5\": 5,\n      \"number6\": 6,\n      \"number7\": 7,\n      \"number8\": 8,\n      \"number9\": 9,\n      \"string1\": \"text1\",\n      \"string2\": \"text2\",\n      \"string3\": \"text3\",\n      \"string4\": \"text4\",\n      \"string5\": \"text5\",\n      \"string6\": \"text6\",\n      \"string7\": \"text7\",\n      \"string8\": \"text8\",\n      \"string9\": \"text9\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment \\\n  -H 'Accept: application/vnd.worldpay.fraudsight-v1.hal+json' \\\n  -H 'Content-Type: application/vnd.worldpay.fraudsight-v1.hal+json' \\\n  -d '{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/front\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"cardNumber\": \"4444333322221111\",\n        \"cardExpiryDate\": {\n          \"month\": 5,\n          \"year\": 2035\n        },\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"value\": {\n        \"currency\": \"GBP\",\n        \"amount\": 250\n      }\n    },\n    \"deviceData\": {\n      \"provider\": {\n        \"name\": \"ravelin\",\n        \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n      },\n      \"ipAddress\": \"192.0.0.0\"\n    },\n    \"riskData\": {\n      \"account\": {\n        \"email\": \"sherlock.holmes@example.com\",\n        \"dateOfBirth\": \"1854-01-06\",\n        \"shopperId\": \"id123\"\n      },\n      \"transaction\": {\n        \"firstName\": \"Sherlock\",\n        \"lastName\": \"Holmes\",\n        \"phoneNumber\": \"02031234321\"\n      },\n      \"shipping\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"address\": {\n          \"address1\": \"The Palatine Centre\",\n          \"address2\": \"Durham University\",\n          \"address3\": \"Stockton Road\",\n          \"postalCode\": \"DH1 3LE\",\n          \"city\": \"Durham\",\n          \"state\": \"County Durham\",\n          \"countryCode\": \"GB\",\n          \"phoneNumber\": \"01911234321\"\n        }\n      },\n      \"custom\": {\n        \"number1\": 1,\n        \"number2\": 2,\n        \"number3\": 3,\n        \"number4\": 4,\n        \"number5\": 5,\n        \"number6\": 6,\n        \"number7\": 7,\n        \"number8\": 8,\n        \"number9\": 9,\n        \"string1\": \"text1\",\n        \"string2\": \"text2\",\n        \"string3\": \"text3\",\n        \"string4\": \"text4\",\n        \"string5\": \"text5\",\n        \"string6\": \"text6\",\n        \"string7\": \"text7\",\n        \"string8\": \"text8\",\n        \"string9\": \"text9\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\"\n\npayload = '''\n  {\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/front\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"cardNumber\": \"4444333322221111\",\n        \"cardExpiryDate\": {\n          \"month\": 5,\n          \"year\": 2035\n        },\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"value\": {\n        \"currency\": \"GBP\",\n        \"amount\": 250\n      }\n    },\n    \"deviceData\": {\n      \"provider\": {\n        \"name\": \"ravelin\",\n        \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n      },\n      \"ipAddress\": \"192.0.0.0\"\n    },\n    \"riskData\": {\n      \"account\": {\n        \"email\": \"sherlock.holmes@example.com\",\n        \"dateOfBirth\": \"1854-01-06\",\n        \"shopperId\": \"id123\"\n      },\n      \"transaction\": {\n        \"firstName\": \"Sherlock\",\n        \"lastName\": \"Holmes\",\n        \"phoneNumber\": \"02031234321\"\n      },\n      \"shipping\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"address\": {\n          \"address1\": \"The Palatine Centre\",\n          \"address2\": \"Durham University\",\n          \"address3\": \"Stockton Road\",\n          \"postalCode\": \"DH1 3LE\",\n          \"city\": \"Durham\",\n          \"state\": \"County Durham\",\n          \"countryCode\": \"GB\",\n          \"phoneNumber\": \"01911234321\"\n        }\n      },\n      \"custom\": {\n        \"number1\": 1,\n        \"number2\": 2,\n        \"number3\": 3,\n        \"number4\": 4,\n        \"number5\": 5,\n        \"number6\": 6,\n        \"number7\": 7,\n        \"number8\": 8,\n        \"number9\": 9,\n        \"string1\": \"text1\",\n        \"string2\": \"text2\",\n        \"string3\": \"text3\",\n        \"string4\": \"text4\",\n        \"string5\": \"text5\",\n        \"string6\": \"text6\",\n        \"string7\": \"text7\",\n        \"string8\": \"text8\",\n        \"string9\": \"text9\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Content-Type\": \"application/vnd.worldpay.fraudsight-v1.hal+json\",\n  \"Accept\": \"application/vnd.worldpay.fraudsight-v1.hal+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/fraudsight/assessment\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n      .header(\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/vnd.worldpay.fraudsight-v1.hal+json',\n        Accept: 'application/vnd.worldpay.fraudsight-v1.hal+json'\n      },\n      body: `{\n          \"transactionReference\": \"Memory265-13/08/1876\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"instruction\": {\n            \"paymentInstrument\": {\n              \"type\": \"card/front\",\n              \"cardHolderName\": \"Sherlock Holmes\",\n              \"cardNumber\": \"4444333322221111\",\n              \"cardExpiryDate\": {\n                \"month\": 5,\n                \"year\": 2035\n              },\n              \"billingAddress\": {\n                \"address1\": \"221B Baker Street\",\n                \"address2\": \"Marylebone\",\n                \"address3\": \"Westminster\",\n                \"postalCode\": \"NW1 6XE\",\n                \"city\": \"London\",\n                \"state\": \"Greater London\",\n                \"countryCode\": \"GB\"\n              }\n            },\n            \"value\": {\n              \"currency\": \"GBP\",\n              \"amount\": 250\n            }\n          },\n          \"deviceData\": {\n            \"provider\": {\n              \"name\": \"ravelin\",\n              \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n            },\n            \"ipAddress\": \"192.0.0.0\"\n          },\n          \"riskData\": {\n            \"account\": {\n              \"email\": \"sherlock.holmes@example.com\",\n              \"dateOfBirth\": \"1854-01-06\",\n              \"shopperId\": \"id123\"\n            },\n            \"transaction\": {\n              \"firstName\": \"Sherlock\",\n              \"lastName\": \"Holmes\",\n              \"phoneNumber\": \"02031234321\"\n            },\n            \"shipping\": {\n              \"firstName\": \"James\",\n              \"lastName\": \"Moriarty\",\n              \"address\": {\n                \"address1\": \"The Palatine Centre\",\n                \"address2\": \"Durham University\",\n                \"address3\": \"Stockton Road\",\n                \"postalCode\": \"DH1 3LE\",\n                \"city\": \"Durham\",\n                \"state\": \"County Durham\",\n                \"countryCode\": \"GB\",\n                \"phoneNumber\": \"01911234321\"\n              }\n            },\n            \"custom\": {\n              \"number1\": 1,\n              \"number2\": 2,\n              \"number3\": 3,\n              \"number4\": 4,\n              \"number5\": 5,\n              \"number6\": 6,\n              \"number7\": 7,\n              \"number8\": 8,\n              \"number9\": 9,\n              \"string1\": \"text1\",\n              \"string2\": \"text2\",\n              \"string3\": \"text3\",\n              \"string4\": \"text4\",\n              \"string5\": \"text5\",\n              \"string6\": \"text6\",\n              \"string7\": \"text7\",\n              \"string8\": \"text8\",\n              \"string9\": \"text9\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\"\n  payload := strings.NewReader(\"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/front\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"cardExpiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"London\\\",\\n        \\\"state\\\": \\\"Greater London\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1854-01-06\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"02031234321\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.fraudsight-v1.hal+json\",\n    \"Content-Type: application/vnd.worldpay.fraudsight-v1.hal+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/front\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"cardExpiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"London\\\",\\n        \\\"state\\\": \\\"Greater London\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1854-01-06\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"02031234321\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/vnd.worldpay.fraudsight-v1.hal+json'\nrequest['Accept'] = 'application/vnd.worldpay.fraudsight-v1.hal+json'\nrequest.body = \"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/front\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"cardExpiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"London\\\",\\n        \\\"state\\\": \\\"Greater London\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1854-01-06\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"02031234321\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Token","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/fraudsight/@v1/openapi.yaml","operationId":"assessment","exampleKey":"card/tokenized","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.fraudsight-v1.hal+json","source":"{\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"paymentInstrument\": {\n      \"type\": \"card/tokenized\",\n      \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/MTIzNDU2Nzg5MDEyMzQ1Ng\"\n    },\n    \"value\": {\n      \"currency\": \"GBP\",\n      \"amount\": 250\n    }\n  },\n  \"deviceData\": {\n    \"provider\": {\n      \"name\": \"ravelin\",\n      \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n    },\n    \"ipAddress\": \"192.0.0.0\"\n  },\n  \"riskData\": {\n    \"account\": {\n      \"email\": \"sherlock.holmes@example.com\",\n      \"dateOfBirth\": \"1854-01-06\",\n      \"shopperId\": \"id123\"\n    },\n    \"transaction\": {\n      \"firstName\": \"Sherlock\",\n      \"lastName\": \"Holmes\",\n      \"phoneNumber\": \"02031234321\"\n    },\n    \"shipping\": {\n      \"firstName\": \"James\",\n      \"lastName\": \"Moriarty\",\n      \"address\": {\n        \"address1\": \"The Palatine Centre\",\n        \"address2\": \"Durham University\",\n        \"address3\": \"Stockton Road\",\n        \"postalCode\": \"DH1 3LE\",\n        \"city\": \"Durham\",\n        \"state\": \"County Durham\",\n        \"countryCode\": \"GB\",\n        \"phoneNumber\": \"01911234321\"\n      }\n    },\n    \"custom\": {\n      \"number1\": 1,\n      \"number2\": 2,\n      \"number3\": 3,\n      \"number4\": 4,\n      \"number5\": 5,\n      \"number6\": 6,\n      \"number7\": 7,\n      \"number8\": 8,\n      \"number9\": 9,\n      \"string1\": \"text1\",\n      \"string2\": \"text2\",\n      \"string3\": \"text3\",\n      \"string4\": \"text4\",\n      \"string5\": \"text5\",\n      \"string6\": \"text6\",\n      \"string7\": \"text7\",\n      \"string8\": \"text8\",\n      \"string9\": \"text9\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment \\\n  -H 'Accept: application/vnd.worldpay.fraudsight-v1.hal+json' \\\n  -H 'Content-Type: application/vnd.worldpay.fraudsight-v1.hal+json' \\\n  -d '{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/tokenized\",\n        \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/MTIzNDU2Nzg5MDEyMzQ1Ng\"\n      },\n      \"value\": {\n        \"currency\": \"GBP\",\n        \"amount\": 250\n      }\n    },\n    \"deviceData\": {\n      \"provider\": {\n        \"name\": \"ravelin\",\n        \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n      },\n      \"ipAddress\": \"192.0.0.0\"\n    },\n    \"riskData\": {\n      \"account\": {\n        \"email\": \"sherlock.holmes@example.com\",\n        \"dateOfBirth\": \"1854-01-06\",\n        \"shopperId\": \"id123\"\n      },\n      \"transaction\": {\n        \"firstName\": \"Sherlock\",\n        \"lastName\": \"Holmes\",\n        \"phoneNumber\": \"02031234321\"\n      },\n      \"shipping\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"address\": {\n          \"address1\": \"The Palatine Centre\",\n          \"address2\": \"Durham University\",\n          \"address3\": \"Stockton Road\",\n          \"postalCode\": \"DH1 3LE\",\n          \"city\": \"Durham\",\n          \"state\": \"County Durham\",\n          \"countryCode\": \"GB\",\n          \"phoneNumber\": \"01911234321\"\n        }\n      },\n      \"custom\": {\n        \"number1\": 1,\n        \"number2\": 2,\n        \"number3\": 3,\n        \"number4\": 4,\n        \"number5\": 5,\n        \"number6\": 6,\n        \"number7\": 7,\n        \"number8\": 8,\n        \"number9\": 9,\n        \"string1\": \"text1\",\n        \"string2\": \"text2\",\n        \"string3\": \"text3\",\n        \"string4\": \"text4\",\n        \"string5\": \"text5\",\n        \"string6\": \"text6\",\n        \"string7\": \"text7\",\n        \"string8\": \"text8\",\n        \"string9\": \"text9\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\"\n\npayload = '''\n  {\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/tokenized\",\n        \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/MTIzNDU2Nzg5MDEyMzQ1Ng\"\n      },\n      \"value\": {\n        \"currency\": \"GBP\",\n        \"amount\": 250\n      }\n    },\n    \"deviceData\": {\n      \"provider\": {\n        \"name\": \"ravelin\",\n        \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n      },\n      \"ipAddress\": \"192.0.0.0\"\n    },\n    \"riskData\": {\n      \"account\": {\n        \"email\": \"sherlock.holmes@example.com\",\n        \"dateOfBirth\": \"1854-01-06\",\n        \"shopperId\": \"id123\"\n      },\n      \"transaction\": {\n        \"firstName\": \"Sherlock\",\n        \"lastName\": \"Holmes\",\n        \"phoneNumber\": \"02031234321\"\n      },\n      \"shipping\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"address\": {\n          \"address1\": \"The Palatine Centre\",\n          \"address2\": \"Durham University\",\n          \"address3\": \"Stockton Road\",\n          \"postalCode\": \"DH1 3LE\",\n          \"city\": \"Durham\",\n          \"state\": \"County Durham\",\n          \"countryCode\": \"GB\",\n          \"phoneNumber\": \"01911234321\"\n        }\n      },\n      \"custom\": {\n        \"number1\": 1,\n        \"number2\": 2,\n        \"number3\": 3,\n        \"number4\": 4,\n        \"number5\": 5,\n        \"number6\": 6,\n        \"number7\": 7,\n        \"number8\": 8,\n        \"number9\": 9,\n        \"string1\": \"text1\",\n        \"string2\": \"text2\",\n        \"string3\": \"text3\",\n        \"string4\": \"text4\",\n        \"string5\": \"text5\",\n        \"string6\": \"text6\",\n        \"string7\": \"text7\",\n        \"string8\": \"text8\",\n        \"string9\": \"text9\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Content-Type\": \"application/vnd.worldpay.fraudsight-v1.hal+json\",\n  \"Accept\": \"application/vnd.worldpay.fraudsight-v1.hal+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/fraudsight/assessment\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n      .header(\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/vnd.worldpay.fraudsight-v1.hal+json',\n        Accept: 'application/vnd.worldpay.fraudsight-v1.hal+json'\n      },\n      body: `{\n          \"transactionReference\": \"Memory265-13/08/1876\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"instruction\": {\n            \"paymentInstrument\": {\n              \"type\": \"card/tokenized\",\n              \"href\": \"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/MTIzNDU2Nzg5MDEyMzQ1Ng\"\n            },\n            \"value\": {\n              \"currency\": \"GBP\",\n              \"amount\": 250\n            }\n          },\n          \"deviceData\": {\n            \"provider\": {\n              \"name\": \"ravelin\",\n              \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n            },\n            \"ipAddress\": \"192.0.0.0\"\n          },\n          \"riskData\": {\n            \"account\": {\n              \"email\": \"sherlock.holmes@example.com\",\n              \"dateOfBirth\": \"1854-01-06\",\n              \"shopperId\": \"id123\"\n            },\n            \"transaction\": {\n              \"firstName\": \"Sherlock\",\n              \"lastName\": \"Holmes\",\n              \"phoneNumber\": \"02031234321\"\n            },\n            \"shipping\": {\n              \"firstName\": \"James\",\n              \"lastName\": \"Moriarty\",\n              \"address\": {\n                \"address1\": \"The Palatine Centre\",\n                \"address2\": \"Durham University\",\n                \"address3\": \"Stockton Road\",\n                \"postalCode\": \"DH1 3LE\",\n                \"city\": \"Durham\",\n                \"state\": \"County Durham\",\n                \"countryCode\": \"GB\",\n                \"phoneNumber\": \"01911234321\"\n              }\n            },\n            \"custom\": {\n              \"number1\": 1,\n              \"number2\": 2,\n              \"number3\": 3,\n              \"number4\": 4,\n              \"number5\": 5,\n              \"number6\": 6,\n              \"number7\": 7,\n              \"number8\": 8,\n              \"number9\": 9,\n              \"string1\": \"text1\",\n              \"string2\": \"text2\",\n              \"string3\": \"text3\",\n              \"string4\": \"text4\",\n              \"string5\": \"text5\",\n              \"string6\": \"text6\",\n              \"string7\": \"text7\",\n              \"string8\": \"text8\",\n              \"string9\": \"text9\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\"\n  payload := strings.NewReader(\"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/tokenized\\\",\\n      \\\"href\\\": \\\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/MTIzNDU2Nzg5MDEyMzQ1Ng\\\"\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1854-01-06\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"02031234321\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.fraudsight-v1.hal+json\",\n    \"Content-Type: application/vnd.worldpay.fraudsight-v1.hal+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/tokenized\\\",\\n      \\\"href\\\": \\\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/MTIzNDU2Nzg5MDEyMzQ1Ng\\\"\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1854-01-06\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"02031234321\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/vnd.worldpay.fraudsight-v1.hal+json'\nrequest['Accept'] = 'application/vnd.worldpay.fraudsight-v1.hal+json'\nrequest.body = \"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/tokenized\\\",\\n      \\\"href\\\": \\\"https://try.access.worldpay-bsh.securedataplatform.co.uk/tokens/MTIzNDU2Nzg5MDEyMzQ1Ng\\\"\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1854-01-06\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"02031234321\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Network token","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/fraudsight/@v1/openapi.yaml","operationId":"assessment","exampleKey":"card/networkToken","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.fraudsight-v1.hal+json","source":"{\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"paymentInstrument\": {\n      \"type\": \"card/networkToken\",\n      \"tokenNumber\": \"4444333322221111\",\n      \"cardExpiryDate\": {\n        \"month\": 5,\n        \"year\": 2035\n      },\n      \"billingAddress\": {\n        \"address1\": \"221B Baker Street\",\n        \"address2\": \"Marylebone\",\n        \"address3\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"value\": {\n      \"currency\": \"GBP\",\n      \"amount\": 250\n    }\n  },\n  \"deviceData\": {\n    \"provider\": {\n      \"name\": \"ravelin\",\n      \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n    },\n    \"ipAddress\": \"192.0.0.0\"\n  },\n  \"riskData\": {\n    \"account\": {\n      \"email\": \"sherlock.holmes@example.com\",\n      \"dateOfBirth\": \"1854-01-06\",\n      \"shopperId\": \"id123\"\n    },\n    \"transaction\": {\n      \"firstName\": \"Sherlock\",\n      \"lastName\": \"Holmes\",\n      \"phoneNumber\": \"02031234321\"\n    },\n    \"shipping\": {\n      \"firstName\": \"James\",\n      \"lastName\": \"Moriarty\",\n      \"address\": {\n        \"address1\": \"The Palatine Centre\",\n        \"address2\": \"Durham University\",\n        \"address3\": \"Stockton Road\",\n        \"postalCode\": \"DH1 3LE\",\n        \"city\": \"Durham\",\n        \"state\": \"County Durham\",\n        \"countryCode\": \"GB\",\n        \"phoneNumber\": \"01911234321\"\n      }\n    },\n    \"custom\": {\n      \"number1\": 1,\n      \"number2\": 2,\n      \"number3\": 3,\n      \"number4\": 4,\n      \"number5\": 5,\n      \"number6\": 6,\n      \"number7\": 7,\n      \"number8\": 8,\n      \"number9\": 9,\n      \"string1\": \"text1\",\n      \"string2\": \"text2\",\n      \"string3\": \"text3\",\n      \"string4\": \"text4\",\n      \"string5\": \"text5\",\n      \"string6\": \"text6\",\n      \"string7\": \"text7\",\n      \"string8\": \"text8\",\n      \"string9\": \"text9\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment \\\n  -H 'Accept: application/vnd.worldpay.fraudsight-v1.hal+json' \\\n  -H 'Content-Type: application/vnd.worldpay.fraudsight-v1.hal+json' \\\n  -d '{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/networkToken\",\n        \"tokenNumber\": \"4444333322221111\",\n        \"cardExpiryDate\": {\n          \"month\": 5,\n          \"year\": 2035\n        },\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"value\": {\n        \"currency\": \"GBP\",\n        \"amount\": 250\n      }\n    },\n    \"deviceData\": {\n      \"provider\": {\n        \"name\": \"ravelin\",\n        \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n      },\n      \"ipAddress\": \"192.0.0.0\"\n    },\n    \"riskData\": {\n      \"account\": {\n        \"email\": \"sherlock.holmes@example.com\",\n        \"dateOfBirth\": \"1854-01-06\",\n        \"shopperId\": \"id123\"\n      },\n      \"transaction\": {\n        \"firstName\": \"Sherlock\",\n        \"lastName\": \"Holmes\",\n        \"phoneNumber\": \"02031234321\"\n      },\n      \"shipping\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"address\": {\n          \"address1\": \"The Palatine Centre\",\n          \"address2\": \"Durham University\",\n          \"address3\": \"Stockton Road\",\n          \"postalCode\": \"DH1 3LE\",\n          \"city\": \"Durham\",\n          \"state\": \"County Durham\",\n          \"countryCode\": \"GB\",\n          \"phoneNumber\": \"01911234321\"\n        }\n      },\n      \"custom\": {\n        \"number1\": 1,\n        \"number2\": 2,\n        \"number3\": 3,\n        \"number4\": 4,\n        \"number5\": 5,\n        \"number6\": 6,\n        \"number7\": 7,\n        \"number8\": 8,\n        \"number9\": 9,\n        \"string1\": \"text1\",\n        \"string2\": \"text2\",\n        \"string3\": \"text3\",\n        \"string4\": \"text4\",\n        \"string5\": \"text5\",\n        \"string6\": \"text6\",\n        \"string7\": \"text7\",\n        \"string8\": \"text8\",\n        \"string9\": \"text9\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\"\n\npayload = '''\n  {\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/networkToken\",\n        \"tokenNumber\": \"4444333322221111\",\n        \"cardExpiryDate\": {\n          \"month\": 5,\n          \"year\": 2035\n        },\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"value\": {\n        \"currency\": \"GBP\",\n        \"amount\": 250\n      }\n    },\n    \"deviceData\": {\n      \"provider\": {\n        \"name\": \"ravelin\",\n        \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n      },\n      \"ipAddress\": \"192.0.0.0\"\n    },\n    \"riskData\": {\n      \"account\": {\n        \"email\": \"sherlock.holmes@example.com\",\n        \"dateOfBirth\": \"1854-01-06\",\n        \"shopperId\": \"id123\"\n      },\n      \"transaction\": {\n        \"firstName\": \"Sherlock\",\n        \"lastName\": \"Holmes\",\n        \"phoneNumber\": \"02031234321\"\n      },\n      \"shipping\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"address\": {\n          \"address1\": \"The Palatine Centre\",\n          \"address2\": \"Durham University\",\n          \"address3\": \"Stockton Road\",\n          \"postalCode\": \"DH1 3LE\",\n          \"city\": \"Durham\",\n          \"state\": \"County Durham\",\n          \"countryCode\": \"GB\",\n          \"phoneNumber\": \"01911234321\"\n        }\n      },\n      \"custom\": {\n        \"number1\": 1,\n        \"number2\": 2,\n        \"number3\": 3,\n        \"number4\": 4,\n        \"number5\": 5,\n        \"number6\": 6,\n        \"number7\": 7,\n        \"number8\": 8,\n        \"number9\": 9,\n        \"string1\": \"text1\",\n        \"string2\": \"text2\",\n        \"string3\": \"text3\",\n        \"string4\": \"text4\",\n        \"string5\": \"text5\",\n        \"string6\": \"text6\",\n        \"string7\": \"text7\",\n        \"string8\": \"text8\",\n        \"string9\": \"text9\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Content-Type\": \"application/vnd.worldpay.fraudsight-v1.hal+json\",\n  \"Accept\": \"application/vnd.worldpay.fraudsight-v1.hal+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/fraudsight/assessment\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n      .header(\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/vnd.worldpay.fraudsight-v1.hal+json',\n        Accept: 'application/vnd.worldpay.fraudsight-v1.hal+json'\n      },\n      body: `{\n          \"transactionReference\": \"Memory265-13/08/1876\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"instruction\": {\n            \"paymentInstrument\": {\n              \"type\": \"card/networkToken\",\n              \"tokenNumber\": \"4444333322221111\",\n              \"cardExpiryDate\": {\n                \"month\": 5,\n                \"year\": 2035\n              },\n              \"billingAddress\": {\n                \"address1\": \"221B Baker Street\",\n                \"address2\": \"Marylebone\",\n                \"address3\": \"Westminster\",\n                \"postalCode\": \"NW1 6XE\",\n                \"city\": \"London\",\n                \"state\": \"Greater London\",\n                \"countryCode\": \"GB\"\n              }\n            },\n            \"value\": {\n              \"currency\": \"GBP\",\n              \"amount\": 250\n            }\n          },\n          \"deviceData\": {\n            \"provider\": {\n              \"name\": \"ravelin\",\n              \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n            },\n            \"ipAddress\": \"192.0.0.0\"\n          },\n          \"riskData\": {\n            \"account\": {\n              \"email\": \"sherlock.holmes@example.com\",\n              \"dateOfBirth\": \"1854-01-06\",\n              \"shopperId\": \"id123\"\n            },\n            \"transaction\": {\n              \"firstName\": \"Sherlock\",\n              \"lastName\": \"Holmes\",\n              \"phoneNumber\": \"02031234321\"\n            },\n            \"shipping\": {\n              \"firstName\": \"James\",\n              \"lastName\": \"Moriarty\",\n              \"address\": {\n                \"address1\": \"The Palatine Centre\",\n                \"address2\": \"Durham University\",\n                \"address3\": \"Stockton Road\",\n                \"postalCode\": \"DH1 3LE\",\n                \"city\": \"Durham\",\n                \"state\": \"County Durham\",\n                \"countryCode\": \"GB\",\n                \"phoneNumber\": \"01911234321\"\n              }\n            },\n            \"custom\": {\n              \"number1\": 1,\n              \"number2\": 2,\n              \"number3\": 3,\n              \"number4\": 4,\n              \"number5\": 5,\n              \"number6\": 6,\n              \"number7\": 7,\n              \"number8\": 8,\n              \"number9\": 9,\n              \"string1\": \"text1\",\n              \"string2\": \"text2\",\n              \"string3\": \"text3\",\n              \"string4\": \"text4\",\n              \"string5\": \"text5\",\n              \"string6\": \"text6\",\n              \"string7\": \"text7\",\n              \"string8\": \"text8\",\n              \"string9\": \"text9\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\"\n  payload := strings.NewReader(\"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken\\\",\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"cardExpiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"London\\\",\\n        \\\"state\\\": \\\"Greater London\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1854-01-06\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"02031234321\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.fraudsight-v1.hal+json\",\n    \"Content-Type: application/vnd.worldpay.fraudsight-v1.hal+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken\\\",\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"cardExpiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"London\\\",\\n        \\\"state\\\": \\\"Greater London\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1854-01-06\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"02031234321\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/vnd.worldpay.fraudsight-v1.hal+json'\nrequest['Accept'] = 'application/vnd.worldpay.fraudsight-v1.hal+json'\nrequest.body = \"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/networkToken\\\",\\n      \\\"tokenNumber\\\": \\\"4444333322221111\\\",\\n      \\\"cardExpiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"London\\\",\\n        \\\"state\\\": \\\"Greater London\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1854-01-06\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"02031234321\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Card (masked)","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/fraudsight/@v1/openapi.yaml","operationId":"assessment","exampleKey":"card/plain+masked","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.fraudsight-v1.hal+json","source":"{\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"instruction\": {\n    \"paymentInstrument\": {\n      \"type\": \"card/plain+masked\",\n      \"cardBin\": \"444411\",\n      \"lastFour\": \"4321\",\n      \"reference\": \"bf94b2ca-ecce-4e6f-bb38-a77dd8a21156\",\n      \"cardExpiryDate\": {\n        \"month\": 5,\n        \"year\": 2035\n      },\n      \"billingAddress\": {\n        \"address1\": \"221B Baker Street\",\n        \"address2\": \"Marylebone\",\n        \"address3\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"value\": {\n      \"currency\": \"GBP\",\n      \"amount\": 250\n    }\n  },\n  \"deviceData\": {\n    \"provider\": {\n      \"name\": \"ravelin\",\n      \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n    },\n    \"ipAddress\": \"192.0.0.0\"\n  },\n  \"riskData\": {\n    \"account\": {\n      \"email\": \"sherlock.holmes@example.com\",\n      \"dateOfBirth\": \"1854-01-06\",\n      \"shopperId\": \"id123\"\n    },\n    \"transaction\": {\n      \"firstName\": \"Sherlock\",\n      \"lastName\": \"Holmes\",\n      \"phoneNumber\": \"02031234321\"\n    },\n    \"shipping\": {\n      \"firstName\": \"James\",\n      \"lastName\": \"Moriarty\",\n      \"address\": {\n        \"address1\": \"The Palatine Centre\",\n        \"address2\": \"Durham University\",\n        \"address3\": \"Stockton Road\",\n        \"postalCode\": \"DH1 3LE\",\n        \"city\": \"Durham\",\n        \"state\": \"County Durham\",\n        \"countryCode\": \"GB\",\n        \"phoneNumber\": \"01911234321\"\n      }\n    },\n    \"custom\": {\n      \"number1\": 1,\n      \"number2\": 2,\n      \"number3\": 3,\n      \"number4\": 4,\n      \"number5\": 5,\n      \"number6\": 6,\n      \"number7\": 7,\n      \"number8\": 8,\n      \"number9\": 9,\n      \"string1\": \"text1\",\n      \"string2\": \"text2\",\n      \"string3\": \"text3\",\n      \"string4\": \"text4\",\n      \"string5\": \"text5\",\n      \"string6\": \"text6\",\n      \"string7\": \"text7\",\n      \"string8\": \"text8\",\n      \"string9\": \"text9\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment \\\n  -H 'Accept: application/vnd.worldpay.fraudsight-v1.hal+json' \\\n  -H 'Content-Type: application/vnd.worldpay.fraudsight-v1.hal+json' \\\n  -d '{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/plain+masked\",\n        \"cardBin\": \"444411\",\n        \"lastFour\": \"4321\",\n        \"reference\": \"bf94b2ca-ecce-4e6f-bb38-a77dd8a21156\",\n        \"cardExpiryDate\": {\n          \"month\": 5,\n          \"year\": 2035\n        },\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"value\": {\n        \"currency\": \"GBP\",\n        \"amount\": 250\n      }\n    },\n    \"deviceData\": {\n      \"provider\": {\n        \"name\": \"ravelin\",\n        \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n      },\n      \"ipAddress\": \"192.0.0.0\"\n    },\n    \"riskData\": {\n      \"account\": {\n        \"email\": \"sherlock.holmes@example.com\",\n        \"dateOfBirth\": \"1854-01-06\",\n        \"shopperId\": \"id123\"\n      },\n      \"transaction\": {\n        \"firstName\": \"Sherlock\",\n        \"lastName\": \"Holmes\",\n        \"phoneNumber\": \"02031234321\"\n      },\n      \"shipping\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"address\": {\n          \"address1\": \"The Palatine Centre\",\n          \"address2\": \"Durham University\",\n          \"address3\": \"Stockton Road\",\n          \"postalCode\": \"DH1 3LE\",\n          \"city\": \"Durham\",\n          \"state\": \"County Durham\",\n          \"countryCode\": \"GB\",\n          \"phoneNumber\": \"01911234321\"\n        }\n      },\n      \"custom\": {\n        \"number1\": 1,\n        \"number2\": 2,\n        \"number3\": 3,\n        \"number4\": 4,\n        \"number5\": 5,\n        \"number6\": 6,\n        \"number7\": 7,\n        \"number8\": 8,\n        \"number9\": 9,\n        \"string1\": \"text1\",\n        \"string2\": \"text2\",\n        \"string3\": \"text3\",\n        \"string4\": \"text4\",\n        \"string5\": \"text5\",\n        \"string6\": \"text6\",\n        \"string7\": \"text7\",\n        \"string8\": \"text8\",\n        \"string9\": \"text9\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\"\n\npayload = '''\n  {\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/plain+masked\",\n        \"cardBin\": \"444411\",\n        \"lastFour\": \"4321\",\n        \"reference\": \"bf94b2ca-ecce-4e6f-bb38-a77dd8a21156\",\n        \"cardExpiryDate\": {\n          \"month\": 5,\n          \"year\": 2035\n        },\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"value\": {\n        \"currency\": \"GBP\",\n        \"amount\": 250\n      }\n    },\n    \"deviceData\": {\n      \"provider\": {\n        \"name\": \"ravelin\",\n        \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n      },\n      \"ipAddress\": \"192.0.0.0\"\n    },\n    \"riskData\": {\n      \"account\": {\n        \"email\": \"sherlock.holmes@example.com\",\n        \"dateOfBirth\": \"1854-01-06\",\n        \"shopperId\": \"id123\"\n      },\n      \"transaction\": {\n        \"firstName\": \"Sherlock\",\n        \"lastName\": \"Holmes\",\n        \"phoneNumber\": \"02031234321\"\n      },\n      \"shipping\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"address\": {\n          \"address1\": \"The Palatine Centre\",\n          \"address2\": \"Durham University\",\n          \"address3\": \"Stockton Road\",\n          \"postalCode\": \"DH1 3LE\",\n          \"city\": \"Durham\",\n          \"state\": \"County Durham\",\n          \"countryCode\": \"GB\",\n          \"phoneNumber\": \"01911234321\"\n        }\n      },\n      \"custom\": {\n        \"number1\": 1,\n        \"number2\": 2,\n        \"number3\": 3,\n        \"number4\": 4,\n        \"number5\": 5,\n        \"number6\": 6,\n        \"number7\": 7,\n        \"number8\": 8,\n        \"number9\": 9,\n        \"string1\": \"text1\",\n        \"string2\": \"text2\",\n        \"string3\": \"text3\",\n        \"string4\": \"text4\",\n        \"string5\": \"text5\",\n        \"string6\": \"text6\",\n        \"string7\": \"text7\",\n        \"string8\": \"text8\",\n        \"string9\": \"text9\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Content-Type\": \"application/vnd.worldpay.fraudsight-v1.hal+json\",\n  \"Accept\": \"application/vnd.worldpay.fraudsight-v1.hal+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/fraudsight/assessment\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n      .header(\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/vnd.worldpay.fraudsight-v1.hal+json',\n        Accept: 'application/vnd.worldpay.fraudsight-v1.hal+json'\n      },\n      body: `{\n          \"transactionReference\": \"Memory265-13/08/1876\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"instruction\": {\n            \"paymentInstrument\": {\n              \"type\": \"card/plain+masked\",\n              \"cardBin\": \"444411\",\n              \"lastFour\": \"4321\",\n              \"reference\": \"bf94b2ca-ecce-4e6f-bb38-a77dd8a21156\",\n              \"cardExpiryDate\": {\n                \"month\": 5,\n                \"year\": 2035\n              },\n              \"billingAddress\": {\n                \"address1\": \"221B Baker Street\",\n                \"address2\": \"Marylebone\",\n                \"address3\": \"Westminster\",\n                \"postalCode\": \"NW1 6XE\",\n                \"city\": \"London\",\n                \"state\": \"Greater London\",\n                \"countryCode\": \"GB\"\n              }\n            },\n            \"value\": {\n              \"currency\": \"GBP\",\n              \"amount\": 250\n            }\n          },\n          \"deviceData\": {\n            \"provider\": {\n              \"name\": \"ravelin\",\n              \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n            },\n            \"ipAddress\": \"192.0.0.0\"\n          },\n          \"riskData\": {\n            \"account\": {\n              \"email\": \"sherlock.holmes@example.com\",\n              \"dateOfBirth\": \"1854-01-06\",\n              \"shopperId\": \"id123\"\n            },\n            \"transaction\": {\n              \"firstName\": \"Sherlock\",\n              \"lastName\": \"Holmes\",\n              \"phoneNumber\": \"02031234321\"\n            },\n            \"shipping\": {\n              \"firstName\": \"James\",\n              \"lastName\": \"Moriarty\",\n              \"address\": {\n                \"address1\": \"The Palatine Centre\",\n                \"address2\": \"Durham University\",\n                \"address3\": \"Stockton Road\",\n                \"postalCode\": \"DH1 3LE\",\n                \"city\": \"Durham\",\n                \"state\": \"County Durham\",\n                \"countryCode\": \"GB\",\n                \"phoneNumber\": \"01911234321\"\n              }\n            },\n            \"custom\": {\n              \"number1\": 1,\n              \"number2\": 2,\n              \"number3\": 3,\n              \"number4\": 4,\n              \"number5\": 5,\n              \"number6\": 6,\n              \"number7\": 7,\n              \"number8\": 8,\n              \"number9\": 9,\n              \"string1\": \"text1\",\n              \"string2\": \"text2\",\n              \"string3\": \"text3\",\n              \"string4\": \"text4\",\n              \"string5\": \"text5\",\n              \"string6\": \"text6\",\n              \"string7\": \"text7\",\n              \"string8\": \"text8\",\n              \"string9\": \"text9\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\"\n  payload := strings.NewReader(\"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/plain+masked\\\",\\n      \\\"cardBin\\\": \\\"444411\\\",\\n      \\\"lastFour\\\": \\\"4321\\\",\\n      \\\"reference\\\": \\\"bf94b2ca-ecce-4e6f-bb38-a77dd8a21156\\\",\\n      \\\"cardExpiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"London\\\",\\n        \\\"state\\\": \\\"Greater London\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1854-01-06\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"02031234321\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.fraudsight-v1.hal+json\",\n    \"Content-Type: application/vnd.worldpay.fraudsight-v1.hal+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/plain+masked\\\",\\n      \\\"cardBin\\\": \\\"444411\\\",\\n      \\\"lastFour\\\": \\\"4321\\\",\\n      \\\"reference\\\": \\\"bf94b2ca-ecce-4e6f-bb38-a77dd8a21156\\\",\\n      \\\"cardExpiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"London\\\",\\n        \\\"state\\\": \\\"Greater London\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1854-01-06\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"02031234321\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/vnd.worldpay.fraudsight-v1.hal+json'\nrequest['Accept'] = 'application/vnd.worldpay.fraudsight-v1.hal+json'\nrequest.body = \"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/plain+masked\\\",\\n      \\\"cardBin\\\": \\\"444411\\\",\\n      \\\"lastFour\\\": \\\"4321\\\",\\n      \\\"reference\\\": \\\"bf94b2ca-ecce-4e6f-bb38-a77dd8a21156\\\",\\n      \\\"cardExpiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"London\\\",\\n        \\\"state\\\": \\\"Greater London\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1854-01-06\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"02031234321\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"Card + SCA Exemption request","disable":false},"children":[{"$$mdtype":"Tag","name":"OpenApiCodeSample","attributes":{"descriptionFile":"api-docs-products/fraudsight/@v1/openapi.yaml","operationId":"assessment","exampleKey":"card/front (request exemption)","parameters":{},"environments":{},"codeSamplesResolved":[{"lang":"json","title":"Payload application/vnd.worldpay.fraudsight-v1.hal+json","source":"{\n  \"transactionReference\": \"Memory265-13/08/1876\",\n  \"merchant\": {\n    \"entity\": \"default\"\n  },\n  \"exemption\": {\n    \"capability\": \"authorizationAndAuthentication\",\n    \"request\": {\n      \"placement\": \"authorization\",\n      \"type\": \"lowValue\"\n    }\n  },\n  \"instruction\": {\n    \"paymentInstrument\": {\n      \"type\": \"card/front\",\n      \"cardHolderName\": \"Sherlock Holmes\",\n      \"cardNumber\": \"4444333322221111\",\n      \"cardExpiryDate\": {\n        \"month\": 5,\n        \"year\": 2035\n      },\n      \"billingAddress\": {\n        \"address1\": \"221B Baker Street\",\n        \"address2\": \"Marylebone\",\n        \"address3\": \"Westminster\",\n        \"postalCode\": \"NW1 6XE\",\n        \"city\": \"London\",\n        \"state\": \"Greater London\",\n        \"countryCode\": \"GB\"\n      }\n    },\n    \"value\": {\n      \"currency\": \"GBP\",\n      \"amount\": 250\n    }\n  },\n  \"deviceData\": {\n    \"provider\": {\n      \"name\": \"ravelin\",\n      \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n    },\n    \"ipAddress\": \"192.0.0.0\"\n  },\n  \"riskData\": {\n    \"account\": {\n      \"email\": \"sherlock.holmes@example.com\",\n      \"dateOfBirth\": \"1990-09-09\",\n      \"shopperId\": \"id123\"\n    },\n    \"transaction\": {\n      \"firstName\": \"Sherlock\",\n      \"lastName\": \"Holmes\",\n      \"phoneNumber\": \"00000000000000\"\n    },\n    \"shipping\": {\n      \"firstName\": \"James\",\n      \"lastName\": \"Moriarty\",\n      \"address\": {\n        \"address1\": \"The Palatine Centre\",\n        \"address2\": \"Durham University\",\n        \"address3\": \"Stockton Road\",\n        \"postalCode\": \"DH1 3LE\",\n        \"city\": \"Durham\",\n        \"state\": \"County Durham\",\n        \"countryCode\": \"GB\",\n        \"phoneNumber\": \"01911234321\"\n      }\n    },\n    \"custom\": {\n      \"number1\": 1,\n      \"number2\": 2,\n      \"number3\": 3,\n      \"number4\": 4,\n      \"number5\": 5,\n      \"number6\": 6,\n      \"number7\": 7,\n      \"number8\": 8,\n      \"number9\": 9,\n      \"string1\": \"text1\",\n      \"string2\": \"text2\",\n      \"string3\": \"text3\",\n      \"string4\": \"text4\",\n      \"string5\": \"text5\",\n      \"string6\": \"text6\",\n      \"string7\": \"text7\",\n      \"string8\": \"text8\",\n      \"string9\": \"text9\"\n    }\n  }\n}"},{"lang":"shell","title":"curl","source":"curl -i -X POST \\\n  https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment \\\n  -H 'Accept: application/vnd.worldpay.fraudsight-v1.hal+json' \\\n  -H 'Content-Type: application/vnd.worldpay.fraudsight-v1.hal+json' \\\n  -d '{\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"exemption\": {\n      \"capability\": \"authorizationAndAuthentication\",\n      \"request\": {\n        \"placement\": \"authorization\",\n        \"type\": \"lowValue\"\n      }\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/front\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"cardNumber\": \"4444333322221111\",\n        \"cardExpiryDate\": {\n          \"month\": 5,\n          \"year\": 2035\n        },\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"value\": {\n        \"currency\": \"GBP\",\n        \"amount\": 250\n      }\n    },\n    \"deviceData\": {\n      \"provider\": {\n        \"name\": \"ravelin\",\n        \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n      },\n      \"ipAddress\": \"192.0.0.0\"\n    },\n    \"riskData\": {\n      \"account\": {\n        \"email\": \"sherlock.holmes@example.com\",\n        \"dateOfBirth\": \"1990-09-09\",\n        \"shopperId\": \"id123\"\n      },\n      \"transaction\": {\n        \"firstName\": \"Sherlock\",\n        \"lastName\": \"Holmes\",\n        \"phoneNumber\": \"00000000000000\"\n      },\n      \"shipping\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"address\": {\n          \"address1\": \"The Palatine Centre\",\n          \"address2\": \"Durham University\",\n          \"address3\": \"Stockton Road\",\n          \"postalCode\": \"DH1 3LE\",\n          \"city\": \"Durham\",\n          \"state\": \"County Durham\",\n          \"countryCode\": \"GB\",\n          \"phoneNumber\": \"01911234321\"\n        }\n      },\n      \"custom\": {\n        \"number1\": 1,\n        \"number2\": 2,\n        \"number3\": 3,\n        \"number4\": 4,\n        \"number5\": 5,\n        \"number6\": 6,\n        \"number7\": 7,\n        \"number8\": 8,\n        \"number9\": 9,\n        \"string1\": \"text1\",\n        \"string2\": \"text2\",\n        \"string3\": \"text3\",\n        \"string4\": \"text4\",\n        \"string5\": \"text5\",\n        \"string6\": \"text6\",\n        \"string7\": \"text7\",\n        \"string8\": \"text8\",\n        \"string9\": \"text9\"\n      }\n    }\n  }'"},{"lang":"python","title":"Python","source":"import requests\n\nurl = \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\"\n\npayload = '''\n  {\n    \"transactionReference\": \"Memory265-13/08/1876\",\n    \"merchant\": {\n      \"entity\": \"default\"\n    },\n    \"exemption\": {\n      \"capability\": \"authorizationAndAuthentication\",\n      \"request\": {\n        \"placement\": \"authorization\",\n        \"type\": \"lowValue\"\n      }\n    },\n    \"instruction\": {\n      \"paymentInstrument\": {\n        \"type\": \"card/front\",\n        \"cardHolderName\": \"Sherlock Holmes\",\n        \"cardNumber\": \"4444333322221111\",\n        \"cardExpiryDate\": {\n          \"month\": 5,\n          \"year\": 2035\n        },\n        \"billingAddress\": {\n          \"address1\": \"221B Baker Street\",\n          \"address2\": \"Marylebone\",\n          \"address3\": \"Westminster\",\n          \"postalCode\": \"NW1 6XE\",\n          \"city\": \"London\",\n          \"state\": \"Greater London\",\n          \"countryCode\": \"GB\"\n        }\n      },\n      \"value\": {\n        \"currency\": \"GBP\",\n        \"amount\": 250\n      }\n    },\n    \"deviceData\": {\n      \"provider\": {\n        \"name\": \"ravelin\",\n        \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n      },\n      \"ipAddress\": \"192.0.0.0\"\n    },\n    \"riskData\": {\n      \"account\": {\n        \"email\": \"sherlock.holmes@example.com\",\n        \"dateOfBirth\": \"1990-09-09\",\n        \"shopperId\": \"id123\"\n      },\n      \"transaction\": {\n        \"firstName\": \"Sherlock\",\n        \"lastName\": \"Holmes\",\n        \"phoneNumber\": \"00000000000000\"\n      },\n      \"shipping\": {\n        \"firstName\": \"James\",\n        \"lastName\": \"Moriarty\",\n        \"address\": {\n          \"address1\": \"The Palatine Centre\",\n          \"address2\": \"Durham University\",\n          \"address3\": \"Stockton Road\",\n          \"postalCode\": \"DH1 3LE\",\n          \"city\": \"Durham\",\n          \"state\": \"County Durham\",\n          \"countryCode\": \"GB\",\n          \"phoneNumber\": \"01911234321\"\n        }\n      },\n      \"custom\": {\n        \"number1\": 1,\n        \"number2\": 2,\n        \"number3\": 3,\n        \"number4\": 4,\n        \"number5\": 5,\n        \"number6\": 6,\n        \"number7\": 7,\n        \"number8\": 8,\n        \"number9\": 9,\n        \"string1\": \"text1\",\n        \"string2\": \"text2\",\n        \"string3\": \"text3\",\n        \"string4\": \"text4\",\n        \"string5\": \"text5\",\n        \"string6\": \"text6\",\n        \"string7\": \"text7\",\n        \"string8\": \"text8\",\n        \"string9\": \"text9\"\n      }\n    }\n  }\n'''\n\nheaders = {\n  \"Content-Type\": \"application/vnd.worldpay.fraudsight-v1.hal+json\",\n  \"Accept\": \"application/vnd.worldpay.fraudsight-v1.hal+json\"\n}\n\nresponse = requests.post(url, data=payload, headers=headers)\n\ndata = response.json()\nprint(data)"},{"lang":"java","title":"Java","source":"import java.net.*;\nimport java.net.http.*;\nimport java.util.*;\n\npublic class App {\n  public static void main(String[] args) throws Exception {\n    var httpClient = HttpClient.newBuilder().build();\n\n    var host = \"https://try.access.worldpay-bsh.securedataplatform.co.uk\";\n    var pathname = \"/fraudsight/assessment\";\n    var request = HttpRequest.newBuilder()\n      .POST(HttpRequest.BodyPublishers.ofString(payload))\n      .uri(URI.create(host + pathname ))\n      .header(\"Content-Type\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n      .header(\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n      .build();\n\n    var response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());\n\n    System.out.println(response.body());\n  }\n}"},{"lang":"javascript","title":"Node.js","source":"import fetch from 'node-fetch';\n\nasync function run() {\n  const resp = await fetch(\n    `https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment`,\n    {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/vnd.worldpay.fraudsight-v1.hal+json',\n        Accept: 'application/vnd.worldpay.fraudsight-v1.hal+json'\n      },\n      body: `{\n          \"transactionReference\": \"Memory265-13/08/1876\",\n          \"merchant\": {\n            \"entity\": \"default\"\n          },\n          \"exemption\": {\n            \"capability\": \"authorizationAndAuthentication\",\n            \"request\": {\n              \"placement\": \"authorization\",\n              \"type\": \"lowValue\"\n            }\n          },\n          \"instruction\": {\n            \"paymentInstrument\": {\n              \"type\": \"card/front\",\n              \"cardHolderName\": \"Sherlock Holmes\",\n              \"cardNumber\": \"4444333322221111\",\n              \"cardExpiryDate\": {\n                \"month\": 5,\n                \"year\": 2035\n              },\n              \"billingAddress\": {\n                \"address1\": \"221B Baker Street\",\n                \"address2\": \"Marylebone\",\n                \"address3\": \"Westminster\",\n                \"postalCode\": \"NW1 6XE\",\n                \"city\": \"London\",\n                \"state\": \"Greater London\",\n                \"countryCode\": \"GB\"\n              }\n            },\n            \"value\": {\n              \"currency\": \"GBP\",\n              \"amount\": 250\n            }\n          },\n          \"deviceData\": {\n            \"provider\": {\n              \"name\": \"ravelin\",\n              \"collectionReference\": \"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\"\n            },\n            \"ipAddress\": \"192.0.0.0\"\n          },\n          \"riskData\": {\n            \"account\": {\n              \"email\": \"sherlock.holmes@example.com\",\n              \"dateOfBirth\": \"1990-09-09\",\n              \"shopperId\": \"id123\"\n            },\n            \"transaction\": {\n              \"firstName\": \"Sherlock\",\n              \"lastName\": \"Holmes\",\n              \"phoneNumber\": \"00000000000000\"\n            },\n            \"shipping\": {\n              \"firstName\": \"James\",\n              \"lastName\": \"Moriarty\",\n              \"address\": {\n                \"address1\": \"The Palatine Centre\",\n                \"address2\": \"Durham University\",\n                \"address3\": \"Stockton Road\",\n                \"postalCode\": \"DH1 3LE\",\n                \"city\": \"Durham\",\n                \"state\": \"County Durham\",\n                \"countryCode\": \"GB\",\n                \"phoneNumber\": \"01911234321\"\n              }\n            },\n            \"custom\": {\n              \"number1\": 1,\n              \"number2\": 2,\n              \"number3\": 3,\n              \"number4\": 4,\n              \"number5\": 5,\n              \"number6\": 6,\n              \"number7\": 7,\n              \"number8\": 8,\n              \"number9\": 9,\n              \"string1\": \"text1\",\n              \"string2\": \"text2\",\n              \"string3\": \"text3\",\n              \"string4\": \"text4\",\n              \"string5\": \"text5\",\n              \"string6\": \"text6\",\n              \"string7\": \"text7\",\n              \"string8\": \"text8\",\n              \"string9\": \"text9\"\n            }\n          }\n        }`\n    }\n  );\n\n  const data = await resp.text();\n  console.log(data);\n}\n\nrun();"},{"lang":"go","title":"Go","source":"package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n  reqUrl := \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\"\n  payload := strings.NewReader(\"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"exemption\\\": {\\n    \\\"capability\\\": \\\"authorizationAndAuthentication\\\",\\n    \\\"request\\\": {\\n      \\\"placement\\\": \\\"authorization\\\",\\n      \\\"type\\\": \\\"lowValue\\\"\\n    }\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/front\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"cardExpiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"London\\\",\\n        \\\"state\\\": \\\"Greater London\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1990-09-09\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"00000000000000\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\")\n  req, err := http.NewRequest(\"POST\", reqUrl, payload)\n  if err != nil {\n    panic(err)\n  }\n  req.Header.Add(\"Content-Type\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n  req.Header.Add(\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\")\n  res, err := http.DefaultClient.Do(req)\n  if err != nil {\n    panic(err)\n  }\n  defer res.Body.Close()\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    panic(err)\n  }\n\n  fmt.Println(res)\n  fmt.Println(string(body))\n}"},{"lang":"php","title":"PHP","source":"/**\n * Requires libcurl\n */\n\n$curl = curl_init();\n\ncurl_setopt_array($curl, [\n  CURLOPT_HTTPHEADER => [\n    \"Accept: application/vnd.worldpay.fraudsight-v1.hal+json\",\n    \"Content-Type: application/vnd.worldpay.fraudsight-v1.hal+json\"\n  ],\n  CURLOPT_POSTFIELDS => \"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"exemption\\\": {\\n    \\\"capability\\\": \\\"authorizationAndAuthentication\\\",\\n    \\\"request\\\": {\\n      \\\"placement\\\": \\\"authorization\\\",\\n      \\\"type\\\": \\\"lowValue\\\"\\n    }\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/front\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"cardExpiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"London\\\",\\n        \\\"state\\\": \\\"Greater London\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1990-09-09\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"00000000000000\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\",\n  CURLOPT_URL => \"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\",\n  CURLOPT_RETURNTRANSFER => true,\n  CURLOPT_CUSTOMREQUEST => \"POST\",\n]);\n\n$response = curl_exec($curl);\n$error = curl_error($curl);\n\ncurl_close($curl);\n\nif ($error) {\n  echo \"cURL Error #:\" . $error;\n} else {\n  echo $response;\n}"},{"lang":"ruby","title":"Ruby","source":"require 'uri'\nrequire 'net/http'\nrequire 'openssl'\n\nurl = URI('https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment')\n\nhttp = Net::HTTP.new(url.host, url.port)\nhttp.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest['Content-Type'] = 'application/vnd.worldpay.fraudsight-v1.hal+json'\nrequest['Accept'] = 'application/vnd.worldpay.fraudsight-v1.hal+json'\nrequest.body = \"{\\n  \\\"transactionReference\\\": \\\"Memory265-13/08/1876\\\",\\n  \\\"merchant\\\": {\\n    \\\"entity\\\": \\\"default\\\"\\n  },\\n  \\\"exemption\\\": {\\n    \\\"capability\\\": \\\"authorizationAndAuthentication\\\",\\n    \\\"request\\\": {\\n      \\\"placement\\\": \\\"authorization\\\",\\n      \\\"type\\\": \\\"lowValue\\\"\\n    }\\n  },\\n  \\\"instruction\\\": {\\n    \\\"paymentInstrument\\\": {\\n      \\\"type\\\": \\\"card/front\\\",\\n      \\\"cardHolderName\\\": \\\"Sherlock Holmes\\\",\\n      \\\"cardNumber\\\": \\\"4444333322221111\\\",\\n      \\\"cardExpiryDate\\\": {\\n        \\\"month\\\": 5,\\n        \\\"year\\\": 2035\\n      },\\n      \\\"billingAddress\\\": {\\n        \\\"address1\\\": \\\"221B Baker Street\\\",\\n        \\\"address2\\\": \\\"Marylebone\\\",\\n        \\\"address3\\\": \\\"Westminster\\\",\\n        \\\"postalCode\\\": \\\"NW1 6XE\\\",\\n        \\\"city\\\": \\\"London\\\",\\n        \\\"state\\\": \\\"Greater London\\\",\\n        \\\"countryCode\\\": \\\"GB\\\"\\n      }\\n    },\\n    \\\"value\\\": {\\n      \\\"currency\\\": \\\"GBP\\\",\\n      \\\"amount\\\": 250\\n    }\\n  },\\n  \\\"deviceData\\\": {\\n    \\\"provider\\\": {\\n      \\\"name\\\": \\\"ravelin\\\",\\n      \\\"collectionReference\\\": \\\"rjs-25998f27-ed8d-4b71-a516-d3147f695f20\\\"\\n    },\\n    \\\"ipAddress\\\": \\\"192.0.0.0\\\"\\n  },\\n  \\\"riskData\\\": {\\n    \\\"account\\\": {\\n      \\\"email\\\": \\\"sherlock.holmes@example.com\\\",\\n      \\\"dateOfBirth\\\": \\\"1990-09-09\\\",\\n      \\\"shopperId\\\": \\\"id123\\\"\\n    },\\n    \\\"transaction\\\": {\\n      \\\"firstName\\\": \\\"Sherlock\\\",\\n      \\\"lastName\\\": \\\"Holmes\\\",\\n      \\\"phoneNumber\\\": \\\"00000000000000\\\"\\n    },\\n    \\\"shipping\\\": {\\n      \\\"firstName\\\": \\\"James\\\",\\n      \\\"lastName\\\": \\\"Moriarty\\\",\\n      \\\"address\\\": {\\n        \\\"address1\\\": \\\"The Palatine Centre\\\",\\n        \\\"address2\\\": \\\"Durham University\\\",\\n        \\\"address3\\\": \\\"Stockton Road\\\",\\n        \\\"postalCode\\\": \\\"DH1 3LE\\\",\\n        \\\"city\\\": \\\"Durham\\\",\\n        \\\"state\\\": \\\"County Durham\\\",\\n        \\\"countryCode\\\": \\\"GB\\\",\\n        \\\"phoneNumber\\\": \\\"01911234321\\\"\\n      }\\n    },\\n    \\\"custom\\\": {\\n      \\\"number1\\\": 1,\\n      \\\"number2\\\": 2,\\n      \\\"number3\\\": 3,\\n      \\\"number4\\\": 4,\\n      \\\"number5\\\": 5,\\n      \\\"number6\\\": 6,\\n      \\\"number7\\\": 7,\\n      \\\"number8\\\": 8,\\n      \\\"number9\\\": 9,\\n      \\\"string1\\\": \\\"text1\\\",\\n      \\\"string2\\\": \\\"text2\\\",\\n      \\\"string3\\\": \\\"text3\\\",\\n      \\\"string4\\\": \\\"text4\\\",\\n      \\\"string5\\\": \\\"text5\\\",\\n      \\\"string6\\\": \\\"text6\\\",\\n      \\\"string7\\\": \\\"text7\\\",\\n      \\\"string8\\\": \\\"text8\\\",\\n      \\\"string9\\\": \\\"text9\\\"\\n    }\\n  }\\n}\"\n\nresponse = http.request(request)\nputs response.read_body\n"},{"lang":"csharp","title":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Threading.Tasks;\n\npublic class Program\n{\n  public static async Task Main()\n  {\n    System.Net.Http.HttpClient client = new()\n    {\n      DefaultRequestHeaders =\n      {\n        {\"Accept\", \"application/vnd.worldpay.fraudsight-v1.hal+json\"},\n      }\n    };\n\n    using HttpResponseMessage request = await client.PostAsync(\"https://try.access.worldpay-bsh.securedataplatform.co.uk/fraudsight/assessment\", postData);\n    string response = await request.Content.ReadAsStringAsync();\n\n    Console.WriteLine(response);\n  }\n}"}]},"children":[]}]}]},{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":3,"cardMinWidth":180},"children":[{"$$mdtype":"Tag","name":"Card","attributes":{"title":"View the full API request schema","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"center","variant":"outlined","to":"/products/fraudsight/openapi/other/assessment#other/assessment/request"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"assessment-responses","__idx":2},"children":["Assessment responses"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The response contains the outcome of your ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["assessment"]}," request."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"danger","name":"Linking the payment"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You must apply the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskProfile"]}," from the FraudSight assessment response in the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-payments/authorize-a-payment#fraudsight"},"children":["Card Payments API"]}," to link the Worldpay payment. This allows the data model mature and identify fraudulent transactions. Alternatively make additional ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/fraudsight/update"},"children":["FraudSight update"]}," requests."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/fraudsight/assessment#linking-the-fraudsight-assessment"},"children":["linking the FraudSight assessment"]}," for details."]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Note:"},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When manually created risk assessment rules are triggered, the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["score"]}," is ignored. It is therefore possible to see an assessment with a low score but still with a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["highRisk"]}," outcome."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["outcome"]}," is always specific to the fraud assessment. If an exemption is provided the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["exemption.type"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["exemption.placement"]}," is included in the response."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["We return a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WP-CorrelationId"]}," in the headers of service responses. We ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["highly recommend"]}," you log this. We can use the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["WP-CorrelationId"]}," to examine individual service requests."]}]}]}]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"lowRisk","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/assessment-response-low-risk.yaml","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"    {\n        \"outcome\": \"lowRisk\",\n        \"transactionReference\": \"123456\",\n        \"score\": 44.2,\n        \"riskProfile\": {\n            \"href\": \"https://access.worldpay-bsh.securedataplatform.co.uk/riskprofile/eyJrIjoxLCJkIjoialRBL0FFelBzcnZ\"\n        }\n    }"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"highRisk","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/assessment-response-high-risk.yaml","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"    {\n        \"outcome\": \"highRisk\",\n        \"transactionReference\": \"123456\",\n        \"reason\": [\n            \"Recent unexpected card activity\"\n        ],\n        \"score\": 97.4,\n        \"riskProfile\": {\n            \"href\": \"https://access.worldpay-bsh.securedataplatform.co.uk/riskprofile/eyJrIjoxLCJkIjoialRBL0FFelBzcnZ\"\n        }\n    }"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"review","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/assessment-response-review.yaml","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"    {\n        \"outcome\": \"review\",\n        \"transactionReference\": \"123456\",\n        \"reason\": [\n            \"Recent unexpected card activity\"\n        ],\n        \"score\": 85.5,\n        \"riskProfile\": {\n            \"href\": \"https://access.worldpay-bsh.securedataplatform.co.uk/riskprofile/eyJrIjoxLCJkIjoialRBL0FFelBzcnZ\"\n        }\n    }"},"children":[]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["exemption"]}," object is used in the request:"]},{"$$mdtype":"Tag","name":"Tabs","attributes":{"size":"medium"},"children":[{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"lowRisk + exemption(authorization/lowValue)","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/assessment-response-low-risk-with-exemption.yaml","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"    {\n        \"outcome\": \"lowRisk\",\n        \"transactionReference\": \"123456\",\n        \"score\": 44.2,\n        \"exemption\": {\n            \"placement\": \"authorization\",\n            \"type\": \"lowValue\"\n        },\n        \"riskProfile\": {\n            \"href\": \"https://access.worldpay-bsh.securedataplatform.co.uk/riskprofile/eyJrIjoxLCJkIjoialRBL0FFelBzcnZ\"\n        }\n    }"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"lowRisk + exemption(authorization/lowRisk)","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/assessment-response-low-risk-with-exemption-lowrisk.yaml","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"    {\n        \"outcome\": \"lowRisk\",\n        \"transactionReference\": \"123456\",\n        \"score\": 44.2,\n        \"exemption\": {\n            \"placement\": \"authorization\",\n            \"type\": \"lowRisk\"\n        },\n        \"riskProfile\": {\n            \"href\": \"https://access.worldpay-bsh.securedataplatform.co.uk/riskprofile/eyJrIjoxLCJkIjoialRBL0FFelBzcnZ\"\n        }\n    }"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"lowRisk + exemption(authentication/lowRisk)","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/assessment-response-low-risk-with-exemption-authentication.yaml","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"    {\n        \"outcome\": \"lowRisk\",\n        \"transactionReference\": \"123456\",\n        \"score\": 44.2,\n        \"exemption\": {\n            \"placement\": \"authentication\",\n            \"type\": \"lowRisk\"\n        },\n        \"riskProfile\": {\n            \"href\": \"https://access.worldpay-bsh.securedataplatform.co.uk/riskprofile/eyJrIjoxLCJkIjoialRBL0FFelBzcnZ\"\n        }\n    }"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"highRisk + exemption","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/assessment-response-high-risk-with-exemption.yaml","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"    {\n        \"outcome\": \"highRisk\",\n        \"transactionReference\": \"123456\",\n        \"reason\": [\n            \"Recent unexpected card activity\"\n        ],\n        \"score\": 97.4,\n        \"exemption\": {\n            \"placement\": \"authorization\",\n            \"type\": \"lowValue\"\n        },\n        \"riskProfile\": {\n            \"href\": \"https://access.worldpay-bsh.securedataplatform.co.uk/riskprofile/eyJrIjoxLCJkIjoialRBL0FFelBzcnZ\"\n        }\n    }"},"children":[]}]},{"$$mdtype":"Tag","name":"TabItemFragment","attributes":{"label":"review + exemption","disable":false},"children":[{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"file":"./code/assessment-response-review-with-exemption.yaml","language":"json","header":{"controls":{"copy":{}}},"lang":"json","source":"    {\n        \"outcome\": \"review\",\n        \"transactionReference\": \"123456\",\n        \"reason\": [\n            \"Recent unexpected card activity\"\n        ],\n        \"score\": 85.5,\n        \"exemption\": {\n            \"placement\": \"authorization\",\n            \"type\": \"lowValue\"\n        },\n        \"riskProfile\": {\n            \"href\": \"https://access.worldpay-bsh.securedataplatform.co.uk/riskprofile/eyJrIjoxLCJkIjoialRBL0FFelBzcnZ\"\n        }\n    }"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Cards","attributes":{"columns":3,"cardMinWidth":180},"children":[{"$$mdtype":"Tag","name":"Card","attributes":{"title":"View the full API response schema","imagePosition":"start","iconPosition":"auto","layout":"vertical","align":"center","variant":"outlined","to":"/products/fraudsight/openapi/other/assessment#other/assessment/response&c=200"},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"linking-the-fraudsight-assessment","__idx":3},"children":["Linking the FraudSight assessment"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To improve future risk assessments we need to know the outcome of the payment authorization."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you are using our ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-payments/"},"children":["Card Payments API"]},", apply the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskProfile"]}," provided in the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-payments/authorize-a-payment#fraudsight"},"children":["payment authorization"]}," request."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you are using another payment provider use the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/fraudsight/update"},"children":["FraudSight update"]}," resources."]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"applying-the-exemption-if-applicable","__idx":4},"children":["Applying the exemption (if applicable)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is only a consideration if you're using the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["exemption"]}," object in the request:"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"if-the-placement-is-authorization","__idx":5},"children":["If the placement is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["authorization"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["apply the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskProfile"]}," in the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-payments/authorize-a-payment#fraudsight"},"children":["payment authorization"]}," request"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the event that the exemption is not successful (honoured + authorized) when applied to the payment, the issuer responds with a soft decline (",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/reference/refusal-response"},"children":["refusal code 65"]},"). The next logical step is to proceed with ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/3ds"},"children":["3DS authentication"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"if-the-placement-is-authentication","__idx":6},"children":["If the placement is ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["authentication"]}]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["set the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["challenge.preference"]}," in the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/3ds/web/authentication"},"children":["3DS authentication"]}," to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["noChallengeRequestedTRAPerformed"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["apply the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskProfile"]}," in the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-payments/authorize-a-payment#fraudsight"},"children":["payment authorization"]}," request"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"if-no-exemption-is-provided","__idx":7},"children":["If no exemption is provided"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["perform ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/3ds"},"children":["3DS authentication"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["apply the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["riskProfile"]}," in the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/card-payments/authorize-a-payment#fraudsight"},"children":["payment authorization"]}," request. Without this, the data model will not improve over time"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Next steps"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/fraudsight/testing"},"children":["FraudSight testing"]}]}]},"headings":[{"value":"Fraud assessment","id":"fraud-assessment","depth":1},{"value":"Assessment example request","id":"assessment-example-request","depth":2},{"value":"Assessment responses","id":"assessment-responses","depth":2},{"value":"Linking the FraudSight assessment","id":"linking-the-fraudsight-assessment","depth":2},{"value":"Applying the exemption (if applicable)","id":"applying-the-exemption-if-applicable","depth":2},{"value":"If the placement is authorization","id":"if-the-placement-is-authorization","depth":4},{"value":"If the placement is authentication","id":"if-the-placement-is-authentication","depth":4},{"value":"If no exemption is provided","id":"if-no-exemption-is-provided","depth":4}],"frontmatter":{"seo":{"title":"Fraud assessment"}},"lastModified":"2026-02-13T11:40:37.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/fraudsight/assessment","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}