Formatting and Escaping

Prev Next

Escaping Body Parameters

Because body parameters are passed identical to how query string parameters are passed (& delimited, name=value pairs), including '&', '=', or '+' causes problems. Because of this, you will need to escape these characters.

CenPoint has a unique way to escape these:

  • "&" => "~~and~~"
  • "=" => "~~equals~~"
  • "+" => "~~plus~~"

Example:

Body: custId=0000000043&tsDate=2020-06-03T00:00:00&workDesc=Scan ~~and~~ core 28 holes... rest of desc... contact Scott for questions&siteContFName=Scott&siteContLName=CenPoint&addr1=13134 S 5800 W&city=Herriman&state=UT

Formatting

For the API, need to post the date format must be in one of the following formats: 

  • 2020-06-03T00:00:00 
  • 06/03/2020 NOTE: if this format is used, it must be in MM/DD/YYYY format