Request parameters


  • tenant - (mandatory) - to which tenant/system to connect, e.g. "zegoal"
  • account_id - (mandatory) - AccountID for which LC will be applied
  • account_name - (conditional) - Account Name
  • account_code - (conditional) - Account Code
  • lc_status - (mandatory) - LC state which will be applied
  • lc_valid_from - (optional) - LC valid from, if not set - LC will be applied from current time
  • offset - (optional) - Set offset (e.g. "+6days"); number of days from "now" when LC state should be applied
  • clean - (optional) - all LCs will be cleaned, valid values: [1, 0]
  • reason - (optional) - string that will be return in notification.
  • force_lc_change - (optional) - need to be used in case account is in Terminated state, otherwise an error will be thrown. Valid values are  true and false



Examples

{
 "tenant": "zegoal",
 "account_id": 4,
 "lc_status": "Active",
 "reason": "Reactivate subscription"
 
}
CODE

Response

{
   "processing_result":    {
      "text": "success",
      "status": "ok",
      "code": 0
   },
   "processing_date": "2019-10-02 11:45:58",
   "SetLC":    {
      "response": true,
      "request":       {
         "tenant": "zegoal",
         "lc_status": "Active",
         "account_id": 4,
		 "reason": "Reactivate subscription"
      }
   }
}
CODE