{
  "info": {
    "name": "OnSanctions",
    "description": "Enrol, rescreen, and withdraw. Replace apiKey with an OnSanctions key. Samples are synthetic.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "https://onsanctions.com" },
    { "key": "apiKey", "value": "" }
  ],
  "item": [
    {
      "name": "Enrol a person",
      "request": {
        "method": "POST",
        "header": [
          { "key": "x-api-key", "value": "{{apiKey}}" },
          { "key": "Idempotency-Key", "value": "{{$guid}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"SAMPLE MATCH PERSON\",\n  \"entity\": 0,\n  \"country\": \"GB\",\n  \"dataset\": \"sanctions\",\n  \"identifierType\": \"passport\",\n  \"identifierValue\": \"SAMPLE12345\",\n  \"identifierCountry\": \"GB\"\n}"
        },
        "url": "{{baseUrl}}/v1/screen"
      }
    },
    {
      "name": "Enrol a company",
      "request": {
        "method": "POST",
        "header": [
          { "key": "x-api-key", "value": "{{apiKey}}" },
          { "key": "Idempotency-Key", "value": "{{$guid}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"name\": \"SAMPLE MATCH COMPANY\",\n  \"entity\": 1,\n  \"country\": \"DE\",\n  \"dataset\": \"sanctions\",\n  \"identifierType\": \"lei\",\n  \"identifierValue\": \"SAMPLELEI01234567890\",\n  \"identifierCountry\": \"DE\"\n}"
        },
        "url": "{{baseUrl}}/v1/screen"
      }
    },
    {
      "name": "Withdraw a person",
      "request": {
        "method": "POST",
        "header": [
          { "key": "x-api-key", "value": "{{apiKey}}" },
          { "key": "Idempotency-Key", "value": "{{$guid}}" },
          { "key": "Content-Type", "value": "application/json" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"entity\": 0,\n  \"identifierType\": \"passport\",\n  \"identifierValue\": \"SAMPLE12345\",\n  \"identifierCountry\": \"GB\"\n}"
        },
        "url": "{{baseUrl}}/v1/withdraw"
      }
    }
  ]
}
