Skip to content

Preview a field map against a loan

POST
/v1/core-field-maps/{id}/preview
curl --request POST \
--url 'http://localhost:8080/v1/core-field-maps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/preview?loan=example'

Applies this map version (active or not) to a real loan’s extracted values and validates the result through the active core adapter; the field map editor’s preview; nothing is recorded. loan is the loan reference. Administrators only. 404 for an unknown map or loan, 422 when the map targets a different provider than the active core adapter.

id
required
string format: uuid
loan
required
string

OK

Media typeapplication/json

A dry run of the map over the loan’s values before anything is recorded (GET …/boarding/preview, field map editor preview).

object
loanRef
required
string
provider
required
string
fieldMapId
required
string format: uuid
fieldMapVersion
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
fields
required
Array<object>

One core field ready to post: code, wire value and where it came from. string? CoreFieldValue.Value is null when the map found no source.

object
coreField
required
string
canonical
required
string
transform
required
string
value
required
null | string
source
required
One of:
null
validation
required
object
ok
required
boolean
errors
required
Array<object>
object
coreField
required
string
message
required
string
Examplegenerated
{
"loanRef": "example",
"provider": "example",
"fieldMapId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"fieldMapVersion": 1,
"fields": [
{
"coreField": "example",
"canonical": "example",
"transform": "example",
"value": "example",
"source": {
"documentId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"documentName": "example",
"docType": "example",
"canonical": "example",
"pageNo": 1,
"x": 1,
"y": 1,
"w": 1,
"h": 1
}
}
],
"validation": {
"ok": true,
"errors": [
{
"coreField": "example",
"message": "example"
}
]
}
}