POST Opportunity/InsertUpdateOpportunity

Request Information

URI Parameters

None.

Body Parameters

Opportunity
NameDescriptionTypeAdditional information
Comments

string

None.

OpportunityID

string

None.

OpportunityName

string

None.

InteractionType

string

None.

EventDate

string

None.

EventTime

string

None.

OpportunitySubject

string

None.

AddressLine1

string

None.

AddressLine2

string

None.

Landmark

string

None.

Pincode

string

None.

Country

string

None.

State

string

None.

City

string

None.

Discription

string

None.

AttachmentURL

string

None.

Quote

string

None.

Negotiation

string

None.

Proposal

string

None.

CurrencyID

string

None.

ClientID

string

None.

ClientName

string

None.

ClientEmailID

string

None.

CRManagementID

string

None.

IsActive

integer

None.

Remarks

string

None.

MeetingStatus

integer

None.

InteractionID

string

None.

AttachmentURLList

Collection of Object

None.

ContactNameList

Collection of OpportunityContact

None.

AddItemToProspect

Collection of AddItemToProspect

None.

NewAttachmentURLList

Object

None.

Request Formats

application/json, text/json

Sample:
{
  "Comments": "sample string 1",
  "OpportunityID": "sample string 2",
  "OpportunityName": "sample string 3",
  "InteractionType": "sample string 4",
  "EventDate": "sample string 5",
  "EventTime": "sample string 6",
  "OpportunitySubject": "sample string 7",
  "AddressLine1": "sample string 8",
  "AddressLine2": "sample string 9",
  "Landmark": "sample string 10",
  "Pincode": "sample string 11",
  "Country": "sample string 12",
  "State": "sample string 13",
  "City": "sample string 14",
  "Discription": "sample string 15",
  "AttachmentURL": "sample string 16",
  "Quote": "sample string 17",
  "Negotiation": "sample string 18",
  "Proposal": "sample string 19",
  "CurrencyID": "sample string 20",
  "ClientID": "sample string 21",
  "ClientName": "sample string 22",
  "ClientEmailID": "sample string 23",
  "CRManagementID": "sample string 24",
  "IsActive": 25,
  "Remarks": "sample string 26",
  "MeetingStatus": 27,
  "InteractionID": "sample string 28",
  "AttachmentURLList": [
    {},
    {}
  ],
  "ContactNameList": [
    {
      "ClientID": "sample string 1",
      "ContactID": 2,
      "ContactName": "sample string 3",
      "MobileNumber": "sample string 4",
      "EmailID": "sample string 5",
      "InteractionID": "sample string 6"
    },
    {
      "ClientID": "sample string 1",
      "ContactID": 2,
      "ContactName": "sample string 3",
      "MobileNumber": "sample string 4",
      "EmailID": "sample string 5",
      "InteractionID": "sample string 6"
    }
  ],
  "AddItemToProspect": [
    {
      "OpportunityID": "sample string 1",
      "InventoryID": "sample string 2",
      "CategoryID": "sample string 3"
    },
    {
      "OpportunityID": "sample string 1",
      "InventoryID": "sample string 2",
      "CategoryID": "sample string 3"
    }
  ],
  "NewAttachmentURLList": {}
}

application/xml, text/xml

Sample:
<Opportunity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AstaGuru.Models">
  <AddItemToProspect>
    <AddItemToProspect>
      <CategoryID>sample string 3</CategoryID>
      <InventoryID>sample string 2</InventoryID>
      <OpportunityID>sample string 1</OpportunityID>
    </AddItemToProspect>
    <AddItemToProspect>
      <CategoryID>sample string 3</CategoryID>
      <InventoryID>sample string 2</InventoryID>
      <OpportunityID>sample string 1</OpportunityID>
    </AddItemToProspect>
  </AddItemToProspect>
  <AddressLine1>sample string 8</AddressLine1>
  <AddressLine2>sample string 9</AddressLine2>
  <AttachmentURL>sample string 16</AttachmentURL>
  <AttachmentURLList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:anyType />
    <d2p1:anyType />
  </AttachmentURLList>
  <CRManagementID>sample string 24</CRManagementID>
  <City>sample string 14</City>
  <ClientEmailID>sample string 23</ClientEmailID>
  <ClientID>sample string 21</ClientID>
  <ClientName>sample string 22</ClientName>
  <Comments>sample string 1</Comments>
  <ContactNameList>
    <OpportunityContact>
      <ClientID>sample string 1</ClientID>
      <ContactID>2</ContactID>
      <ContactName>sample string 3</ContactName>
      <EmailID>sample string 5</EmailID>
      <InteractionID>sample string 6</InteractionID>
      <MobileNumber>sample string 4</MobileNumber>
    </OpportunityContact>
    <OpportunityContact>
      <ClientID>sample string 1</ClientID>
      <ContactID>2</ContactID>
      <ContactName>sample string 3</ContactName>
      <EmailID>sample string 5</EmailID>
      <InteractionID>sample string 6</InteractionID>
      <MobileNumber>sample string 4</MobileNumber>
    </OpportunityContact>
  </ContactNameList>
  <Country>sample string 12</Country>
  <CurrencyID>sample string 20</CurrencyID>
  <Discription>sample string 15</Discription>
  <EventDate>sample string 5</EventDate>
  <EventTime>sample string 6</EventTime>
  <InteractionID>sample string 28</InteractionID>
  <InteractionType>sample string 4</InteractionType>
  <IsActive>25</IsActive>
  <Landmark>sample string 10</Landmark>
  <MeetingStatus>27</MeetingStatus>
  <Negotiation>sample string 18</Negotiation>
  <NewAttachmentURLList />
  <OpportunityID>sample string 2</OpportunityID>
  <OpportunityName>sample string 3</OpportunityName>
  <OpportunitySubject>sample string 7</OpportunitySubject>
  <Pincode>sample string 11</Pincode>
  <Proposal>sample string 19</Proposal>
  <Quote>sample string 17</Quote>
  <Remarks>sample string 26</Remarks>
  <State>sample string 13</State>
</Opportunity>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.