<back to all web services
PostWorksheet
The following routes are available for this service:| POST | /PostWorksheet | | |
|---|
PostWorksheet Parameters:| Name | Parameter | Data Type | Required | Description |
|---|
| CustomerId | body | int | No | |
| Site | body | string | No | |
| Date | body | DateTime | No | |
| UnitMake | body | string | No | |
| UnitModel | body | string | No | |
| UnitSerialNumber | body | string | No | |
| EvaporatorMake | body | string | No | |
| EvaporatorModel | body | string | No | |
| EvaporatorSerialNumber | body | string | No | |
| Application | body | string | No | |
| RiskSafeAccessEgress | body | int | No | |
| RiskHeight | body | int | No | |
| RiskPPE | body | int | No | |
| RiskObstructions | body | int | No | |
| RiskPeople | body | int | No | |
| RiskOpenEdgesFallFromHeight | body | int | No | |
| RiskFireControl | body | int | No | |
| RiskSafeTools | body | int | No | |
| WorkCarriedOut | body | string | No | |
| Notes | body | string | No | |
| StaffOne | body | int | No | |
| StaffTwo | body | int? | No | |
| StaffThree | body | int? | No | |
| StaffFour | body | int? | No | |
| StaffOneHours | body | decimal? | No | |
| StaffTwoHours | body | decimal? | No | |
| StaffThreeHours | body | decimal? | No | |
| StaffFourHours | body | decimal? | No | |
| CallOut | body | bool | No | |
| Mileage | body | int? | No | |
| CustomerSign | body | byte[] | No | |
| CustomerName | body | string | No | |
| MaterialsUsed | body | List<MaterialsUsed> | No | |
| TypeId | body | int? | No | |
| CustomerNotPresent | body | bool | No | |
MaterialsUsed Parameters:| Name | Parameter | Data Type | Required | Description |
|---|
| Name | form | string | No | |
| From | form | string | No | |
| Cost | form | decimal? | No | |
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
HTTP + XML
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /PostWorksheet HTTP/1.1
Host: api.coldstarrefrigeration.co.uk
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PostWorksheet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ColdstarRefrigeration.Api.DTO">
<Application>String</Application>
<CallOut>false</CallOut>
<CustomerId>0</CustomerId>
<CustomerName>String</CustomerName>
<CustomerNotPresent>false</CustomerNotPresent>
<CustomerSign>AA==</CustomerSign>
<Date>0001-01-01T00:00:00</Date>
<EvaporatorMake>String</EvaporatorMake>
<EvaporatorModel>String</EvaporatorModel>
<EvaporatorSerialNumber>String</EvaporatorSerialNumber>
<MaterialsUsed>
<MaterialsUsed>
<Cost>0</Cost>
<From>String</From>
<Name>String</Name>
</MaterialsUsed>
</MaterialsUsed>
<Mileage>0</Mileage>
<Notes>String</Notes>
<RiskFireControl>0</RiskFireControl>
<RiskHeight>0</RiskHeight>
<RiskObstructions>0</RiskObstructions>
<RiskOpenEdgesFallFromHeight>0</RiskOpenEdgesFallFromHeight>
<RiskPPE>0</RiskPPE>
<RiskPeople>0</RiskPeople>
<RiskSafeAccessEgress>0</RiskSafeAccessEgress>
<RiskSafeTools>0</RiskSafeTools>
<Site>String</Site>
<StaffFour>0</StaffFour>
<StaffFourHours>0</StaffFourHours>
<StaffOne>0</StaffOne>
<StaffOneHours>0</StaffOneHours>
<StaffThree>0</StaffThree>
<StaffThreeHours>0</StaffThreeHours>
<StaffTwo>0</StaffTwo>
<StaffTwoHours>0</StaffTwoHours>
<TypeId>0</TypeId>
<UnitMake>String</UnitMake>
<UnitModel>String</UnitModel>
<UnitSerialNumber>String</UnitSerialNumber>
<WorkCarriedOut>String</WorkCarriedOut>
</PostWorksheet>