Skip to main content
POST
/
amlyze-ws-rest
/
validate-batch-contracts
Validate a batch of contracts without saving
curl --request POST \
  --url 'https://{{baseUrl}}/amlyze-ws-rest/validate-batch-contracts' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "contracts": [
    {
      "action": "CREATE",
      "communicationNumber": "CommNumber0",
      "requester": "financial_institution",
      "businessUnit": "sandbox",
      "contractType": "CREDIT_CARD",
      "extId": "any_contract_1",
      "contractCode": "REG74121100",
      "customerExtId": "ORG20231117550"
    },
    {
      "action": "UPDATE",
      "communicationNumber": "CommNumber1",
      "requester": "financial_institution",
      "businessUnit": "sandbox",
      "contractType": "CREDIT_CARD",
      "extId": "any_contract_1232",
      "contractCode": "REG74121101",
      "customerExtId": "ORG20231117550"
    }
  ]
}
'
{
  "results": [
    {
      "businessUnit": "<string>",
      "communicationNumber": "<string>",
      "errorCode": "<string>",
      "errorDescription": "<string>",
      "extId": "<string>",
      "resultType": "REQUEST_ACCEPTED",
      "timeElapsedMs": 123
    }
  ],
  "timeElapsedMs": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Batch of contracts to validate

contracts
object[]

Response

OK

results
object[]
timeElapsedMs
integer<int64>