POST api/coupon/insertCouponForClient

Request Information

URI Parameters

None.

Body Parameters

CanjeDao
NameDescriptionTypeAdditional information
idExchange

integer

None.

date

date

None.

state

integer

None.

idPartner

integer

None.

idEmployee

integer

None.

idBranchOffice

integer

None.

exchanges

Collection of ExchangeItemDao

None.

stateDescription

EnumEstadoCanje

None.

Puntos

integer

None.

Nombre

string

None.

Apellido

string

None.

Documento

string

None.

Celular

string

None.

Telefono

string

None.

Mail

string

None.

Cantidad

integer

None.

IdProducto

string

None.

Proveedor

string

None.

Observaciones

string

None.

Calle

string

None.

CodigoPostal

string

None.

Numero

string

None.

Ciudad

string

None.

Departamento

string

None.

Retiro

integer

None.

CodigoVale

string

None.

IdUsuario

integer

None.

Apto

string

None.

idDominio

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "idExchange": 1,
  "date": "2024-09-19T17:29:18.4189286+00:00",
  "state": 3,
  "idPartner": 4,
  "idEmployee": 5,
  "idBranchOffice": 6,
  "exchanges": [
    {
      "exchangeId": 1,
      "product": {
        "referenceCode": "sample string 1",
        "shortDescription": "sample string 2",
        "longDescription": "sample string 3",
        "title": "sample string 4",
        "type": "sample string 5",
        "discountUnit": "sample string 6",
        "discountValue": 7.0,
        "points": 8
      },
      "quantity": 2,
      "unitPoints": 3
    },
    {
      "exchangeId": 1,
      "product": {
        "referenceCode": "sample string 1",
        "shortDescription": "sample string 2",
        "longDescription": "sample string 3",
        "title": "sample string 4",
        "type": "sample string 5",
        "discountUnit": "sample string 6",
        "discountValue": 7.0,
        "points": 8
      },
      "quantity": 2,
      "unitPoints": 3
    }
  ],
  "stateDescription": 1,
  "Puntos": 7,
  "Nombre": "sample string 8",
  "Apellido": "sample string 9",
  "Documento": "sample string 10",
  "Celular": "sample string 12",
  "Telefono": "sample string 13",
  "Mail": "sample string 14",
  "Cantidad": 15,
  "IdProducto": "sample string 16",
  "Proveedor": "sample string 17",
  "Observaciones": "sample string 18",
  "Calle": "sample string 19",
  "CodigoPostal": "sample string 20",
  "Numero": "sample string 21",
  "Ciudad": "sample string 22",
  "Departamento": "sample string 23",
  "Retiro": 31,
  "CodigoVale": "sample string 38",
  "IdUsuario": 44,
  "Apto": "sample string 45",
  "idDominio": 46
}

application/xml, text/xml

Sample:
<CanjeDao xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DaoFidelitas.Dominio">
  <Apellido>sample string 9</Apellido>
  <Apto>sample string 45</Apto>
  <Calle>sample string 19</Calle>
  <Cantidad>15</Cantidad>
  <Celular>sample string 12</Celular>
  <Ciudad>sample string 22</Ciudad>
  <CodigoPostal>sample string 20</CodigoPostal>
  <CodigoVale>sample string 38</CodigoVale>
  <Departamento>sample string 23</Departamento>
  <Documento>sample string 10</Documento>
  <IdProducto>sample string 16</IdProducto>
  <IdUsuario>44</IdUsuario>
  <Mail>sample string 14</Mail>
  <Nombre>sample string 8</Nombre>
  <Numero>sample string 21</Numero>
  <Observaciones>sample string 18</Observaciones>
  <Proveedor>sample string 17</Proveedor>
  <Puntos>7</Puntos>
  <Retiro>31</Retiro>
  <Telefono>sample string 13</Telefono>
  <date>2024-09-19T17:29:18.4189286+00:00</date>
  <exchanges>
    <ExchangeItemDao>
      <exchangeId>1</exchangeId>
      <product>
        <discountUnit>sample string 6</discountUnit>
        <discountValue>7</discountValue>
        <longDescription>sample string 3</longDescription>
        <points>8</points>
        <referenceCode>sample string 1</referenceCode>
        <shortDescription>sample string 2</shortDescription>
        <title>sample string 4</title>
        <type>sample string 5</type>
      </product>
      <quantity>2</quantity>
      <unitPoints>3</unitPoints>
    </ExchangeItemDao>
    <ExchangeItemDao>
      <exchangeId>1</exchangeId>
      <product>
        <discountUnit>sample string 6</discountUnit>
        <discountValue>7</discountValue>
        <longDescription>sample string 3</longDescription>
        <points>8</points>
        <referenceCode>sample string 1</referenceCode>
        <shortDescription>sample string 2</shortDescription>
        <title>sample string 4</title>
        <type>sample string 5</type>
      </product>
      <quantity>2</quantity>
      <unitPoints>3</unitPoints>
    </ExchangeItemDao>
  </exchanges>
  <idBranchOffice>6</idBranchOffice>
  <idDominio>46</idDominio>
  <idEmployee>5</idEmployee>
  <idExchange>1</idExchange>
  <idPartner>4</idPartner>
  <state>3</state>
  <stateDescription>Started</stateDescription>
</CanjeDao>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CanjeDao'.

Response Information

Resource Description

ResponseOfResponseCoupon
NameDescriptionTypeAdditional information
value

ResponseCoupon

None.

message

string

None.

email

string

None.

Response Formats

application/json, text/json

Sample:

Sample not available.