Needio.Services

<back to all web services

UpdateOfferRequest

Requires Authentication
Required role:Approved
The following routes are available for this service:
All Verbs/Service/UpdateOffer/
UpdateOfferRequest Parameters:
NameParameterData TypeRequiredDescription
OfferqueryOfferUpdateDtoNo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
DeviceUUIDformstringNo
APIKeyformstringNo
UpdateOfferResponse Parameters:
NameParameterData TypeRequiredDescription
OfferformOfferDtoNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
PageInfoformBasePageInfoNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
BasePageInfo Parameters:
NameParameterData TypeRequiredDescription
TotalRecordCountformintNo
TotalPageCountformintNo
CurrentPageformintNo
OfferDto Parameters:
NameParameterData TypeRequiredDescription
OfferIdformintNo
ExtensionDataformstringNo
OfferStateformOfferStateNo
OfferPriceformdecimalNo
BuyerNotesformstringNo
SellerNotesformstringNo
PostIdformintNo
KeyManagementIdformint?No
ServiceOfferIdformint?No
BuyerIdformintNo
AssignedToIdformint?No
StoreIdformint?No
ServiceIdformint?No
AuditedBaseDto Parameters:
NameParameterData TypeRequiredDescription
CreatedDateformDateTimeNo
CreatedByformint?No
ModifiedDateformDateTime?No
ModifiedByformint?No
OfferState Enum:
NameValue
WaitingAssignment1
WaitingApproval2
SalerApproved11
SalerRejected12
BuyerCancelled13
KeyObtained15
OpStarted17
OpFinished18
ReportCreated19
ReportApproved20
BuyerApproved21
BuyerRejected22
SalerAdminRejected42
OfferUpdateDto Parameters:
NameParameterData TypeRequiredDescription
OfferIdformint?No
ExtensionDataformstringNo
OfferStateformOfferStateNo
OfferPriceformdecimalNo
BuyerNotesformstringNo
SellerNotesformstringNo
KeyManagementIdformint?No
AssignedToIdformint?No
UpdateOfferResponse Parameters:
NameParameterData TypeRequiredDescription
OfferformOfferDtoNo

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

<UpdateOfferRequest 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>
  <Offer xmlns:d2p1="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2.Models.Services">
    <d2p1:AssignedToId>0</d2p1:AssignedToId>
    <d2p1:BuyerNotes>String</d2p1:BuyerNotes>
    <d2p1:ExtensionData>String</d2p1:ExtensionData>
    <d2p1:KeyManagementId>0</d2p1:KeyManagementId>
    <d2p1:OfferId>0</d2p1:OfferId>
    <d2p1:OfferPrice>0</d2p1:OfferPrice>
    <d2p1:OfferState>WaitingAssignment</d2p1:OfferState>
    <d2p1:SellerNotes>String</d2p1:SellerNotes>
  </Offer>
</UpdateOfferRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<UpdateOfferResponse 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>
  <Offer 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:AssignedToId>0</d2p1:AssignedToId>
    <d2p1:BuyerId>0</d2p1:BuyerId>
    <d2p1:BuyerNotes>String</d2p1:BuyerNotes>
    <d2p1:ExtensionData>String</d2p1:ExtensionData>
    <d2p1:KeyManagementId>0</d2p1:KeyManagementId>
    <d2p1:OfferId>0</d2p1:OfferId>
    <d2p1:OfferPrice>0</d2p1:OfferPrice>
    <d2p1:OfferState>WaitingAssignment</d2p1:OfferState>
    <d2p1:PostId>0</d2p1:PostId>
    <d2p1:SellerNotes>String</d2p1:SellerNotes>
    <d2p1:ServiceId>0</d2p1:ServiceId>
    <d2p1:ServiceOfferId>0</d2p1:ServiceOfferId>
    <d2p1:StoreId>0</d2p1:StoreId>
  </Offer>
</UpdateOfferResponse>