Update Transaction by Name
Overview
The update-transactionbyname API processes in the same manner as the update-transaction API, providing different parameters to support requests using Names instead of IDs. Based on the input parameters provided, this request calls Expere EZ Config Default Data APIs to discern the Organization Id and/or Product Id to obtain the corresponding saved default data to then merge with the Transaction XML provided.
Request
| Method | URL | Description |
|---|---|---|
| POST | https://<hostname>/DefaultData/api/v1/integration/accounts/{accountId}/update-transactionbyname | Used to pass the account ID ("accountId") and request parameters to obtain an updated Transaction XML using the XML provided in the request and merging Expere EZ Config data for the requested Organization Name and/or Product Name (including assigned policies defaulted data). |
| Name | Type | Constraints | Description |
|---|---|---|---|
| accountId | integer | required | The "accountID" parameter is used to retrieve a list of organizations associated with the user's account. |
| transactionXML | string | required | The “transactionXml” parameter is the request XML to be updated with default data from the requested Organization and/or Product. |
| alias | string | required | The "alias" (aka Original Value or Short Name) parameter is used in conjunction with the accountId and lob to obtain the Id for the OrganizationName and/or ProductName provided. |
| lob | string | required | The "lob" (line of business) parameter is used in conjunction with the accountId and alias to obtain the Id for the OrganizationName and/or ProductName provided. |
| organizationName | string | optional if productName exists in the request; otherwise required | The ‘organizationName’ parameter retrieves the Organization ID for the account, alias, lob combination provided, used to retrieve the saved default data to merge with the Transaction XML provided. |
| productName | string | Optional if organizationName exists in the request; otherwise required | The ‘productName’ parameter retrieves the Product ID for the account, alias, lob combination provided, used to retrieve the saved product and assigned policies default data to merge with the Transaction XML provided. |
Response
The update-transactionbyname response returns an updated transaction XML.
Response Message: the response message displays an HTTP Status Code of either 200, 401, 404, or 500 with the respective Reason.
| HTTP Status Code | Reason | Response Model | Headers |
|---|---|---|---|
| 200 | Success |
{
"transactionXml": "<p:Txn xmlns:p=\"http://schemas.bankerssystems.com/2004/ExpereTxn\">\n <p:Borrowers>\n
<p:Borrower index=\"1\">\n <p:Phones>\n <p:Phone index=\"1\">\n <p:Desc>Home</p:Desc>\n
<p:PhoneNumber>301-123-4567</p:PhoneNumber>\n <p:PrimaryPhoneInd>1</p:PrimaryPhoneInd>\n </p:Phone>\n
</p:Phones>\n <p:CitizenType>1</p:CitizenType>\n <p:DateOfBirth>19600711</p:DateOfBirth>\n
<p:FirstName>Jane</p:FirstName>\n <p:GenderType>F</p:GenderType>\n <p:LastName>Doe</p:LastName>\n
<p:PartyType>1</p:PartyType>\n <p:RembrandtID>1</p:RembrandtID>\n <p:SSN>123-45-6789</p:SSN>\n
</p:Borrower>\n </p:Borrowers>\
…
</p:OrgMailingAddressStreetAddress1><p:OrgState>ME</p:OrgState></p:Txn>"
}
200
Response Headers: the response header provides
access-control-allow-credentials: true access-control-allow-origin: cache-control: no-cache content-type: application/json; charset=utf-8 date: Wed, 29 May 2019 13:50:02 GMT pragma: no-cache server: Kestrel transfer-encoding": "chunked", x-frame-options: SAMEORIGIN x-powered-by: ASP.NET