PUT api/SaiSDContract/UpdateContract

Request Information

URI Parameters

None.

Body Parameters

SaiSDContract
NameDescriptionTypeAdditional information
AccountId

integer

None.

CompanyId

string

None.

ContractNum

string

None.

NewContractNum

string

None.

ContractType

string

None.

NumberOfSystem

integer

None.

StartDate

date

None.

ExpiryDate

date

None.

Amount

decimal number

None.

Status

string

None.

ContractDescription

string

None.

CancelDate

date

None.

CancelAmount

decimal number

None.

OperatorCode

string

None.

RegularAccounting

boolean

None.

ReserveAccounting

boolean

None.

IsApproved

boolean

None.

ContractApprovedBy

string

None.

CustomerPONum

string

None.

ApprovedOn

date

None.

ContractNote

string

None.

BreakType1

integer

None.

BreakCode1

string

None.

BreakType2

integer

None.

BreakCode2

string

None.

ServiceMasterNum

string

None.

SalesmanNum

string

None.

ColorCode

string

None.

ContractBillingColorCode

string

None.

AssociatedEquipmentIds

Collection of string

None.

CreateBillingSchedule

boolean

None.

CreateMaintenanceSchedule

boolean

None.

NewContractAmount

decimal number

None.

NewContractStartDate

date

None.

NewContractExpiryDate

date

None.

SMName

string

None.

MockContractId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountId": 1,
  "CompanyId": "sample string 2",
  "ContractNum": "sample string 3",
  "NewContractNum": "sample string 4",
  "ContractType": "sample string 5",
  "NumberOfSystem": 6,
  "StartDate": "2025-12-16T20:34:49.7148117+00:00",
  "ExpiryDate": "2025-12-16T20:34:49.7148117+00:00",
  "Amount": 1.0,
  "Status": "sample string 9",
  "ContractDescription": "sample string 10",
  "CancelDate": "2025-12-16T20:34:49.7148117+00:00",
  "CancelAmount": 1.0,
  "OperatorCode": "sample string 11",
  "RegularAccounting": true,
  "ReserveAccounting": true,
  "IsApproved": true,
  "ContractApprovedBy": "sample string 13",
  "CustomerPONum": "sample string 14",
  "ApprovedOn": "2025-12-16T20:34:49.7148117+00:00",
  "ContractNote": "sample string 15",
  "BreakType1": 16,
  "BreakCode1": "sample string 17",
  "BreakType2": 18,
  "BreakCode2": "sample string 19",
  "ServiceMasterNum": "sample string 20",
  "SalesmanNum": "sample string 21",
  "ColorCode": "sample string 22",
  "ContractBillingColorCode": "sample string 23",
  "AssociatedEquipmentIds": [
    "sample string 1",
    "sample string 2"
  ],
  "CreateBillingSchedule": true,
  "CreateMaintenanceSchedule": true,
  "NewContractAmount": 1.0,
  "NewContractStartDate": "2025-12-16T20:34:49.7148117+00:00",
  "NewContractExpiryDate": "2025-12-16T20:34:49.7148117+00:00",
  "SMName": "sample string 28",
  "MockContractId": "sample string 29"
}

application/xml, text/xml

Sample:
<SaiSDContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SAWinProV4.Model.DTO.AccountSpecific.SD">
  <AccountId>1</AccountId>
  <Amount>1</Amount>
  <ApprovedOn>2025-12-16T20:34:49.7148117+00:00</ApprovedOn>
  <AssociatedEquipmentIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </AssociatedEquipmentIds>
  <BreakCode1>sample string 17</BreakCode1>
  <BreakCode2>sample string 19</BreakCode2>
  <BreakType1>16</BreakType1>
  <BreakType2>18</BreakType2>
  <CancelAmount>1</CancelAmount>
  <CancelDate>2025-12-16T20:34:49.7148117+00:00</CancelDate>
  <ColorCode>sample string 22</ColorCode>
  <CompanyId>sample string 2</CompanyId>
  <ContractApprovedBy>sample string 13</ContractApprovedBy>
  <ContractBillingColorCode>sample string 23</ContractBillingColorCode>
  <ContractDescription>sample string 10</ContractDescription>
  <ContractNote>sample string 15</ContractNote>
  <ContractNum>sample string 3</ContractNum>
  <ContractType>sample string 5</ContractType>
  <CreateBillingSchedule>true</CreateBillingSchedule>
  <CreateMaintenanceSchedule>true</CreateMaintenanceSchedule>
  <CustomerPONum>sample string 14</CustomerPONum>
  <ExpiryDate>2025-12-16T20:34:49.7148117+00:00</ExpiryDate>
  <IsApproved>true</IsApproved>
  <MockContractId>sample string 29</MockContractId>
  <NewContractAmount>1</NewContractAmount>
  <NewContractExpiryDate>2025-12-16T20:34:49.7148117+00:00</NewContractExpiryDate>
  <NewContractNum>sample string 4</NewContractNum>
  <NewContractStartDate>2025-12-16T20:34:49.7148117+00:00</NewContractStartDate>
  <NumberOfSystem>6</NumberOfSystem>
  <OperatorCode>sample string 11</OperatorCode>
  <RegularAccounting>true</RegularAccounting>
  <ReserveAccounting>true</ReserveAccounting>
  <SMName>sample string 28</SMName>
  <SalesmanNum>sample string 21</SalesmanNum>
  <ServiceMasterNum>sample string 20</ServiceMasterNum>
  <StartDate>2025-12-16T20:34:49.7148117+00:00</StartDate>
  <Status>sample string 9</Status>
