Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This is a brief description of the API calls most commonly used by banks. For full details about the request and response payloads, se the swagger documentation.

Drawio
simple0
zoom1
inComment0
custContentId1432191046
pageId1296367729
diagramDisplayNameEPS for bank
lbox1
contentVer3
revision3
baseUrlhttps://ambita.atlassian.net/wiki
diagramNameFlow intention
pCenter0
width2301
links
tbstyle
height446

Table of Contents

Find settlement

...

Resource

Settlement

Service

[GET] /v1/settlements?buyerPersonalNumber=<SSN>&propertyKey=<####-##-###-#-#>

Response

PagedResources<SettlementResource>

Get by financial source
Status
colourGreen
titleNew feature

For settlement created with a list of financial sources (a list of organizations), each of the given financial sources may query settlements where they have been added without knowing the buyers ID. Read more about this feature here.

...

Resource

Settlement

Service

[GET] /v1/settlements/{unique identifier}

Response

SettlementResource

Send intention

...

The flow for intentions could be something like this:

...

Search settlement with buyerID

...

If settlement exists

  1. The settlement contains information on the broker intention (and much more) and can be used in deciding flow and sending intention back to the broker

  2. Send the intention on that settlement as shown above

If no settlement exists

...

Build a complex intention request, containing the properties, buyers and organizationID of the broker, based on the purchase contract

...

Send the intention to our intention endpoint (as shown below)

When sending a complex intention, the service try’s to find a matching settlement. If no match is found, a proxy settlement is created. A proxy settlement is a bank created settlement that will serve as a handler for future communication with broker through AFPant. The service will check AKELDO to verify that the organization is able to consume intention messages from bank, or returns an error message.

...

The request will return a response immediately with the settlementID of the proxy settlement

...

In the background

  • This service will send the bank intention to the broker and wait for response

  • Once the response is received, the result will be populated onto the proxy settlement and a event is created to notify the bank about the response.

...

Wait for broker response (polling for events or getting status of proxy settlement)

This process is dependent on the polling frequency of both the producer and consumer of messages on the Altinn channel. Response is expected within a few seconds (at least 3 seconds)

...

Once the response from the broker is available, the response will be available on the proxy settlement created.

...

Deciding whether to generate a digital or paper pantedokument (mortgage document)

Intention from Bank

The bank will assess a settlement, and provide an intention. The intention contains information whether the bank supports a digital flow or not as well as priority and amount information.

...