CalcXML REST Web Services - adv02 Calculator

URL

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

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","clientFirstName": "null","clientLastName": "null","spouseFirstName": "null","spouseLastName": "null","scenarioDescription": "null","clientAddress": "null","clientCity": "null","clientState": "null","clientZip": "null","clientPhone": "null","advisorName": "null","advisorTitle": "null","advisorCompanyName": "null","companyAddress1": "null","companyAddress2": "null","companyCity": "null","companyState": "null","companyZip": "null","companyPhone": "null","child1Name": "name here","child1DOB": "null","child1School": "null","child1Cost": "0","child1SavingsTaxable": "0","child1Savings529": "0","child1ParentsPay": "1","child1StartAge": "18","child1YearsNeeded": "4","child2Name": "","child2DOB": "null","child2School": "null","child2Cost": "0","child2SavingsTaxable": "0","child2Savings529": "0","child2ParentsPay": "1","child2StartAge": "18","child2YearsNeeded": "4","child3Name": "","child3DOB": "null","child3School": "null","child3Cost": "0","child3SavingsTaxable": "0","child3Savings529": "0","child3ParentsPay": "1","child3StartAge": "18","child3YearsNeeded": "4","child4Name": "","child4DOB": "null","child4School": "null","child4Cost": "0","child4SavingsTaxable": "0","child4Savings529": "0","child4ParentsPay": "1","child4StartAge": "18","child4YearsNeeded": "4","child5Name": "","child5DOB": "null","child5School": "null","child5Cost": "0","child5SavingsTaxable": "0","child5Savings529": "0","child5ParentsPay": "1","child5StartAge": "18","child5YearsNeeded": "4","child6Name": "","child6DOB": "null","child6School": "null","child6Cost": "0","child6SavingsTaxable": "0","child6Savings529": "0","child6ParentsPay": "1","child6StartAge": "18","child6YearsNeeded": "4","collegeInflation": ".06","collegeReturn": ".08","preRetirementTaxRate": ".25","collegeSavingsIncrease": "0","child1Age": "null","child2Age": "null","child3Age": "null","child4Age": "null","child5Age": "null","child6Age": "null","color1": "null","color2": "null","color3": "null","color4": "null","color5": "null","color6": "null","disclaimer1": "null","disclaimer2": "null","disclaimer3": "null","disclaimer4": "null","ppid": "null","moduleTitle": "null"}

Minimal JSON Request

Optional elements will be defaulted

{"username": "XXXXXX","password": "XXXXXX","clientFirstName": "null","clientLastName": "null","spouseFirstName": "null","spouseLastName": "null","scenarioDescription": "null","clientAddress": "null","clientCity": "null","clientState": "null","clientZip": "null","clientPhone": "null","advisorName": "null","advisorTitle": "null","advisorCompanyName": "null","companyAddress1": "null","companyAddress2": "null","companyCity": "null","companyState": "null","companyZip": "null","companyPhone": "null","child1Name": "name here","child1DOB": "null","child1School": "null","child1Cost": "0","child1SavingsTaxable": "0","child1Savings529": "0","child1ParentsPay": "1","child1StartAge": "18","child1YearsNeeded": "4","child2Name": "","child2DOB": "null","child2School": "null","child2Cost": "0","child2SavingsTaxable": "0","child2Savings529": "0","child2ParentsPay": "1","child2StartAge": "18","child2YearsNeeded": "4","child3Name": "","child3DOB": "null","child3School": "null","child3Cost": "0","child3SavingsTaxable": "0","child3Savings529": "0","child3ParentsPay": "1","child3StartAge": "18","child3YearsNeeded": "4","child4Name": "","child4DOB": "null","child4School": "null","child4Cost": "0","child4SavingsTaxable": "0","child4Savings529": "0","child4ParentsPay": "1","child4StartAge": "18","child4YearsNeeded": "4","child5Name": "","child5DOB": "null","child5School": "null","child5Cost": "0","child5SavingsTaxable": "0","child5Savings529": "0","child5ParentsPay": "1","child5StartAge": "18","child5YearsNeeded": "4","child6Name": "","child6DOB": "null","child6School": "null","child6Cost": "0","child6SavingsTaxable": "0","child6Savings529": "0","child6ParentsPay": "1","child6StartAge": "18","child6YearsNeeded": "4","collegeInflation": ".06","collegeReturn": ".08","preRetirementTaxRate": ".25","collegeSavingsIncrease": "0","child1Age": "null","child2Age": "null","child3Age": "null","child4Age": "null","child5Age": "null","child6Age": "null","color1": "null","color2": "null","color3": "null","color4": "null","color5": "null","color6": "null","disclaimer1": "null","disclaimer2": "null","disclaimer3": "null","disclaimer4": "null","ppid": "null","moduleTitle": "null"}

Description Of Calculator-Specific Request Elements

