== LOAN APPLICATIONS

The Loan applications resource is used to list, create, and update loan applications.

=== Retrieve a loan application

A `GET` request will retrieve the details of a loan application.

==== Response fields

include::{snippets}/loan-applications-get-example/response-fields.adoc[]

==== Example request

include::{snippets}/loan-applications-get-example/http-request.adoc[]

==== Example response

include::{snippets}/loan-applications-get-example/http-response.adoc[]

=== Submit a loan application

A `POST` request will change status of loan application to pending(sends to committee).

==== Response fields

include::{snippets}/loan-application-submit-example/response-fields.adoc[]

==== Example request

include::{snippets}/loan-application-submit-example/http-request.adoc[]

==== Example response

include::{snippets}/loan-application-submit-example/http-response.adoc[]

=== Change status of credit committee vote for loan application

A `POST` request will change status of credit committee vote in loan application.

==== Request fields

include::{snippets}/loan-application-change-status-example/request-fields.adoc[]

==== Example request

include::{snippets}/loan-application-change-status-example/http-request.adoc[]

==== Example response

include::{snippets}/loan-application-change-status-example/http-response.adoc[]

=== Create a loan application

A `POST` request will create a new loan application.

==== Request fields

include::{snippets}/loan-application-create-example/request-fields.adoc[]

==== Response fields

include::{snippets}/loan-application-create-example/response-fields.adoc[]

==== Example request

include::{snippets}/loan-application-create-example/http-request.adoc[]

==== Example response

include::{snippets}/loan-application-create-example/http-response.adoc[]

=== Update a loan application

A `PUT` request will update the details of a loan application.

==== Request fields

include::{snippets}/loan-application-update-example/request-fields.adoc[]

==== Response fields

include::{snippets}/loan-application-update-example/response-fields.adoc[]

==== Example request

include::{snippets}/loan-application-update-example/http-request.adoc[]

==== Example response

include::{snippets}/loan-application-update-example/http-response.adoc[]
