Needio.Services

<back to all web services

GetServiceOfferRequest

Requires Authentication
Required role:Approved
The following routes are available for this service:
All Verbs/Service/GetServiceOffer/{ServiceOfferId}
GetServiceOfferRequest Parameters:
NameParameterData TypeRequiredDescription
ServiceOfferIdpathintNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
DeviceUUIDformstringNo
APIKeyformstringNo
GetServiceOfferResponse Parameters:
NameParameterData TypeRequiredDescription
ServiceOfferformServiceOfferDtoNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
PageInfoformBasePageInfoNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
BasePageInfo Parameters:
NameParameterData TypeRequiredDescription
TotalRecordCountformintNo
TotalPageCountformintNo
CurrentPageformintNo
ServiceOfferDto Parameters:
NameParameterData TypeRequiredDescription
ServiceOfferIdformintNo
PriceformdecimalNo
PriceMinformdecimalNo
PriceMaxformdecimalNo
PriceTypeformServicePriceTypeNo
OfferNotesformstringNo
PostIdformintNo
PostVarianttIdformint?No
ServiceIdformintNo
AlwActformServiceOfferAlwActNo
StateformServiceOfferStateNo
AuditedBaseDto Parameters:
NameParameterData TypeRequiredDescription
CreatedDateformDateTimeNo
CreatedByformint?No
ModifiedDateformDateTime?No
ModifiedByformint?No
ServicePriceType Enum:
NameValue
Variant0
Fixed1
ServiceOfferAlwAct Enum:
NameValue
RequestOfferButtonVisible1
AddToBasketButtonVisible2
InBasketLabelVisible4
RequestRenewOfferButtonVisible8
ServiceOfferState Enum:
NameValue
New1
BuyerApproved2
BuyerRejected3
Expired4
GetServiceOfferResponse Parameters:
NameParameterData TypeRequiredDescription
ServiceOfferformServiceOfferDtoNo

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 /Service/GetServiceOffer/{ServiceOfferId} HTTP/1.1 
Host: baseservices.needion.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetServiceOfferRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2">
  <APIKey>String</APIKey>
  <DeviceUUID>String</DeviceUUID>
  <ServiceOfferId>0</ServiceOfferId>
</GetServiceOfferRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetServiceOfferResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2">
  <Error>
    <ErrorCode>String</ErrorCode>
    <ErrorDescription>String</ErrorDescription>
    <ErrorYn>false</ErrorYn>
  </Error>
  <PageInfo>
    <CurrentPage>0</CurrentPage>
    <TotalPageCount>0</TotalPageCount>
    <TotalRecordCount>0</TotalRecordCount>
  </PageInfo>
  <ResMessage>String</ResMessage>
  <Result>false</Result>
  <ServiceOffer xmlns:d2p1="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2.Models.Services">
    <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2.Models.Interfaces">0</CreatedBy>
    <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2.Models.Interfaces">0001-01-01T00:00:00</CreatedDate>
    <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2.Models.Interfaces">0</ModifiedBy>
    <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2.Models.Interfaces">0001-01-01T00:00:00</ModifiedDate>
    <d2p1:AlwAct>RequestOfferButtonVisible</d2p1:AlwAct>
    <d2p1:OfferNotes>String</d2p1:OfferNotes>
    <d2p1:PostId>0</d2p1:PostId>
    <d2p1:PostVarianttId>0</d2p1:PostVarianttId>
    <d2p1:Price>0</d2p1:Price>
    <d2p1:PriceMax>0</d2p1:PriceMax>
    <d2p1:PriceMin>0</d2p1:PriceMin>
    <d2p1:PriceType>Variant</d2p1:PriceType>
    <d2p1:ServiceId>0</d2p1:ServiceId>
    <d2p1:ServiceOfferId>0</d2p1:ServiceOfferId>
    <d2p1:State>New</d2p1:State>
  </ServiceOffer>
</GetServiceOfferResponse>