Request parameters (JSON):

  • tenant - (mandatory) - to which tenant/system to connect, e.g. "zegoal"
    • contract - Contract information option
      • contract_oid (mandatory) - Contract Unique Id that will be updated
      • contract_status - (conditional) - Contract Status (i.e. Signed)
      • contract_num - (conditional) - Contract's Number
      • signation_date - (conditional) - Contract's signation date
      • valid_from - (conditional) - Contract's valid from date
      • valid_to - (conditional) - Contract's valid to date
      • description - (conditional) - Contact Description UpdateContract API

Response details (JSON):

  • UpdateContract
    • request
      • "input" (request parameters) as is; only those parameters that were sent in input
    • response
      • <all request parameters> (filled with default values if were missing in input)
      • TZ - time zone of processing
      • account_id - provided Account's ID
      • contract - contract info
        • contact_num - Contract Number
        • contact_desc - Contract Description
        • contract_oid - Contract Unique Id


Examles


{
    "tenant": "zegoal",
    "account_id": 264,
   "contract":          {
            "signing_date": "2019-11-14 14:46:40",
            "contract_valid_to": "2050-01-01 00:00:00",
            "contract_valid_from": "2019-11-14 14:46:40",
            "contract_status": "Signed",
            "contract_oid": 269,
            "contract_description": "11111"
         }
         
}
CODE


{
   "processing_result":    {
      "text": "success",
      "status": "ok",
      "code": 0
   },
   "processing_date": "2019-11-14 17:15:58",
   "AddContract":    {
      "response":       {
         "tenant": "zegoal",
         "skip_lookup_account": false,
         "flow_type": "AddContract",
         "contract":          {
            "valid_to": "2050-01-01 00:00:00",
            "valid_from": "CURRENT_DATE",
            "signing_date": "2019-11-14 14:46:40",
            "signation_date": "CURRENT_DATE",
            "contract_valid_to": "2050-01-01 00:00:00",
            "contract_valid_from": "2019-11-14 14:46:40",
            "contract_status": "Signed",
            "contract_oid": 269,
            "contract_description": "11111"
         },
         "account_id": 2,
         "TZ": "Europe/Minsk"
      },
      "request":       {
         "tenant": "zegoal",
         "contract":          {
            "signing_date": "2019-11-14 14:46:40",
            "contract_valid_to": "2050-01-01 00:00:00",
            "contract_valid_from": "2019-11-14 14:46:40",
            "contract_status": "Signed",
            "contract_oid": 269,
            "contract_description": "11111"
         },
         "account_id": 2
      }
   }
}
CODE