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 Products to obtain the corresponding saved default data to then merge with the Transaction XML provided.
Request
| Method | URL | Description |
|---|---|---|
| POST | https://<hostname>/EZConfig/accounts/{accountId}/update-transaction-by-name | 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 Names (including assigned policies defaulted data). |
| Name | Type | Constraints | Description |
|---|---|---|---|
| accountId | integer | required | The "accountId" parameter is used to help authenticate the user. |
| 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 for the account, alias, lob combination provided, used to retrieve the saved default data to merge with the Transaction XML provided. |
| productNames | array of strings | Optional if organizationName exists in the request; otherwise required | The "productNames" parameter retrieves the Products for the
account, alias, lob combination provided, used to retrieve the saved
product(s) and assigned policies default data to merge with the
Transaction XML provided. (Multiple product names may be provided
and are listed in an array) Note: Providing multiple products works
in conjunction with the Deposit LOB. To merge the product data
with the appropriate transaction account, the schema path
/txn/Accounts/Account/productDesc/ must
specify the specific Product Names. Note: Data points not
matching across products will result in error messages being
returned. See Response Body B, below. |
Response
The update-transactionbyname response returns an updated transaction XML.
Response Message: the response message displays an HTTP Status Code of either 200, 400, 401, 404, or 500 with the respective Reason.
| HTTP Status Code | Reason | Response Model | Headers |
|---|---|---|---|
| 200 | Success | ||
| 400 | Bad Request |
{
"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
There was a problem with updating transaction. [name:Error Policy #1,type:Policy,product:Error Product #1 has /Txn/PrivacyNoticeGroupUserDefinedDesc = Name111] and [name:Error Policy #2,type:Policy,product:Error Product #2 has /Txn/PrivacyNoticeGroupUserDefinedDesc = Name222] have conflicting values
400
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
- "/Txn/Deposit/Accounts/Account/Fees/Fee/FeeName"
- "/Txn/Deposit/Accounts/Account/MinimumBalanceFees/MinimumBalanceFee/NameDesc"
These Default Data fees are merged only if the Expere transaction does not contain these fees. If the Expere transaction does contain these fees, the Default Data fees are not merged with the Expere transaction.