CalcXML REST Web Services - col01 Calculator

URL

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

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","collegeInflation": ".06","amountSaved": "0","child1Name": "name here","child1Age": "0","child1Schoolage": "18","child1Years": "4","child1Amount": "0","child2Name": "null","child2Age": "0","child2Schoolage": "18","child2Years": "4","child2Amount": "0","child3Name": "null","child3Age": "0","child3Schoolage": "18","child3Years": "4","child3Amount": "0","child4Name": "null","child4Age": "0","child4Schoolage": "18","child4Years": "4","child4Amount": "0","child5Name": "null","child5Age": "0","child5Schoolage": "18","child5Years": "4","child5Amount": "0","child6Name": "null","child6Age": "0","child6Schoolage": "18","child6Years": "4","child6Amount": "0","beforeTaxReturn": ".08","taxBracket": ".22","annualIncreases": "0"}

Minimal JSON Request

Optional elements will be defaulted

{"username": "XXXXXX","password": "XXXXXX","collegeInflation": ".06","amountSaved": "0","child1Name": "name here","child1Age": "0","child1Schoolage": "18","child1Years": "4","child1Amount": "0","child2Name": "null","child2Age": "0","child2Schoolage": "18","child2Years": "4","child2Amount": "0","child3Name": "null","child3Age": "0","child3Schoolage": "18","child3Years": "4","child3Amount": "0","child4Name": "null","child4Age": "0","child4Schoolage": "18","child4Years": "4","child4Amount": "0","child5Name": "null","child5Age": "0","child5Schoolage": "18","child5Years": "4","child5Amount": "0","child6Name": "null","child6Age": "0","child6Schoolage": "18","child6Years": "4","child6Amount": "0","beforeTaxReturn": ".08","taxBracket": ".22","annualIncreases": "0"}

Description Of Calculator-Specific Request Elements

collegeInflation Data type: xs:float Valid values: 0 to .10
amountSaved Data type: xs:double Valid values: 0 to 999999999
child1Name Data type: xs:string Valid values: 0 to 999999999
child1Age Data type: xs:integer Valid values: 0 to 30
child1Schoolage Data type: xs:integer Valid values: 0 to 30
child1Years Data type: xs:integer Valid values: 0 to 20
child1Amount Data type: xs:double Valid values: 0 to 999999999
child2Name Data type: xs:string Valid values: 0 to 999999999
child2Age Data type: xs:integer Valid values: 0 to 30
child2Schoolage Data type: xs:integer Valid values: 0 to 30
child2Years Data type: xs:integer Valid values: 0 to 20
child2Amount Data type: xs:double Valid values: 0 to 999999999
child3Name Data type: xs:string Valid values: 0 to 999999999
child3Age Data type: xs:integer Valid values: 0 to 30
child3Schoolage Data type: xs:integer Valid values: 0 to 30
child3Years Data type: xs:integer Valid values: 0 to 20
child3Amount Data type: xs:double Valid values: 0 to 999999999
child4Name Data type: xs:string Valid values: 0 to 999999999
child4Age Data type: xs:integer Valid values: 0 to 30
child4Schoolage Data type: xs:integer Valid values: 0 to 30
child4Years Data type: xs:integer Valid values: 0 to 20
child4Amount Data type: xs:double Valid values: 0 to 999999999
child5Name Data type: xs:string Valid values: 0 to 999999999
child5Age Data type: xs:integer Valid values: 0 to 30
child5Schoolage Data type: xs:integer Valid values: 0 to 30
child5Years Data type: xs:integer Valid values: 0 to 20
child5Amount Data type: xs:double Valid values: 0 to 999999999
child6Name Data type: xs:string Valid values: 0 to 999999999
child6Age Data type: xs:integer Valid values: 0 to 30
child6Schoolage Data type: xs:integer Valid values: 0 to 30
child6Years Data type: xs:integer Valid values: 0 to 20
child6Amount Data type: xs:double Valid values: 0 to 999999999
beforeTaxReturn Data type: xs:float Valid values: -.12 to .12
taxBracket Data type: xs:float Valid values: 0 to .75
annualIncreases Data type: xs:float Valid values: 0 to .2

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

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