Request parameters

  • tenant - (mandatory) - to which tenant/system to connect, e.g. "zegoal"
  • account_code - (conditional) - Account External Code, e.g. Account ID in external system
  • account_name - (conditional) - Account Name
  • account_id - (conditional) - Account ID
  • contracts
    • contract_id

One of conditional parameters: account_id, or account_name, or account_code - is mandatory to be provided.


Error codes:

  • validation failed - some mandatory parameter is missed or Value is not supported by respective dictionary. See more details in the error's details
  • contracts not found - wrong ID of requested contracts or they are not associated with your account
  • no contracts in the request - your collection of contract_ids is empty. You should insert at least one id
  • to many contracts in the request - some of the given contracts are not associated with your account or there are duplicates of in the request
  • not all contracts found - wrong ID of requested contracts or they are not associated with your account


Examples

{
"tenant": "zegoal",
            "account_id": 373,
            "contracts": [
                {
                    "contract_id": 229
                }
            ]
}
CODE


{
   "processing_result":    {
      "text": "success",
      "status": "ok",
      "code": 0
   },
   "processing_date": "2020-01-14 15:54:57",
   "DeleteAccountContracts":    {
      "response": {"deleted_contracts":       {
         "signing_date": "2019-12-26 12:49:04",
         "contract_valid_to": "2050-01-01 00:00:00",
         "contract_valid_from": "2019-12-26 12:49:04",
         "contract_status": "Signed",
         "contract_number": "229",
         "contract_id": 229,
         "contract_description": ""
      }},
      "request":       {
         "tenant": "zegoal",
         "contracts": [{"contract_id": 229}],
         "account_id": 373
      },
      "TZ": "Europe/Minsk"
   }
}
CODE