POST api/Customer/GetPurchaseByCustomer

Request Information

URI Parameters

None.

Body Parameters

CustomerBasicRequest
NameDescriptionTypeAdditional information
IdentificationNumber

string

Matching regular expression pattern: ^[a-zA-Z ]*$

CodeIdentificationType

integer

None.

IsInfoPoint

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "IdentificationNumber": "sample string 1",
  "CodeIdentificationType": 2,
  "IsInfoPoint": true
}

application/xml, text/xml

Sample:
<CustomerBasicRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Big.Viva.Core.Domain.DTO">
  <CodeIdentificationType>2</CodeIdentificationType>
  <IdentificationNumber>sample string 1</IdentificationNumber>
  <IsInfoPoint>true</IsInfoPoint>
</CustomerBasicRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Result

boolean

None.

Code

integer

None.

Message

string

None.

Puntos

string

None.

session_id

string

None.

Data

DataTable

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": true,
  "Code": 2,
  "Message": "sample string 3",
  "Puntos": "sample string 4",
  "session_id": "sample string 5",
  "Data": null
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Big.Viva.Core.Domain.DTO">
  <Code>2</Code>
  <Data i:nil="true" />
  <Message>sample string 3</Message>
  <Puntos>sample string 4</Puntos>
  <Result>true</Result>
  <session_id>sample string 5</session_id>
</Response>