POST /products/collateral-underwriting/invocations Invoke Product Flow
InvokeSpecificProductFlow
This endpoint allows you to underwrite an appraisal document.
Usage
- Before running this endpoint, you need to create a Staircase Blob with appraisal report content. Then, you can set
$.documents.0.has_staircase_blob_identifier.has_value to this blob identifier.
- A unique identifier for this loan should be given in the following path
$.loans.0.has_loan_identifier_value.has_value
- After invocation is completed, Collateral Underwriting will watch status changes in partner, and whenever there is a status changed an
ORDER_STATUS_UPDATED Job event will be published. You can process these events by catching with this trigger expression.
{
"name": "collateral-underwriting-trigger",
"description": "Event Trigger",
"type": "EVENT",
"filter_expression": {
"source_name": [
"collateral-underwriting"
],
"event_type": [
"ORDER_STATUS_UPDATED"
]
},
"actions": {
"target_jobs": [
"collateral-underwriting-test-job"
]
}
}
When vendor_name is set to "homevision", the captured event will be in the following format:
Show the rest
$.documents.0.has_staircase_blob_identifier.has_value to this blob identifier. $.loans.0.has_loan_identifier_value.has_valueORDER_STATUS_UPDATED Job event will be published. You can process these events by catching with this trigger expression.{
"name": "collateral-underwriting-trigger",
"description": "Event Trigger",
"type": "EVENT",
"filter_expression": {
"source_name": [
"collateral-underwriting"
],
"event_type": [
"ORDER_STATUS_UPDATED"
]
},
"actions": {
"target_jobs": [
"collateral-underwriting-test-job"
]
}
}
vendor_name is set to "homevision", the captured event will be in the following format:{
"transaction_id": "01G390E72SN9KK98146AG1WCRX",
"flow_name": "homevision-flow",
"homevision_loan_identifier": "01G390E72SN9KK98146AG1WCRX",
"response_collection_id": "01G390EH4QYS7CNVPVZSP7AZ3S",
"request_collection_id": "01G390EH4QYS7CNVPVZSP7AZ3S",
"domain": "aus-dev.staircaseapi.com",
"homevision_event_type": 4,
"homevision_order_id": 8109,
"homevision_internal_url": "",
"homevision_order_status": "Order Completed",
"homevision_message": "A new event has occurred for this order",
"homevision_pdf_url": "",
"homevision_xml_url": "",
"homevision_env_url": "",
"event_type": "ORDER_STATUS_UPDATED"
}
Request
{
"vendor_name": "homevision",
"transaction_id": "01F6NAMXWN2XVBD1YJ92A6S6R4",
"request_collection_id": "01F6QF1QJF20DMSXH4SYXKB1SN"
} {
"vendor_name": "homevision",
"request_data": {
"addresses": [
{
"@id": "address_id",
"@type": "business_address",
"has_state_code": {
"has_value": "CA"
},
"has_city_name": {
"has_value": "Bankville"
},
"has_postal_code": {
"has_value": 2138
},
"has_address_line_1_text": {
"has_value": "123 Lending Lane"
}
},
{
"@id": "subject_property_address_id",
"@type": "subject_property_address",
"has_county_name": {
"has_value": "Pinellas"
},
"has_state_code": {
"has_value": "TX"
},
"has_city_name": {
"has_value": "Salem"
},
"has_postal_code": {
"has_value": "2138"
},
"has_address_line_1_text": {
"has_value": "456 Main Street"
}
},
{
"@id": "borrower_address_id",
"@type": "residential_address",
"has_state_code": {
"has_value": "TX"
},
"has_city_name": {
"has_value": "Salem"
},
"has_postal_code": {
"has_value": "2138"
},
"has_address_line_1_text": {
"has_value": "456 Main Street"
}
}
],
"documents": [
{
"@id": "document_id",
"@type": "document",
"has_staircase_blob_identifier": {
"has_value": "01G2YVWSGPQC9Y9A6AXTHYMDET"
}
}
],
"loans": [
{
"@id": "loan_id",
"@type": "loan",
"has_loan_identifier_value": {
"has_value": "01G313MDG9KVKW62YK8S1WNMWB"
}
}
],
"loan_terms": [
{
"@id": "loan_term_id",
"@type": "loan_terms",
"has_loan_purpose_type": {
"has_value": "refinance"
}
}
],
"organizations": [
{
"@id": "organization_id",
"@type": "organization",
"has_organization_name": {
"has_value": "Liberty Lending"
},
"with_address": [
"address_id"
]
}
],
"people": [
{
"@id": "appraiser_id",
"@type": "appraiser",
"has_appraisal_sub_committee_appraiser_identifier": {
"has_value": "A12345"
},
"has_full_name": {
"has_value": "Alan Appraiser"
}
},
{
"@id": "borrower_id",
"@type": "borrower",
"has_full_name": {
"has_value": "Jane Doe"
},
"lives_at": [
"residence_id"
]
},
{
"@id": "co_borrower_id",
"@type": "borrower",
"has_full_name": {
"has_value": "John Doe"
}
}
],
"properties": [
{
"@id": "subject_property_id",
"@type": "subject_property",
"with_address": [
"subject_property_address_id"
],
"with_sales_contract": [
"sales_contract_id"
]
}
],
"property_valuations": [
{
"@id": "property_valution_id",
"@type": "property_valuation",
"has_property_inspection_type_other_description": {
"has_value": "1004"
}
}
],
"residences": [
{
"@id": "residence_id",
"@type": "residence",
"with_address": [
"borrower_address_id"
]
}
],
"roles": [
{
"@id": "role_id",
"@type": "role",
"with_appraiser": [
"appraiser_id"
]
}
],
"sales_contracts": [
{
"@id": "sales_contract_id",
"@type": "property_sales_contract",
"has_sales_contract_amount": {
"has_value": 123456
}
}
]
}
} {
"vendor_name": "homevision",
"request_data": {
"addresses": [
{
"@id": "address_id",
"@type": "business_address",
"has_state_code": {
"has_value": "CA"
},
"has_city_name": {
"has_value": "Bankville"
},
"has_postal_code": {
"has_value": 2138
},
"has_address_line_1_text": {
"has_value": "123 Lending Lane"
}
},
{
"@id": "subject_property_address_id",
"@type": "subject_property_address",
"has_county_name": {
"has_value": "Pinellas"
},
"has_state_code": {
"has_value": "TX"
},
"has_city_name": {
"has_value": "Salem"
},
"has_postal_code": {
"has_value": "2138"
},
"has_address_line_1_text": {
"has_value": "456 Main Street"
}
},
{
"@id": "borrower_address_id",
"@type": "residential_address",
"has_state_code": {
"has_value": "TX"
},
"has_city_name": {
"has_value": "Salem"
},
"has_postal_code": {
"has_value": "2138"
},
"has_address_line_1_text": {
"has_value": "456 Main Street"
}
}
],
"documents": [
{
"@id": "document_id",
"@type": "document",
"has_staircase_blob_identifier": {
"has_value": "01G2YVWSGPQC9Y9A6AXTHYMDET"
}
}
],
"government_loans": [
{
"@id": "government_loan_id",
"@type": "government_loan",
"has_fha_case_number": {
"has_value": "FHA111111111"
}
}
],
"loans": [
{
"@id": "loan_id",
"@type": "loan",
"has_loan_identifier_value": {
"has_value": "01G313MDG9KVKW62YK8S1WNMWB"
},
"with_government_loan": [
"government_loan_id"
]
}
],
"loan_terms": [
{
"@id": "loan_term_id",
"@type": "loan_terms",
"has_loan_purpose_type": {
"has_value": "refinance"
}
}
],
"organizations": [
{
"@id": "organization_id",
"@type": "organization",
"has_organization_name": {
"has_value": "Liberty Lending"
},
"with_address": [
"address_id"
]
}
],
"people": [
{
"@id": "appraiser_id",
"@type": "appraiser",
"has_appraisal_sub_committee_appraiser_identifier": {
"has_value": "A12345"
},
"has_full_name": {
"has_value": "Alan Appraiser"
}
},
{
"@id": "borrower_id",
"@type": "borrower",
"has_full_name": {
"has_value": "Jane Doe"
},
"lives_at": [
"residence_id"
]
},
{
"@id": "co_borrower_id",
"@type": "borrower",
"has_full_name": {
"has_value": "John Doe"
}
}
],
"properties": [
{
"@id": "subject_property_id",
"@type": "subject_property",
"with_address": [
"subject_property_address_id"
],
"with_sales_contract": [
"sales_contract_id"
]
}
],
"property_valuations": [
{
"@id": "property_valution_id",
"@type": "property_valuation",
"has_property_inspection_type_other_description": {
"has_value": "1004"
}
}
],
"residences": [
{
"@id": "residence_id",
"@type": "residence",
"with_address": [
"borrower_address_id"
]
}
],
"roles": [
{
"@id": "role_id",
"@type": "role",
"with_appraiser": [
"appraiser_id"
]
}
],
"sales_contracts": [
{
"@id": "sales_contract_id",
"@type": "property_sales_contract",
"has_sales_contract_amount": {
"has_value": 123456
}
}
]
}
} Response
Successfully started flow invocation.
{
"product_flow_name": "collateral-underwriting",
"metadata": {},
"request_collection_id": "01FFHJ4JCWGHV38SC1NJ8TVNFY",
"invocation_id": "08f0f7bd-0158-4ab8-845c-f94eafa3859c",
"invocation_status": "STARTED",
"transaction_id": "01FFHJ2ZVS4P7N4AV5W0993QMD"
} Request data failed validation
{
"message": "{'data': ['Missing data for required field.']}"
} 403 invalid error
{
"message": "Please check the key you used to call this service",
"url": "https://staircase.stoplight.io/docs/api-reference/customer-account-manager-service.yml/paths/~1products~1refresh/post"
} Resource not found
<html>\r\n<head><title>400 Bad Request</title></head>\r\n<body>\r\n<center><h1>400
Bad Request</h1></center>\r\n</body>\r\n</html>\r\n Internal server error
{
"message": "The product has encountered an internal server error. If you\nhave used a transaction_id to call our services, please submit it to\nStaircase support"
} Parameters
1
| Parameter | Type | Description |
|---|---|---|
x-api-key required | string header | Environment API Key. |
Response 201application/json
7 fields
201application/jsonSuccessfully started flow invocation.
| Field | Type | Description |
|---|---|---|
invocation_id | string | Invocation ID. |
invocation_status | string | The status of the invocation.STARTED |
transaction_id | string | Transaction ID. |
product_flow_name | string | Product flow name.collateral-underwriting |
metadata | object | The metadata of the invoked product flow. |
callback_url | string | Callback URL. |
request_data | object | The data for the request collection. |
Response 400application/json
1 fields
400application/jsonRequest data failed validation
| Field | Type | Description |
|---|---|---|
message | string | Message |
Response 403application/json
2 fields
403application/json403 invalid error
| Field | Type | Description |
|---|---|---|
message | string | Error message. |
url | string | Error additional URL. |
Response 404application/json
1 fields
404application/jsonResource not found
| Field | Type | Description |
|---|---|---|
message | string | Message |
Response 500application/json
1 fields
500application/jsonInternal server error
| Field | Type | Description |
|---|---|---|
message | string | Error message. |