ColdstarRefrigeration

<back to all web services

PostWorksheet

The following routes are available for this service:
POST/PostWorksheet
PostWorksheet Parameters:
NameParameterData TypeRequiredDescription
CustomerIdbodyintNo
SitebodystringNo
DatebodyDateTimeNo
UnitMakebodystringNo
UnitModelbodystringNo
UnitSerialNumberbodystringNo
EvaporatorMakebodystringNo
EvaporatorModelbodystringNo
EvaporatorSerialNumberbodystringNo
ApplicationbodystringNo
RiskSafeAccessEgressbodyintNo
RiskHeightbodyintNo
RiskPPEbodyintNo
RiskObstructionsbodyintNo
RiskPeoplebodyintNo
RiskOpenEdgesFallFromHeightbodyintNo
RiskFireControlbodyintNo
RiskSafeToolsbodyintNo
WorkCarriedOutbodystringNo
NotesbodystringNo
StaffOnebodyintNo
StaffTwobodyint?No
StaffThreebodyint?No
StaffFourbodyint?No
StaffOneHoursbodydecimal?No
StaffTwoHoursbodydecimal?No
StaffThreeHoursbodydecimal?No
StaffFourHoursbodydecimal?No
CallOutbodyboolNo
Mileagebodyint?No
CustomerSignbodybyte[]No
CustomerNamebodystringNo
MaterialsUsedbodyList<MaterialsUsed>No
TypeIdbodyint?No
CustomerNotPresentbodyboolNo
MaterialsUsed Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
FromformstringNo
Costformdecimal?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>