question

Graham Sutcliffe avatar image
Graham Sutcliffe asked

Mortgage Application Import XML payload

Trying to create a bare-bones loan application into the sandbox environment from an iLAD XML. I tried an example iLAD XML acquired from the Mortgage Application Import API, and one provided from MISMO but failed on both. Is there an example XML available that would work? The structure maybe wrong or missing data extensions or my loanIdentifier is in the wrong location. The problem is I don't know where to look next as I've changed the payload multiple times and still receive the same error. Thanks.

API Name: Mortgage Application Import
URL: /mortgagebot/mortgage-application-import/v1/ilad
Response: 400
Response body:

{
    "errors": {
        "loanIdentifier": [
            "A loan import cannot proceed. The loan identifier is required and does not exist within the given file."
        ]
    },
    "title": "One or more validation errors occurred.",
    "status": 400,
    "traceId": "0HMA75PJHLCSL:00000001"
}

Response Headers:
ff-trace-id: 2aaa4cb3-6518-44e6-84a6-870585d1c221
Date: Mon, 19 Jul 2021 17:23:08 GMT

API - Lending
10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Radu Cristian Ilina avatar image
Radu Cristian Ilina answered

Hello Graham,

We have tested the Mortgage Application Import API using the provided Postman collection and it was working. If you are making a POST request to the "/mortgagebot/mortgage-application-import/v1/ilad" URL with the same body as in the Postman collection and with the same "Content-Type" header, the request should succeed.


We are getting the same Bad Request response when using the same file as in the Postman collection but without the LenderLoan LoanIdentifier:

<LOAN_IDENTIFIERS>
    <LOAN_IDENTIFIER>
        <LoanIdentifier>US7007Testing3344557999562679428</LoanIdentifier>
        <LoanIdentifierType>UniversalLoan</LoanIdentifierType>
    </LOAN_IDENTIFIER>
    <LOAN_IDENTIFIER>
        <LoanIdentifier>166666699956267945</LoanIdentifier>
        <LoanIdentifierType>MERS_MIN</LoanIdentifierType>
    </LOAN_IDENTIFIER>
</LOAN_IDENTIFIERS>

More information regarding the file format can be found in the API Developer Portal documentation.


Best regards,
Radu

1 comment
10 |600

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Graham Sutcliffe avatar image Graham Sutcliffe commented ·
Thanks Radu.


I downloaded the "OpenAPI specification" which only provided a link to a file that was not included. Downloading the Postman collection does contain a body with property formatted XML. Thank you.

0 Likes 0 ·