CalcXML REST Web Services - cus83 Calculator

URL

http://www.calcxml.com/rest/cus83

Properties / Request Headers

Required property: content-type=application/json
Required property: charset=UTF-8
Required header: accept=application/json

Full JSON Request

{"username": "XXXXXX","password": "XXXXXX","responseType": "raw2","returnDataTable": "true","chartLibrary": "image","language": "en","countryCode": "US","version": "1.3", "chartTitle": "Custom Chart Title", "threeD": "0", "chartHeight": "300", "chartWidth": "300","barColor1": "ddeeaa", "barColor2": "00ffff", "barColor3": "ffeb00","barColor4": "aabbcc","barColor5": "ff00ff","barColor6": "bbaa00","purchasePrice": "0","competitorScenario": "14","competitorRate": "0","firstScenario": "14","firstScenarioFirstRate": "0","firstScenarioSecondRate": "0","secondScenario": "14","secondScenarioFirstRate": "0","secondScenarioSecondRate": "0","thirdScenario": "14","thirdScenarioFirstRate": "0","thirdScenarioSecondRate": "0","fourthScenario": "14","fourthScenarioFirstRate": "0","fourthScenarioSecondRate": "0","fifthScenario": "14","fifthScenarioFirstRate": "0","fifthScenarioSecondRate": "0","item1": "1","item2": "2"}

Minimal JSON Request

Optional elements will be defaulted

{"username": "XXXXXX","password": "XXXXXX","purchasePrice": "0","competitorScenario": "14","competitorRate": "0","firstScenario": "14","firstScenarioFirstRate": "0","firstScenarioSecondRate": "0","secondScenario": "14","secondScenarioFirstRate": "0","secondScenarioSecondRate": "0","thirdScenario": "14","thirdScenarioFirstRate": "0","thirdScenarioSecondRate": "0","fourthScenario": "14","fourthScenarioFirstRate": "0","fourthScenarioSecondRate": "0","fifthScenario": "14","fifthScenarioFirstRate": "0","fifthScenarioSecondRate": "0","item1": "1","item2": "2"}

Description Of Calculator-Specific Request Elements