</SaiSDContract>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SaiSDContract
NameDescriptionTypeAdditional information
AccountId

integer

None.

CompanyId

string

None.

ContractNum

string

None.

NewContractNum

string

None.

ContractType

string

None.

NumberOfSystem

integer

None.

StartDate

date

None.

ExpiryDate

date

None.

Amount

decimal number

None.

Status

string

None.

ContractDescription

string

None.

CancelDate

date

None.

CancelAmount

decimal number

None.

OperatorCode

string

None.

RegularAccounting

boolean

None.

ReserveAccounting

boolean

None.

IsApproved

boolean

None.

ContractApprovedBy

string

None.

CustomerPONum

string

None.

ApprovedOn

date

None.

ContractNote

string

None.

BreakType1

integer

None.

BreakCode1

string

None.

BreakType2

integer

None.

BreakCode2

string

None.

ServiceMasterNum

string

None.

SalesmanNum

string

None.

ColorCode

string

None.

ContractBillingColorCode

string

None.

AssociatedEquipmentIds

Collection of string

None.

CreateBillingSchedule

boolean

None.

CreateMaintenanceSchedule

boolean

None.

NewContractAmount

decimal number

None.

NewContractStartDate

date

None.

NewContractExpiryDate

date

None.

SMName

string

None.

MockContractId

string

None.

Response Formats

application/json, text/json

Sample:
{
  "AccountId": 1,
  "CompanyId": "sample string 2",
  "ContractNum": "sample string 3",
  "NewContractNum": "sample string 4",
  "ContractType": "sample string 5",
  "NumberOfSystem": 6,
  "StartDate": "2025-12-16T20:34:49.8241497+00:00",
  "ExpiryDate": "2025-12-16T20:34:49.8241497+00:00",
  "Amount": 1.0,
  "Status": "sample string 9",
  "ContractDescription": "sample string 10",
  "CancelDate": "2025-12-16T20:34:49.8241497+00:00",
  "CancelAmount": 1.0,
  "OperatorCode": "sample string 11",
  "RegularAccounting": true,
  "ReserveAccounting": true,
  "IsApproved": true,
  "ContractApprovedBy": "sample string 13",
  "CustomerPONum": "sample string 14",
  "ApprovedOn": "2025-12-16T20:34:49.8241497+00:00",
  "ContractNote": "sample string 15",
  "BreakType1": 16,
  "BreakCode1": "sample string 17",
  "BreakType2": 18,
  "BreakCode2": "sample string 19",
  "ServiceMasterNum": "sample string 20",
  "SalesmanNum": "sample string 21",
  "ColorCode": "sample string 22",
  "ContractBillingColorCode": "sample string 23",
  "AssociatedEquipmentIds": [
    "sample string 1",
    "sample string 2"
  ],
  "CreateBillingSchedule": true,
  "CreateMaintenanceSchedule": true,
  "NewContractAmount": 1.0,
  "NewContractStartDate": "2025-12-16T20:34:49.8241497+00:00",
  "NewContractExpiryDate": "2025-12-16T20:34:49.8241497+00:00",
  "SMName": "sample string 28",
  "MockContractId": "sample string 29"
}

application/xml, text/xml

Sample:
<SaiSDContract xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SAWinProV4.Model.DTO.AccountSpecific.SD">
  <AccountId>1</AccountId>
  <Amount>1</Amount>
  <ApprovedOn>2025-12-16T20:34:49.8241497+00:00</ApprovedOn>
  <AssociatedEquipmentIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </AssociatedEquipmentIds>
  <BreakCode1>sample string 17</BreakCode1>
  <BreakCode2>sample string 19</BreakCode2>
  <BreakType1>16</BreakType1>
  <BreakType2>18</BreakType2>
  <CancelAmount>1</CancelAmount>
  <CancelDate>2025-12-16T20:34:49.8241497+00:00</CancelDate>
  <ColorCode>sample string 22</ColorCode>
  <CompanyId>sample string 2</CompanyId>
  <ContractApprovedBy>sample string 13</ContractApprovedBy>
  <ContractBillingColorCode>sample string 23</ContractBillingColorCode>
  <ContractDescription>sample string 10</ContractDescription>
  <ContractNote>sample string 15</ContractNote>
  <ContractNum>sample string 3</ContractNum>
  <ContractType>sample string 5</ContractType>
  <CreateBillingSchedule>true</CreateBillingSchedule>
  <CreateMaintenanceSchedule>true</CreateMaintenanceSchedule>
  <CustomerPONum>sample string 14</CustomerPONum>
  <ExpiryDate>2025-12-16T20:34:49.8241497+00:00</ExpiryDate>
  <IsApproved>true</IsApproved>
  <MockContractId>sample string 29</MockContractId>
  <NewContractAmount>1</NewContractAmount>
  <NewContractExpiryDate>2025-12-16T20:34:49.8241497+00:00</NewContractExpiryDate>
  <NewContractNum>sample string 4</NewContractNum>
  <NewContractStartDate>2025-12-16T20:34:49.8241497+00:00</NewContractStartDate>
  <NumberOfSystem>6</NumberOfSystem>
  <OperatorCode>sample string 11</OperatorCode>
  <RegularAccounting>true</RegularAccounting>
  <ReserveAccounting>true</ReserveAccounting>
  <SMName>sample string 28</SMName>
  <SalesmanNum>sample string 21</SalesmanNum>
  <ServiceMasterNum>sample string 20</ServiceMasterNum>
  <StartDate>2025-12-16T20:34:49.8241497+00:00</StartDate>
  <Status>sample string 9</Status>
</SaiSDContract>