Request a batch of validations

​

Requests up to 1000 validations in a single call. Shinkansen stores the batch and answers immediately; the validations are performed asynchronously, and once none is pending the results of the whole batch are sent in a single call to the batch webhook configured for the Validator service. Validations that belong to a batch are not sent to the single validation webhook.

The batch is accepted or rejected as a whole: if any request is invalid, its id is taken or repeated, or it asks for an access check that is not available, nothing is stored.

A batch times out after 15 minutes by default. Requests still pending at that time are closed as error, with return_code unable_to_validate and return_message batch_timed_out.

Body

application/json

Validation batch request (public endpoint)

  • The id of the validation batch. Set by customer. Must be unique for your organization. It is used for idempotency: retrying a batch with the same id never creates a second batch, and answers 409 with the stored batch.

  • Between 1 and 1000 validation requests. Each one needs its own id, unique for your organization, and must not repeat inside the batch.

    If any request is invalid, conflicts with another one, or is not allowed, the whole batch is rejected and nothing is stored.

    Properties: 3
  • A free-form label for the origin of the batch (e.g. the name of your process). Returned when you read the batch.

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • Unexpected error. Nothing is stored.

Callbacks

Request Example for post/validation/batches
curl https://api.validator.shinkansen.finance/v1/validation/batches \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Shinkansen-Validator-Api-Key: YOUR_SECRET_TOKEN' \
  --data '{
  "id": "batch-2026-10-13-001",
  "source_name": "payroll",
  "validation_requests": [
    {
      "id": "3c11df48-dfab-41eb-a3c1-b9f90a0da063",
      "account_details": {
        "name": "Romulo Gallegos",
        "identification": {
          "id_schema": "CLID",
          "id": "11111111-1"
        },
        "financial_institution": {
          "fin_id_schema": "SHINKANSEN",
          "fin_id": "SCOTIABANK_CL"
        },
        "account": "1513523451",
        "account_type": "current_account",
        "currency": "CLP",
        "email": "romulo.gallegos@shinkansen.finance"
      }
    },
    {
      "id": "e60044b2-2ecc-49c2-b20b-b20c07292753",
      "account_details": {
        "account": "012180001234567899",
        "account_type": "clabe",
        "currency": "MXN"
      }
    }
  ]
}'
Batch accepted
{
  "id": "batch-2026-10-13-001",
  "source_type": "api",
  "source_name": "payroll",
  "status": "pending",
  "timeout_at": "2026-10-13T15:15:00Z",
  "closed_at": null,
  "validation_requests": [
    {
      "id": "3c11df48-dfab-41eb-a3c1-b9f90a0da063",
      "status": "pending"
    },
    {
      "id": "e60044b2-2ecc-49c2-b20b-b20c07292753",
      "status": "pending"
    }
  ],
  "inserted_at": "2026-10-13T15:00:00Z",
  "updated_at": "2026-10-13T15:00:00Z"
}