Reference

Match many subjects

Match 1 to 100 subjects in one call. Each subject has your own id. A subject that is not valid gets its own error and the call still returns 200.

POST/sanctions/match/batch

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/sanctions/match/batch" \  -H "Authorization: Bearer lil_sk_..." \  -H "Content-Type: application/json" \  -d '{    "queries": {      "customer-001": {        "schema": "Person",        "properties": {          "name": [            "Vladimir Puttin"          ],          "birthDate": [            "1952-10-07"          ]        }      },      "customer-002": {        "schema": "Company",        "properties": {          "name": [            "Spektr-Avia JSC"          ],          "country": [            "ru"          ],          "innCode": [            "7323006644"          ]        }      }    }  }'
{  "responses": {    "customer-001": {      "results": [        {          "id": "Q7747",          "caption": "Vladimir Putin",          "schema": "Person",          "score": 1,          "match": true,          "features": {            "name": 0.9806,            "birthDate": 0.1,            "country": 0.05,            "identifier": null,            "gender": null          },          "datasets": [            "us_ofac_sdn",            "eu_fsf"          ],          "target": true,          "properties": {            "name": [              "Vladimir Putin"            ],            "birthDate": [              "1952-10-07"            ],            "citizenship": [              "ru"            ]          }        }      ]    },    "customer-002": {      "error": {        "code": "invalid_request",        "message": "Invalid request fields: properties."      }    }  }}