POST api/Customer/GetCustomerById

Obtener Customer por Id

Request Information

URI Parameters

None.

Body Parameters

Id del customer

RequestOfString
NameDescriptionTypeAdditional information
token

string

None.

ObjectRequest

string

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "ObjectRequest": "sample string 2"
}

application/xml, text/xml

Sample:
<RequestOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Multisponsor.EPM.Somos.Api.Models">
  <ObjectRequest>sample string 2</ObjectRequest>
  <token>sample string 1</token>
</RequestOfstring>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfConsumer
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

Collection of MessageResult

None.

ObjectResponse

Consumer

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "Message": null,
  "ObjectResponse": {
    "IdentificationTypeId": 1,
    "IdentificationNumber": "sample string 2",
    "NickName": "sample string 3",
    "FirstName": "sample string 4",
    "SecondName": "sample string 5",
    "LastName": "sample string 6",
    "SecondLastName": "sample string 7",
    "HomePhone": "sample string 8",
    "MobilePhone": "sample string 9",
    "Email": "sample string 10",
    "IsClientProvider": true
  }
}

application/xml, text/xml

Sample:
<ResponseOfConsumerqGTscxH1 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Multisponsor.EPM.Somos.Api.Models">
  <Message i:nil="true" />
  <ObjectResponse xmlns:d2p1="http://schemas.datacontract.org/2004/07/Multisponsor.EPM.Somos.Api.Models.Customer">
    <d2p1:Email>sample string 10</d2p1:Email>
    <d2p1:FirstName>sample string 4</d2p1:FirstName>
    <d2p1:HomePhone>sample string 8</d2p1:HomePhone>
    <d2p1:IdentificationNumber>sample string 2</d2p1:IdentificationNumber>
    <d2p1:IdentificationTypeId>1</d2p1:IdentificationTypeId>
    <d2p1:IsClientProvider>true</d2p1:IsClientProvider>
    <d2p1:LastName>sample string 6</d2p1:LastName>
    <d2p1:MobilePhone>sample string 9</d2p1:MobilePhone>
    <d2p1:NickName>sample string 3</d2p1:NickName>
    <d2p1:SecondLastName>sample string 7</d2p1:SecondLastName>
    <d2p1:SecondName>sample string 5</d2p1:SecondName>
  </ObjectResponse>
  <Status>true</Status>
</ResponseOfConsumerqGTscxH1>