PUT api/Turnover
Update turnover entries in Exsalerate - by LinkId This is an all or nothing update, meaning you can't do partial updates (patch). If you do not provide a property it will be set to empty. Note: Optional GrossMarginValue/GrossMarginPercent - only provide one or other not both. Exsalerate will calculate the other field. Required: SiteOwnerId, LinkId, Year, Month, Amount
Request Information
URI Parameters
None.
Body Parameters
Array of TurnoverByLinkId Model for updating/creating 1 or more Turnover entries.
Collection of TurnoverByLinkIdModelName | Description | Type | Additional information |
---|---|---|---|
Amount | decimal number |
Required |
|
LinkId | string |
Required |
|
Month | integer |
Required |
|
Day | integer |
None. |
|
Service | string |
None. |
|
GrossMarginValue | decimal number |
None. |
|
GrossMarginPercentage | decimal number |
None. |
|
SiteOwnerId | integer |
Required |
|
Year | integer |
Required |
Request Formats
application/json, text/json
Sample:
[ { "Amount": 1.0, "LinkId": "sample string 2", "Month": 3, "Day": 4, "Service": "sample string 5", "GrossMarginValue": 6.0, "GrossMarginPercentage": 7.0, "SiteOwnerId": 8, "Year": 9 }, { "Amount": 1.0, "LinkId": "sample string 2", "Month": 3, "Day": 4, "Service": "sample string 5", "GrossMarginValue": 6.0, "GrossMarginPercentage": 7.0, "SiteOwnerId": 8, "Year": 9 } ]
application/xml, text/xml
Sample:
<ArrayOfTurnoverByLinkIdModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExsalerateWebAPI.Models"> <TurnoverByLinkIdModel> <Amount>1</Amount> <Day>4</Day> <GrossMarginPercentage>7</GrossMarginPercentage> <GrossMarginValue>6</GrossMarginValue> <LinkId>sample string 2</LinkId> <Month>3</Month> <Service>sample string 5</Service> <SiteOwnerId>8</SiteOwnerId> <Year>9</Year> </TurnoverByLinkIdModel> <TurnoverByLinkIdModel> <Amount>1</Amount> <Day>4</Day> <GrossMarginPercentage>7</GrossMarginPercentage> <GrossMarginValue>6</GrossMarginValue> <LinkId>sample string 2</LinkId> <Month>3</Month> <Service>sample string 5</Service> <SiteOwnerId>8</SiteOwnerId> <Year>9</Year> </TurnoverByLinkIdModel> </ArrayOfTurnoverByLinkIdModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |