Data/Templates/Contract.json

[
    {
      "id": 0,
      "client_id": 0,
      "client_name": "string",
      "ref": "string",
      "start_date": "2019-08-02T14:35:55.465Z",
      "end_date": "2019-08-02T14:35:55.465Z",
      "started": true,
      "expired": true,
      "numberofunitsfree": 0,
      "billingperiod": 0,
      "billingdescription": 0,
      "status": 0,
      "site_id": 0,
      "site_name": "string",
      "sla_id": 0,
      "periodicinvoicenextdate": "2019-08-02T14:35:55.465Z",
      "periodchargeamount": 0,
      "note": "string",
      "sla_name": "string",
      "startbalance": 0,
      "paymentscheme": 0,
      "chargehoursperperiod": 0,
      "chargerollover": true,
      "outofhoursmultiplier": 0,
      "requestminimum": 0,
      "invoiceminimum": 0,
      "allowfixedprice": true,
      "allowpyg": true,
      "allowprepay": true,
      "chargeperdevice": true,
      "prepayrecurringcharge": 0,
      "chargeprepaytravel": true,
      "chargeprepaymileage": true,
      "chargepygtravel": true,
      "chargepygmileage": true,
      "onlybillatendofperiod": true,
      "unmatchedcombinations": 0,
      "termmonths": 0,
      "percentageincrease": 0,
      "nextincrementdate": "2019-08-02T14:35:55.465Z",
      "datereceived": "2019-08-02T14:35:55.465Z",
      "invoicedescription": "string",
      "datesent": "2019-08-02T14:35:55.466Z",
      "paymentmethod": 0,
      "dontsendalarm": true,
      "createdby_id": 0,
      "createdfrom_id": 0,
      "costperperiod": 0,
      "rollingcontract": true,
      "previouscontract": 0,
      "billingcategory": 0,
      "dontinvoice": true,
      "ohid": 0,
      "emailaddresses": "string",
      "scheduleemails": "string",
      "schedulesendaccountmanager": true,
      "accountsdesc": "string",
      "hasactions": true,
      "billingperiods": 0,
      "assets": [
        {
          "id": 0,
          "inventory_number": "string",
          "key_field": "string",
          "key_field2": "string",
          "key_field3": "string",
          "client_id": 0,
          "client_name": "string",
          "site_id": 0,
          "site_name": "string",
          "assettype_id": 0,
          "assettype_name": "string",
          "colour": "string",
          "icon": "string",
          "warranty_end": "2019-08-02T14:35:55.466Z",
          "inactive": true,
          "is_primary_asset": true,
          "fields": [
            {
              "id": 0,
              "name": "string",
              "validate": "string",
              "value": {},
              "display": "string",
              "mandatory": true,
              "showonactivity": true,
              "lookup": 0,
              "systemuse": 0,
              "typeinfo_id": 0
            }
          ],
          "customfields": [
            {
              "id": 0,
              "name": "string",
              "label": "string",
              "summary": "string",
              "type": 0,
              "value": {},
              "display": "string",
              "characterlimit": 0,
              "characterlimittype": 0,
              "inputtype": 0,
              "copytochild": true,
              "searchable": true,
              "ordervalues": true
            }
          ],
          "device_number": 0,
          "parent_id": 0,
          "child_id": 0,
          "contract_value": 0,
          "contract_ref": "string"
        }
      ],
      "customfields": [
        {
          "id": 0,
          "name": "string",
          "label": "string",
          "summary": "string",
          "type": 0,
          "value": {},
          "display": "string",
          "characterlimit": 0,
          "characterlimittype": 0,
          "inputtype": 0,
          "copytochild": true,
          "searchable": true,
          "ordervalues": true
        }
      ],
      "periods": [
        {
          "id": 0,
          "contract_id": 0,
          "name": "string",
          "start_date": "2019-08-02T14:35:55.466Z",
          "end_date": "2019-08-02T14:35:55.466Z",
          "current": true,
          "hours_in_period": 0,
          "hours_used": 0,
          "hours_remaining": 0
        }
      ],
      "_warning": "string"
    }
  ]