Forecasted Transactions

Create forecasted transaction batch

Changed on

Create a batch of forecasted transactions. A batch may contain at most 15000 records; requests exceeding this limit are rejected.

post/analytics/v2beta/forecasted-transaction-batches

Request

Request body

externalIdstring

External ID is optional to use, but if used, the Atlar platform will persist it, index it, as well as require it to be unique across all resources. It is possible to retrieve a resource using the external ID using the prefix external:.

metadataMetadata nullable

Metadata is a string-string key-value container that can be used to store information known at the time of resource creation. This can be retrieved later on, for instance when a payment or expected transaction is reconciled with the booked transaction on the bank statement.

Metadata can have at most 20 entries. Keys may have a maximum length of 64 chars and values a maximum length of 512 chars.

By default, this field is optional. It is possible to make it required in the Atlar Dashboard by visiting the Metadata keys page. Requirement rules can be specified per API resource. Both the Dashboard and the API will then enforce these rules and give validation errors when the required fields are not set.

Example request

{
  "requests": [
    {
      "parent": {
        "id": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8"
      },
      "amount": {
        "currency": "EUR",
        "value": 1502
      },
      "date": "2022-05-07",
      "origin": {
        "id": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8"
      },
      "counterparty": {
        "partyType": "INDIVIDUAL",
        "name": "Customer #312",
        "nationalIdentifier": {
          "type": "CIVIC",
          "market": "DE",
          "number": "2012121212"
        },
        "address": {
          "country": "DE",
          "countrySubdivision": "US-CA",
          "city": "Stockholm",
          "postalCode": "11111",
          "streetName": "Example street",
          "streetNumber": "47"
        },
        "account": {
          "market": "DE",
          "identifiers": [
            {
              "type": "IBAN",
              "market": "DE",
              "number": "DE75512108001245126199"
            }
          ],
          "routing": [
            {
              "type": "BIC",
              "number": "BUKBGB22"
            }
          ]
        }
      },
      "metadata": {
        "my_metadata_key": "2a9a79b9-601c-449b-aa05-432f41dbbc4a"
      },
      "externalId": "walVNuin6X5Mvte4xhg1ibTAVSACfN4Q9hl"
    }
  ],
  "externalId": "walVNuin6X5Mvte4xhg1ibTAVSACfN4Q9hl",
  "metadata": {
    "my_metadata_key": "2a9a79b9-601c-449b-aa05-432f41dbbc4a"
  }
}

Response

The created forecasted transaction batch.

idstring required

Unique resource identifier.

organizationIdstring required

Unique resource identifier for an Organization.

status'CREATED' | 'PROCESSING_STARTED' | 'COMPLETED' required

The status of this batch. The status only refers to the processing of the input, not the processing or success of the resources themselves.

COMPLETED is the only end-state. Failure is indicated by a non-empty list of errors.

externalIdstring

External ID is optional to use, but if used, the Atlar platform will persist it, index it, as well as require it to be unique across all resources. It is possible to retrieve a resource using the external ID using the prefix external:.

metadataMetadata nullable

Metadata is a string-string key-value container that can be used to store information known at the time of resource creation. This can be retrieved later on, for instance when a payment or expected transaction is reconciled with the booked transaction on the bank statement.

Metadata can have at most 20 entries. Keys may have a maximum length of 64 chars and values a maximum length of 512 chars.

By default, this field is optional. It is possible to make it required in the Atlar Dashboard by visiting the Metadata keys page. Requirement rules can be specified per API resource. Both the Dashboard and the API will then enforce these rules and give validation errors when the required fields are not set.

creatorUserIdstring required

Unique resource identifier.

creatorRoleIdstring required

Unique resource identifier.

etagstring required

ETag based on the resource version. This can be passed along in If-Match HTTP header when updating a resource to perform a conditional update.

versioninteger required

Resource version. Starts at value 1 when the resource is created and increases by one for each successive update.

createdstring date-time required

Time at which the resource was created.

updatedstring date-time required

Time at which the resource was last updated.

Example response

{
  "id": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
  "organizationId": "0160f6ab-5741-49e1-af46-9138927e547e",
  "inputContent": {
    "size": 4711,
    "checksum": "sha256:08343d976a896e8563b4915c84878207199b5fa139d3edde1bd77d99339bd18c",
    "filename": "batch-2022-05-07.csv"
  },
  "inputDetails": {
    "sums": [
      {
        "currency": "EUR",
        "stringValue": "15.02",
        "value": 1502
      }
    ]
  },
  "resultDetails": {
    "sums": [
      {
        "currency": "EUR",
        "stringValue": "15.02",
        "value": 1502
      }
    ]
  },
  "status": "COMPLETED",
  "errors": [
    {
      "code": "invalid_value",
      "error": "Must be one of [direct_debits mandates payments]",
      "field": "filter.0.resource",
      "metadata": {
        "resource": "credit_transfers",
        "method": "read"
      }
    }
  ],
  "externalId": "walVNuin6X5Mvte4xhg1ibTAVSACfN4Q9hl",
  "metadata": {
    "my_metadata_key": "2a9a79b9-601c-449b-aa05-432f41dbbc4a"
  },
  "creatorUserId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
  "creatorRoleId": "2ed9a3ee-60aa-4f9f-a858-2eed4eefbbc8",
  "etag": "version:3",
  "version": 1,
  "created": "2022-05-04T18:31:12.889104898Z",
  "updated": "2022-05-04T18:47:32.213842599Z"
}

Changes