Preview a field map against a loan
POST
/v1/core-field-maps/{id}/preview
const url = 'http://localhost:8080/v1/core-field-maps/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/preview?loan=example';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Query Parameters
Section titled “Query Parameters”loan
required
string
Responses
Section titled “Responses”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
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
Where a boarded value came from ( “every core field + source provenance”).
object
documentId
required
string format: uuid
documentName
required
string
docType
required
string
canonical
required
string
pageNo
required
null | integer | string format: int32
x
required
null | number | string format: double
y
required
null | number | string format: double
w
required
null | number | string format: double
h
required
null | number | string format: double
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" } ] }}