POST api/ReferralsSalesCenter

Request Information

URI Parameters

None.

Body Parameters

NewReferralSalesCenter
NameDescriptionTypeAdditional information
MemberAccount

string

Required

SalesRepresentative

string

Required

SalesCenterID

integer

None.

LeadSourceChannelID

integer

None.

SalesRoomID

integer

None.

LeadSourceID

integer

None.

Phone

integer

Required

Email

string

Required

Relationship

string

Required

TerminalID

integer

None.

IPv4

string

None.

IsAnonymous

boolean

None.

FirstName

string

None.

LastName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "MemberAccount": "sample string 1",
  "SalesRepresentative": "sample string 2",
  "SalesCenterID": 1,
  "LeadSourceChannelID": 1,
  "SalesRoomID": 1,
  "LeadSourceID": 1,
  "Phone": 3,
  "Email": "sample string 4",
  "Relationship": "sample string 5",
  "TerminalID": 6,
  "IPv4": "sample string 7",
  "IsAnonymous": true,
  "FirstName": "sample string 9",
  "LastName": "sample string 10"
}

application/xml, text/xml

Sample:
<ApiReferralsViewModel.NewReferralSalesCenter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ePlat.Models.ViewModels">
  <FirstName>sample string 9</FirstName>
  <LastName>sample string 10</LastName>
  <Email>sample string 4</Email>
  <IPv4>sample string 7</IPv4>
  <IsAnonymous>true</IsAnonymous>
  <LeadSourceChannelID>1</LeadSourceChannelID>
  <LeadSourceID>1</LeadSourceID>
  <MemberAccount>sample string 1</MemberAccount>
  <Phone>3</Phone>
  <Relationship>sample string 5</Relationship>
  <SalesCenterID>1</SalesCenterID>
  <SalesRepresentative>sample string 2</SalesRepresentative>
  <SalesRoomID>1</SalesRoomID>
  <TerminalID>6</TerminalID>
</ApiReferralsViewModel.NewReferralSalesCenter>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AttemptResponse
NameDescriptionTypeAdditional information
Type

Guarda el valor del tipo de resultado de la ejecución de las instrucciones de código en la función ejecutada.

Attempt_ResponseTypes

None.

Exception

Presenta los errores que se producen cuando la ejecución de las instrucciones de código no terminan correctamente.

Exception

None.

ObjectID

Objeto que permite establecer cualquier tipo de valor como respuesta, sin la necesidad de que la información almacenada tenga que seguir una estructura.

Object

None.

Message

Mensage personalizado para emitir una respuesta después de la correcta ejecución de las instrucciones de código.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Type": 0,
  "Exception": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  },
  "ObjectID": {},
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<AttemptResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ePlat.Models.Utils">
  <Exception xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </Exception>
  <Message>sample string 2</Message>
  <ObjectID />
  <Type>Warning</Type>
</AttemptResponse>