POST api/Customer/Login

Endpoint Para validar los datos de autenticación del cliente

Request Information

URI Parameters

None.

Body Parameters

Datos requeridos para validar credenciales.

RequestOfLogin
NameDescriptionTypeAdditional information
token

string

None.

ObjectRequest

Login

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "ObjectRequest": {
    "IdentificationTypeId": 1,
    "IdentificationNumber": "sample string 2",
    "Password": "sample string 3",
    "Ip": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<RequestOfLoginqGTscxH1 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Multisponsor.EPM.Somos.Api.Models">
  <ObjectRequest xmlns:d2p1="http://schemas.datacontract.org/2004/07/Multisponsor.EPM.Somos.Api.Models.Customer">
    <d2p1:IdentificationNumber>sample string 2</d2p1:IdentificationNumber>
    <d2p1:IdentificationTypeId>1</d2p1:IdentificationTypeId>
    <d2p1:Ip>sample string 4</d2p1:Ip>
    <d2p1:Password>sample string 3</d2p1:Password>
  </ObjectRequest>
  <token>sample string 1</token>
</RequestOfLoginqGTscxH1>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Datos del cliente

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>