POST api/contract/AddContract?token={token}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| token | string |
Required |
Body Parameters
ContractModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ClientId | integer |
None. |
|
| PlanName | string |
None. |
|
| CompanyName | string |
None. |
|
| CompanyIdentifier | string |
None. |
|
| MaxUsers | integer |
None. |
|
| MaxPrinters | integer |
None. |
|
| MaxAccounts | integer |
None. |
|
| MaxServers | integer |
None. |
|
| MaxComputers | integer |
None. |
|
| EndDate | date |
None. |
|
| RenewPeriod | integer |
None. |
|
| Value | decimal number |
None. |
|
| Active | boolean |
None. |
|
| Deleted | boolean |
None. |
|
| DeleteDate | date |
None. |
|
| CreationDate | date |
None. |
|
| LifetimeValue | decimal number |
None. |
|
| PlanId | integer |
None. |
|
| IsTrial | boolean |
None. |
|
| DaysLeft | integer |
None. |
|
| RemainPrinters | integer |
None. |
|
| RecurrentPaymentId | string |
None. |
|
| NextRecurrency | date |
None. |
|
| Canceled | boolean |
None. |
|
| CanceledDate | date |
None. |
|
| CanceledIdUser | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"ClientId": 2,
"PlanName": "sample string 3",
"CompanyName": "sample string 4",
"CompanyIdentifier": "sample string 5",
"MaxUsers": 6,
"MaxPrinters": 7,
"MaxAccounts": 8,
"MaxServers": 9,
"MaxComputers": 10,
"EndDate": "2025-12-13T11:11:17.0566215-03:00",
"RenewPeriod": 12,
"Value": 13.1,
"Active": true,
"Deleted": true,
"DeleteDate": "2025-12-13T11:11:17.0566215-03:00",
"CreationDate": "2025-12-13T11:11:17.0566215-03:00",
"LifetimeValue": 18.1,
"PlanId": 19,
"IsTrial": true,
"DaysLeft": 21,
"RemainPrinters": 22,
"RecurrentPaymentId": "sample string 23",
"NextRecurrency": "2025-12-13T11:11:17.0566215-03:00",
"Canceled": true,
"CanceledDate": "2025-12-13T11:11:17.0566215-03:00",
"CanceledIdUser": 27
}
application/xml, text/xml
Sample:
<ContractModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Models"> <Active>true</Active> <Canceled>true</Canceled> <CanceledDate>2025-12-13T11:11:17.0566215-03:00</CanceledDate> <CanceledIdUser>27</CanceledIdUser> <ClientId>2</ClientId> <CompanyIdentifier>sample string 5</CompanyIdentifier> <CompanyName>sample string 4</CompanyName> <CreationDate>2025-12-13T11:11:17.0566215-03:00</CreationDate> <DaysLeft>21</DaysLeft> <DeleteDate>2025-12-13T11:11:17.0566215-03:00</DeleteDate> <Deleted>true</Deleted> <EndDate>2025-12-13T11:11:17.0566215-03:00</EndDate> <Id>1</Id> <IsTrial>true</IsTrial> <LifetimeValue>18.1</LifetimeValue> <MaxAccounts>8</MaxAccounts> <MaxComputers>10</MaxComputers> <MaxPrinters>7</MaxPrinters> <MaxServers>9</MaxServers> <MaxUsers>6</MaxUsers> <NextRecurrency>2025-12-13T11:11:17.0566215-03:00</NextRecurrency> <PlanId>19</PlanId> <PlanName>sample string 3</PlanName> <RecurrentPaymentId>sample string 23</RecurrentPaymentId> <RemainPrinters>22</RemainPrinters> <RenewPeriod>12</RenewPeriod> <Value>13.1</Value> </ContractModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>