Request parameters (JSON):

  • tenant - (mandatory) - to which tenant/system to connect, e.g. "zegoal"
    • contract - Contract information option
      • contract_status - (optional) - Contract Status (i.e. Signed)
      • contract_num - (optional) - Contract's Number
      • signation_date - (optional) - Contract's signation date, Default value CURRENT_DATE
      • valid_from - (optional) - Contract's valid from date, Default value CURRENT_DATE
      • valid_to - (optional) - Contract's valid to date, Default value 2050-01-01 00:00:00
      • description - (optional) - Contact Description *


Examples



 {
    "tenant": "zegoal",
    "account_id":12 ,
    "contract": {
      "description": "created by addContract API",
      "contract_status": "Signed",
      "contract_num": "TESTCONTRACT",
      "signation_date": "",
       "valid_to": "",
         "valid_from": "20108:48:51"
    }
    
  }

CODE



{
   "processing_result":    {
      "text": "success",
      "status": "ok",
      "code": 0
   },
   "processing_date": "2019-11-14 16:30:34",
   "AddContract":    {
      "response":       {
         "tenant": "zegoal",
         "skip_lookup_account": false,
         "flow_type": "AddContract",
         "contract":          {
            "valid_to": "",
            "valid_from": "20108:48:51",
            "signation_date": "",
            "description": "created by addContract API",
            "contract_status": "Signed",
            "contract_num": "TESTCONTRACT"
         },
         "account_id": 12,
         "TZ": "Europe/Minsk"
      },
      "request":       {
         "tenant": "zegoal",
         "contract":          {
            "valid_to": "",
            "valid_from": "20108:48:51",
            "signation_date": "",
            "description": "created by addContract API",
            "contract_status": "Signed",
            "contract_num": "TESTCONTRACT"
         },
         "account_id": 12
      }
   }
}
CODE