{
	"info": {
		"_postman_id": "8f78683c-f86c-426f-903d-76301de45872",
		"name": "FraudSight",
		"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
		"_exporter_id": "7202534"
	},
	"item": [
		{
			"name": "Assessment",
			"item": [
				{
					"name": "Assessment (Plain)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"let transactionReference = pm.response.json().transactionReference;",
									"let riskProfile = pm.response.json().riskProfile.href;",
									"",
									"",
									"pm.collectionVariables.set('transactionReference', transactionReference);",
									"pm.collectionVariables.set('riskProfile', riskProfile);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "{{version}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "{{version}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"transactionReference\": \"{{$guid}}\",\n  \"merchant\": {\n    \"entity\": \"{{entity}}\"\n  },\n  \"instruction\": {\n    \"paymentInstrument\": {\n      \"type\": \"card/front\",\n      \"cardHolderName\": \"fs-lowRisk\", // test value\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    \"collectionReference\": \"0_4XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX8G6\",\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}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{environment}}/fraudsight/assessment",
							"protocol": "https",
							"host": [
								"{{environment}}"
							],
							"path": [
								"fraudsight",
								"assessment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Assessment (Worldpay Token)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"let transactionReference = pm.response.json().transactionReference;",
									"",
									"pm.collectionVariables.set('transactionReference', transactionReference);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "{{version}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "{{version}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"transactionReference\": \"{{$guid}}\",\n  \"merchant\": {\n    \"entity\": \"{{entity}}\"\n  },\n  \"instruction\": {\n    \"paymentInstrument\": {\n      \"type\": \"card/tokenized\",\n      \"href\": \"https://try.access.worldpay.com/tokens/MTIzNDU2Nzg5MD...\"\n    },\n    \"value\": {\n      \"currency\": \"GBP\",\n      \"amount\": 250\n    }\n  },\n  \"deviceData\": {\n    \"collectionReference\": \"0_4XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX8G6\",\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}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{environment}}/fraudsight/assessment",
							"protocol": "https",
							"host": [
								"{{environment}}"
							],
							"path": [
								"fraudsight",
								"assessment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Assessment (Network Token)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"let transactionReference = pm.response.json().transactionReference;",
									"",
									"pm.collectionVariables.set('transactionReference', transactionReference);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "{{version}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "{{version}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"transactionReference\": \"{{$guid}}\",\n  \"merchant\": {\n    \"entity\": \"{{entity}}\"\n  },\n  \"instruction\": {\n  \"paymentInstrument\": {\n    \"type\": \"card/networkToken\",\n    \"tokenNumber\": \"4444333322221111\",\n      \"cardHolderName\": \"fs-lowRisk\", // test value\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    \"collectionReference\": \"0_4XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX8G6\",\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}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{environment}}/fraudsight/assessment",
							"protocol": "https",
							"host": [
								"{{environment}}"
							],
							"path": [
								"fraudsight",
								"assessment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Assessment (Plain) + Request Exemption",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"let transactionReference = pm.response.json().transactionReference;",
									"",
									"pm.collectionVariables.set('transactionReference', transactionReference);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "{{version}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "{{version}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"transactionReference\": \"{{$guid}}\",\n  \"merchant\": {\n    \"entity\": \"{{entity}}\"\n  },\n  \"requestExemption\": true,\n  \"instruction\": {\n    \"paymentInstrument\": {\n      \"type\": \"card/front\",\n      \"cardHolderName\": \"fs-lowRisk.ex-exemption-lowRisk-authorization\", // test value\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    \"collectionReference\": \"0_4XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX8G6\",\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}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{environment}}/fraudsight/assessment",
							"protocol": "https",
							"host": [
								"{{environment}}"
							],
							"path": [
								"fraudsight",
								"assessment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Assessment (Plain+Masked)",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"let transactionReference = pm.response.json().transactionReference;",
									"",
									"pm.collectionVariables.set('transactionReference', transactionReference);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "{{version}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "{{version}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"transactionReference\": \"{{$guid}}\",\n  \"merchant\": {\n    \"entity\": \"{{entity}}\"\n  },\n  \"instruction\": {\n    \"paymentInstrument\": {\n      \"type\": \"card/plain+masked\",\n      \"cardHolderName\": \"fs-lowRisk\", // test value\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    \"collectionReference\": \"0_4XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX8G6\",\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}",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{environment}}/fraudsight/assessment",
							"protocol": "https",
							"host": [
								"{{environment}}"
							],
							"path": [
								"fraudsight",
								"assessment"
							]
						}
					},
					"response": []
				}
			]
		},
		{
			"name": "Update",
			"item": [
				{
					"name": "Payment",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"let transactionReference = pm.response.json().transactionReference;",
									"",
									"pm.collectionVariables.set('transactionReference', transactionReference);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "{{version}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "{{version}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"transactionReference\": \"{{transactionReference}}\",\n  \"merchant\": {\n    \"entity\": \"{{entity}}\"\n  },\n  \"riskProfile\": \"{{riskProfile}}\",\n  \"paymentOutcome\": \"authorized\",\n  \"cvcResult\": \"matched\",\n  \"avsResult\": {\n    \"address\": \"matched\",\n    \"postcode\": \"matched\"\n  },\n  \"authentication\": {\n    \"version\": \"2.1.0\",\n    \"eci\": \"05\"\n  }\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{environment}}/fraudsight/update/payment",
							"protocol": "https",
							"host": [
								"{{environment}}"
							],
							"path": [
								"fraudsight",
								"update",
								"payment"
							]
						}
					},
					"response": []
				},
				{
					"name": "Fraud",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"let transactionReference = pm.response.json().transactionReference;",
									"",
									"pm.collectionVariables.set('transactionReference', transactionReference);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "{{version}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "{{version}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"transactionReference\": \"{{transactionReference}}\",\n  \"merchant\": {\n    \"entity\": \"{{entity}}\"\n  },\n  \"riskProfile\": \"{{riskProfile}}\",\n  \"source\": \"TC40\",\n  \"sourceDate\": \"2020-12-27T00:00:00Z\",\n  \"acquirerReference\": \"02691780344910023278387\",\n  \"fraudReasonCode\": \"5\",\n  \"value\": {\n    \"currency\": \"GBP\",\n    \"amount\": 250\n  }\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{environment}}/fraudsight/update/fraud",
							"protocol": "https",
							"host": [
								"{{environment}}"
							],
							"path": [
								"fraudsight",
								"update",
								"fraud"
							]
						}
					},
					"response": []
				},
				{
					"name": "Chargeback",
					"event": [
						{
							"listen": "test",
							"script": {
								"exec": [
									"let transactionReference = pm.response.json().transactionReference;",
									"",
									"pm.collectionVariables.set('transactionReference', transactionReference);"
								],
								"type": "text/javascript",
								"packages": {}
							}
						}
					],
					"request": {
						"method": "POST",
						"header": [
							{
								"key": "Content-Type",
								"value": "{{version}}",
								"type": "text"
							},
							{
								"key": "Accept",
								"value": "{{version}}",
								"type": "text"
							}
						],
						"body": {
							"mode": "raw",
							"raw": "{\n  \"transactionReference\": \"{{transactionReference}}\",\n  \"merchant\": {\n    \"entity\": \"{{entity}}\"\n  },\n  \"riskProfile\": \"{{riskProfile}}\",\n  \"sourceDate\": \"2020-12-27T00:00:00Z\",\n  \"acquirerReference\": \"02691780344910023278387\",\n  \"chargebackReasonCode\": \"31\",\n  \"chargebackCaseReference\": \"123456\",\n  \"chargebackValue\": {\n    \"currency\": \"GBP\",\n    \"amount\": 250\n  }\n}\n",
							"options": {
								"raw": {
									"language": "json"
								}
							}
						},
						"url": {
							"raw": "https://{{environment}}/fraudsight/update/chargeback",
							"protocol": "https",
							"host": [
								"{{environment}}"
							],
							"path": [
								"fraudsight",
								"update",
								"chargeback"
							]
						}
					},
					"response": []
				}
			]
		}
	],
	"auth": {
		"type": "basic",
		"basic": [
			{
				"key": "password",
				"value": "{{password}}",
				"type": "string"
			},
			{
				"key": "username",
				"value": "{{username}}",
				"type": "string"
			}
		]
	},
	"event": [
		{
			"listen": "prerequest",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		},
		{
			"listen": "test",
			"script": {
				"type": "text/javascript",
				"packages": {},
				"exec": [
					""
				]
			}
		}
	],
	"variable": [
		{
			"key": "username",
			"value": "",
			"type": "string"
		},
		{
			"key": "password",
			"value": "",
			"type": "string"
		},
		{
			"key": "version",
			"value": "application/vnd.worldpay.fraudsight-v1.hal+json",
			"type": "string"
		},
		{
			"key": "environment",
			"value": "try.access.worldpay.com",
			"type": "string"
		},
		{
			"key": "entity",
			"value": "default",
			"type": "string"
		},
		{
			"key": "transactionReference",
			"value": ""
		},
		{
			"key": "riskProfile",
			"value": ""
		}
	]
}