...
The broker can also change their intent, and any changes from the broker will be made available to the bank by the event INTENTION_CHANGED
.
Intention vs. Intention changed
The bank will send an intention message to the broker. The response can be accepted by the broker (it matches one settlement) or rejected. From the moment an intention is accepted by the broker, the broker expects an intention changed message from the bank if the bank has to change it’s registration method from PAPER to DIGITAL or vice versa. If the bank posts another bank intention with the same flow/registration method as the previous accepted intention, a response with 400 Bad request will be returned with an error message like “Invalid input: Intention with flow capability ELEKTRONISK_TINGLYSING is already sent. New intention must contain flow capability PAPIRTINGLYSING”. Note that currently the flow capabilities in the error message are ELEKTRONISK_TINGLYSING and PAPIRTINGLYSING, this will change to DIGITAL and PAPER in a future release.
Until a bank intentions is accepted/matched by a broker, another intention with the same flow/registration method can be sent multiple times.
Communicating with an Ambita broker
...
Code Block | ||
---|---|---|
| ||
{ "timestamp" : "2022-02-17T0917T11:3828:1459.750715000438424000", "status" : 400, "error" : "Bad Request", "exception" : "com.ambita.eps.integrationservice.realty.exception.PropertyNotFoundNotFoundSettlementForRealestate", "message" : "Eiendom/borettsandel 3411-815-1-0-746 registrert i oppgjøret finnes ikke i Grunnboken. Sjekk at riktige verdier er lagt inn.Fant ikke noe oppgjør for eiendomsnøkkel", "path" : "/eps/v1/bankintentions", "errorCode" : "5000" } { "timestamp" : "2022-02-17T11:28:59.438424000", "status" : 400, "error" : "Bad Request", "exception" : "com.ambita.eps.service.exception.NotFoundSettlementForRealestate", "message" : "Fant ikke noe oppgjør for eiendomsnøkkel", "path" : "/eps/v1/bankintentions" }} |
Example of messages are:
"Fant ikke noe oppgjør for eiendomsnøkkel", no settlement found for the given property key and broker organization number.
"Det finnes ingen eiendomsoppgjør på denne kjøperen(e). Ta kontakt med megler for å avklare hva som skal gjøres.", found a settlement but the given buyer didn’t match the actual buyer.
"For mange oppgjør funnet hos ${organizationNumber}.", if more than one matching settlement was found for the given broker’s organization number.
Communicating wit a Non-Ambita broker
If a Bankintention is When a bank intention should be sent to a non-Ambita broker, additional validation of the input data will be performed. If any errors are found, a response of 400 Bad request will be returned with a message describing the error.
If no errors are found in the input, the intentions will be sent to the broker via Altinn (the AfPant channel) and the response status code will
always be 202 (accepted)Accepted. The response data will contain a settlementUniqueIdentifier
that later can be used to fetch the settlement data and check the broker's intention.
When a response from the broker is received from Altinn (later), an event of typeINTENTION_RESPONSE_RECEIVED
is created. In the event data you can use the property eventCode. An event code of EPS_EV0001 means the intention was successfully accepted by the broker. The broker's intentions can now be found by fetching the settlement data using the previous mentioned settlement uid or using the link in the event data named "settlement".
An event code of EPS_EV0002 means the intention was rejected by the broker. A human friendly description of why this is can be found
in the events description
property. Ambita forwards this description to the bank as it’s given by the remote broker’s system. An example:
Code Block |
---|
"description: "Intensjon feilet. Melding fra megler: Registerenhet treff, men ikke treff på kjøper: fant ingen oppdrag i meglersystemet der minst 1 kjøper fra oversendt intensjonsforespørsel stemmer med kjøper(e) i megleroppdrag (fikk følgende registerenhet treff: 316/31-21-0350). Vennligst påse at riktig(e) kjøper(e) er registrert i intensjonsmeldingen.." |
...
General error messages
Response code 400 (Bad request) is returned for cases where there is a problem with the input data (broker’s organization number, buyer’s personal number (or organization number), or the property key.