clientFirstName Data type: xs:string Valid values: 0 to 999999999
clientLastName Data type: xs:string Valid values: 0 to 999999999
spouseFirstName Data type: xs:string Valid values: 0 to 999999999
spouseLastName Data type: xs:string Valid values: 0 to 999999999
scenarioDescription Data type: xs:string Valid values: 0 to 999999999
clientAddress Data type: xs:string Valid values: 0 to 999999999
clientCity Data type: xs:string Valid values: 0 to 999999999
clientState Data type: xs:string Valid values: 0 to 999999999
clientZip Data type: xs:string Valid values: 0 to 999999999
clientPhone Data type: xs:string Valid values: 0 to 999999999
advisorName Data type: xs:string Valid values: 0 to 999999999
advisorTitle Data type: xs:string Valid values: 0 to 999999999
advisorCompanyName Data type: xs:string Valid values: 0 to 999999999
companyAddress1 Data type: xs:string Valid values: 0 to 999999999
companyAddress2 Data type: xs:string Valid values: 0 to 999999999
companyCity Data type: xs:string Valid values: 0 to 999999999
companyState Data type: xs:string Valid values: 0 to 999999999
companyZip Data type: xs:string Valid values: 0 to 999999999
companyPhone Data type: xs:string Valid values: 0 to 999999999
child1Name Data type: xs:string Valid values: 0 to 999999999
child1DOB Data type: xs:string Valid values: 0 to 999999999
child1School Data type: xs:string Valid values: 0 to 999999999
child1Cost Data type: xs:double Valid values: 0 to 999999999
child1SavingsTaxable Data type: xs:double Valid values: 0 to 999999999
child1Savings529 Data type: xs:double Valid values: 0 to 999999999
child1ParentsPay Data type: xs:float Valid values: 0 to 1
child1StartAge Data type: xs:integer Valid values: 0 to 30
child1YearsNeeded Data type: xs:integer Valid values: 0 to 20
child2Name Data type: xs:string Valid values: 0 to 999999999
child2DOB Data type: xs:string Valid values: 0 to 999999999
child2School Data type: xs:string Valid values: 0 to 999999999
child2Cost Data type: xs:double Valid values: 0 to 999999999
child2SavingsTaxable Data type: xs:double Valid values: 0 to 999999999
child2Savings529 Data type: xs:double Valid values: 0 to 999999999
child2ParentsPay Data type: xs:float Valid values: 0 to 1
child2StartAge Data type: xs:integer Valid values: 0 to 30
child2YearsNeeded Data type: xs:integer Valid values: 0 to 20
child3Name Data type: xs:string Valid values: 0 to 999999999
child3DOB Data type: xs:string Valid values: 0 to 999999999
child3School Data type: xs:string Valid values: 0 to 999999999
child3Cost Data type: xs:double Valid values: 0 to 999999999
child3SavingsTaxable Data type: xs:double Valid values: 0 to 999999999
child3Savings529 Data type: xs:double Valid values: 0 to 999999999
child3ParentsPay Data type: xs:float Valid values: 0 to 1
child3StartAge Data type: xs:integer Valid values: 0 to 30
child3YearsNeeded Data type: xs:integer Valid values: 0 to 20
child4Name Data type: xs:string Valid values: 0 to 999999999
child4DOB Data type: xs:string Valid values: 0 to 999999999
child4School Data type: xs:string Valid values: 0 to 999999999
child4Cost Data type: xs:double Valid values: 0 to 999999999
child4SavingsTaxable Data type: xs:double Valid values: 0 to 999999999
child4Savings529 Data type: xs:double Valid values: 0 to 999999999
child4ParentsPay Data type: xs:float Valid values: 0 to 1
child4StartAge Data type: xs:integer Valid values: 0 to 30
child4YearsNeeded Data type: xs:integer Valid values: 0 to 20
child5Name Data type: xs:string Valid values: 0 to 999999999
child5DOB Data type: xs:string Valid values: 0 to 999999999
child5School Data type: xs:string Valid values: 0 to 999999999
child5Cost Data type: xs:double Valid values: 0 to 999999999
child5SavingsTaxable Data type: xs:double Valid values: 0 to 999999999
child5Savings529 Data type: xs:double Valid values: 0 to 999999999
child5ParentsPay Data type: xs:float Valid values: 0 to 1
child5StartAge Data type: xs:integer Valid values: 0 to 30
child5YearsNeeded Data type: xs:integer Valid values: 0 to 20
child6Name Data type: xs:string Valid values: 0 to 999999999
child6DOB Data type: xs:string Valid values: 0 to 999999999
child6School Data type: xs:string Valid values: 0 to 999999999
child6Cost Data type: xs:double Valid values: 0 to 999999999
child6SavingsTaxable Data type: xs:double Valid values: 0 to 999999999
child6Savings529 Data type: xs:double Valid values: 0 to 999999999
child6ParentsPay Data type: xs:float Valid values: 0 to 1
child6StartAge Data type: xs:integer Valid values: 0 to 30
child6YearsNeeded Data type: xs:integer Valid values: 0 to 20
collegeInflation Data type: xs:float Valid values: 0 to .10
collegeReturn Data type: xs:float Valid values: -.12 to .12
preRetirementTaxRate Data type: xs:float Valid values: 0 to .75
collegeSavingsIncrease Data type: xs:float Valid values: 0 to .2
child1Age Data type: xs:string Valid values: 0 to 999999999
child2Age Data type: xs:string Valid values: 0 to 999999999
child3Age Data type: xs:string Valid values: 0 to 999999999
child4Age Data type: xs:string Valid values: 0 to 999999999
child5Age Data type: xs:string Valid values: 0 to 999999999
child6Age Data type: xs:string Valid values: 0 to 999999999
color1 Data type: xs:string Valid values: 0 to 999999999
color2 Data type: xs:string Valid values: 0 to 999999999
color3 Data type: xs:string Valid values: 0 to 999999999
color4 Data type: xs:string Valid values: 0 to 999999999
color5 Data type: xs:string Valid values: 0 to 999999999
color6 Data type: xs:string Valid values: 0 to 999999999
disclaimer1 Data type: xs:string Valid values: 0 to 999999999
disclaimer2 Data type: xs:string Valid values: 0 to 999999999
disclaimer3 Data type: xs:string Valid values: 0 to 999999999
disclaimer4 Data type: xs:string Valid values: 0 to 999999999
ppid Data type: xs:string Valid values: 0 to 999999999
moduleTitle Data type: xs:string Valid values: 0 to 999999999

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

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