purchasePrice Data type: xs:double Valid values: 0 to 999999999
competitorScenario Data type: xs:integer Valid values: 1 (65% Term / 10% Jr. Lien - 10 Year), 2 (65% Term / 10% Jr. Lien - 12 Year), 3 (65% Term / 10% Jr. Lien - 15 Year), 4 (65% Term / 10% Jr. Lien - 20 Year), 5 (65% Term / 10% Jr. Lien - 25 Year), 6 (65% Term / 15% Jr. Lien - 10 Year), 7 (65% Term / 15% Jr. Lien - 12 Year), 8 (65% Term / 15% Jr. Lien - 15 Year), 9 (65% Term / 15% Jr. Lien - 5 Year), 10 (70% Term / 10% Jr. Lien - 10 Year), 11 (70% Term / 10% Jr. Lien - 12 Year), 12 (70% Term / 10% Jr. Lien - 15 Year), 13 (70% Term / 10% Jr. Lien - 5 Year), 14 (75% Loan - 30 Year Amortization), 15 (80% Loan - 30 Year Amortization)
competitorRate Data type: xs:float Valid values: 0 to .12
firstScenario Data type: xs:integer Valid values: 1 (65% Term / 10% Jr. Lien - 10 Year), 2 (65% Term / 10% Jr. Lien - 12 Year), 3 (65% Term / 10% Jr. Lien - 15 Year), 4 (65% Term / 10% Jr. Lien - 20 Year), 5 (65% Term / 10% Jr. Lien - 25 Year), 6 (65% Term / 15% Jr. Lien - 10 Year), 7 (65% Term / 15% Jr. Lien - 12 Year), 8 (65% Term / 15% Jr. Lien - 15 Year), 9 (65% Term / 15% Jr. Lien - 5 Year), 10 (70% Term / 10% Jr. Lien - 10 Year), 11 (70% Term / 10% Jr. Lien - 12 Year), 12 (70% Term / 10% Jr. Lien - 15 Year), 13 (70% Term / 10% Jr. Lien - 5 Year), 14 (75% Loan - 30 Year Amortization), 15 (80% Loan - 30 Year Amortization)
firstScenarioFirstRate Data type: xs:float Valid values: 0 to .12
firstScenarioSecondRate Data type: xs:float Valid values: 0 to .12
secondScenario Data type: xs:integer Valid values: 1 (65% Term / 10% Jr. Lien - 10 Year), 2 (65% Term / 10% Jr. Lien - 12 Year), 3 (65% Term / 10% Jr. Lien - 15 Year), 4 (65% Term / 10% Jr. Lien - 20 Year), 5 (65% Term / 10% Jr. Lien - 25 Year), 6 (65% Term / 15% Jr. Lien - 10 Year), 7 (65% Term / 15% Jr. Lien - 12 Year), 8 (65% Term / 15% Jr. Lien - 15 Year), 9 (65% Term / 15% Jr. Lien - 5 Year), 10 (70% Term / 10% Jr. Lien - 10 Year), 11 (70% Term / 10% Jr. Lien - 12 Year), 12 (70% Term / 10% Jr. Lien - 15 Year), 13 (70% Term / 10% Jr. Lien - 5 Year), 14 (75% Loan - 30 Year Amortization), 15 (80% Loan - 30 Year Amortization)
secondScenarioFirstRate Data type: xs:float Valid values: 0 to .12
secondScenarioSecondRate Data type: xs:float Valid values: 0 to .12
thirdScenario Data type: xs:integer Valid values: 1 (65% Term / 10% Jr. Lien - 10 Year), 2 (65% Term / 10% Jr. Lien - 12 Year), 3 (65% Term / 10% Jr. Lien - 15 Year), 4 (65% Term / 10% Jr. Lien - 20 Year), 5 (65% Term / 10% Jr. Lien - 25 Year), 6 (65% Term / 15% Jr. Lien - 10 Year), 7 (65% Term / 15% Jr. Lien - 12 Year), 8 (65% Term / 15% Jr. Lien - 15 Year), 9 (65% Term / 15% Jr. Lien - 5 Year), 10 (70% Term / 10% Jr. Lien - 10 Year), 11 (70% Term / 10% Jr. Lien - 12 Year), 12 (70% Term / 10% Jr. Lien - 15 Year), 13 (70% Term / 10% Jr. Lien - 5 Year), 14 (75% Loan - 30 Year Amortization), 15 (80% Loan - 30 Year Amortization)
thirdScenarioFirstRate Data type: xs:float Valid values: 0 to .12
thirdScenarioSecondRate Data type: xs:float Valid values: 0 to .12
fourthScenario Data type: xs:integer Valid values: 1 (65% Term / 10% Jr. Lien - 10 Year), 2 (65% Term / 10% Jr. Lien - 12 Year), 3 (65% Term / 10% Jr. Lien - 15 Year), 4 (65% Term / 10% Jr. Lien - 20 Year), 5 (65% Term / 10% Jr. Lien - 25 Year), 6 (65% Term / 15% Jr. Lien - 10 Year), 7 (65% Term / 15% Jr. Lien - 12 Year), 8 (65% Term / 15% Jr. Lien - 15 Year), 9 (65% Term / 15% Jr. Lien - 5 Year), 10 (70% Term / 10% Jr. Lien - 10 Year), 11 (70% Term / 10% Jr. Lien - 12 Year), 12 (70% Term / 10% Jr. Lien - 15 Year), 13 (70% Term / 10% Jr. Lien - 5 Year), 14 (75% Loan - 30 Year Amortization), 15 (80% Loan - 30 Year Amortization)
fourthScenarioFirstRate Data type: xs:float Valid values: 0 to .12
fourthScenarioSecondRate Data type: xs:float Valid values: 0 to .12
fifthScenario Data type: xs:integer Valid values: 1 (65% Term / 10% Jr. Lien - 10 Year), 2 (65% Term / 10% Jr. Lien - 12 Year), 3 (65% Term / 10% Jr. Lien - 15 Year), 4 (65% Term / 10% Jr. Lien - 20 Year), 5 (65% Term / 10% Jr. Lien - 25 Year), 6 (65% Term / 15% Jr. Lien - 10 Year), 7 (65% Term / 15% Jr. Lien - 12 Year), 8 (65% Term / 15% Jr. Lien - 15 Year), 9 (65% Term / 15% Jr. Lien - 5 Year), 10 (70% Term / 10% Jr. Lien - 10 Year), 11 (70% Term / 10% Jr. Lien - 12 Year), 12 (70% Term / 10% Jr. Lien - 15 Year), 13 (70% Term / 10% Jr. Lien - 5 Year), 14 (75% Loan - 30 Year Amortization), 15 (80% Loan - 30 Year Amortization)
fifthScenarioFirstRate Data type: xs:float Valid values: 0 to .12
fifthScenarioSecondRate Data type: xs:float Valid values: 0 to .12
item1 Data type: xs:integer Valid values: 1 (65% Term / 10% Jr. Lien - 10 Year), 2 (65% Term / 10% Jr. Lien - 12 Year), 3 (65% Term / 10% Jr. Lien - 15 Year), 4 (65% Term / 10% Jr. Lien - 20 Year), 5 (65% Term / 10% Jr. Lien - 25 Year), 6 (65% Term / 15% Jr. Lien - 10 Year), 7 (65% Term / 15% Jr. Lien - 12 Year), 8 (65% Term / 15% Jr. Lien - 15 Year), 9 (65% Term / 15% Jr. Lien - 5 Year), 10 (70% Term / 10% Jr. Lien - 10 Year), 11 (70% Term / 10% Jr. Lien - 12 Year), 12 (70% Term / 10% Jr. Lien - 15 Year), 13 (70% Term / 10% Jr. Lien - 5 Year), 14 (75% Loan - 30 Year Amortization), 15 (80% Loan - 30 Year Amortization)
item2 Data type: xs:integer Valid values: 1 (65% Term / 10% Jr. Lien - 10 Year), 2 (65% Term / 10% Jr. Lien - 12 Year), 3 (65% Term / 10% Jr. Lien - 15 Year), 4 (65% Term / 10% Jr. Lien - 20 Year), 5 (65% Term / 10% Jr. Lien - 25 Year), 6 (65% Term / 15% Jr. Lien - 10 Year), 7 (65% Term / 15% Jr. Lien - 12 Year), 8 (65% Term / 15% Jr. Lien - 15 Year), 9 (65% Term / 15% Jr. Lien - 5 Year), 10 (70% Term / 10% Jr. Lien - 10 Year), 11 (70% Term / 10% Jr. Lien - 12 Year), 12 (70% Term / 10% Jr. Lien - 15 Year), 13 (70% Term / 10% Jr. Lien - 5 Year), 14 (75% Loan - 30 Year Amortization), 15 (80% Loan - 30 Year Amortization)

See a functioning version of this calculator here: http://www.calcxml.com/do/cus83

Description Of Shared Request Elements

username - Provided by CalcXML
password - Provided by CalcXML
responseType - While there are various responseTypes, the only values that really make sense for REST integrations are raw, raw2 and pdf. raw2 includes result paragraphs/text where raw does not. pdf returns a URL to the generated PDF. Default: raw2.
returnDataTable - Indicates whether the detailed data table should be included in the response. Valid values: true or false. Default: true
chartLibrary - Indicates what type of chart should be generated. Valid values: image or flash. Default value: image
language - 2-character language code. Conform to ISO 639-1 Code. Used in conjunction with countryCode to format currency values. Find the full list here: http://www.loc.gov/standards/iso639-2/php/English_list.php. Default: en
countryCode - 2-character country code. Conform to ISO 3166-1-alpha-2. Used to format currency values that are returned in the response. Find the full list here: http://www.iso.org/iso/english_country_names_and_code_elements OR here: http://countrycode.org/. Default: US
version - The version of the schema being used for this request. Current/Default = 1.3
chartTitle - Change the chart title for the image.
threeD - Use a 3d effect when rendering the chart. Use 0 to disable. Use 1 to enable. Default = 1
chartHeight - Specify a height in pixels for the image. Default = 300
chartWidth - Specify a width in pixels for the image. Default = 400
barColor1 - Specify a custom chart color in hexadecimal.
barColor2 - Specify a custom chart color in hexadecimal.
barColor3 - Specify a custom chart color in hexadecimal.
barColor4 - Specify a custom chart color in hexadecimal.
barColor5 - Specify a custom chart color in hexadecimal.
barColor6 - Specify a custom chart color in hexadecimal.

Sample JSON Response

Click Submit to send the JSON request below to be processed. The JSON response will be displayed in a new tab/window. You can modify the JSON request prior to sending it as well.

JSON request