POST api/Services/{servId}/Close

Cierra un servicio

Request Information

URI Parameters

NameDescriptionTypeAdditional information
servId

integer

Required

Body Parameters

ObjCierre
NameDescriptionTypeAdditional information
IdServicio

integer

None.

EstadoServicio

integer

None.

Comentarios

string

None.

FechaEntrega

date

None.

PickUpDate

date

None.

Qr

integer

None.

Fotos

Collection of FotoItem

None.

DetIntentos

Collection of Intentos

None.

Productos

Collection of DetalleProductos

None.

Request Formats

application/json, text/json

Sample:
{
  "IdServicio": 1,
  "EstadoServicio": 2,
  "Comentarios": "sample string 3",
  "FechaEntrega": "2024-10-18T05:50:49.2180247-03:00",
  "PickUpDate": "2024-10-18T05:50:49.2180247-03:00",
  "Qr": 6,
  "Fotos": [
    {
      "_ItemId": 1,
      "_IdOs": 2,
      "_Foto": "sample string 3",
      "_UniqIdent": "sample string 4"
    },
    {
      "_ItemId": 1,
      "_IdOs": 2,
      "_Foto": "sample string 3",
      "_UniqIdent": "sample string 4"
    }
  ],
  "DetIntentos": [
    {
      "Id": 1,
      "IdServicio": 2,
      "FechaIntento": "2024-10-18T05:50:49.2180247-03:00",
      "Sync": 4
    },
    {
      "Id": 1,
      "IdServicio": 2,
      "FechaIntento": "2024-10-18T05:50:49.2180247-03:00",
      "Sync": 4
    }
  ],
  "Productos": [
    {
      "DetalleId": 1,
      "EstadoId": 2,
      "CantidadEnvasesDespachados": 3,
      "CantidadEnvasesEntregados": 1,
      "Producto": "sample string 4",
      "CodigoProducto": "sample string 5"
    },
    {
      "DetalleId": 1,
      "EstadoId": 2,
      "CantidadEnvasesDespachados": 3,
      "CantidadEnvasesEntregados": 1,
      "Producto": "sample string 4",
      "CodigoProducto": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<ServiciosTransporteClass.ObjCierre xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TransporteFramework">
  <Comentarios>sample string 3</Comentarios>
  <DetIntentos>
    <ServiciosTransporteClass.Intentos>
      <FechaIntento>2024-10-18T05:50:49.2180247-03:00</FechaIntento>
      <Id>1</Id>
      <IdServicio>2</IdServicio>
      <Sync>4</Sync>
    </ServiciosTransporteClass.Intentos>
    <ServiciosTransporteClass.Intentos>
      <FechaIntento>2024-10-18T05:50:49.2180247-03:00</FechaIntento>
      <Id>1</Id>
      <IdServicio>2</IdServicio>
      <Sync>4</Sync>
    </ServiciosTransporteClass.Intentos>
  </DetIntentos>
  <EstadoServicio>2</EstadoServicio>
  <FechaEntrega>2024-10-18T05:50:49.2180247-03:00</FechaEntrega>
  <Fotos>
    <FotoItem>
      <_Foto>sample string 3</_Foto>
      <_IdOs>2</_IdOs>
      <_ItemId>1</_ItemId>
      <_UniqIdent>sample string 4</_UniqIdent>
    </FotoItem>
    <FotoItem>
      <_Foto>sample string 3</_Foto>
      <_IdOs>2</_IdOs>
      <_ItemId>1</_ItemId>
      <_UniqIdent>sample string 4</_UniqIdent>
    </FotoItem>
  </Fotos>
  <IdServicio>1</IdServicio>
  <PickUpDate>2024-10-18T05:50:49.2180247-03:00</PickUpDate>
  <Productos>
    <ServiciosTransporteClass.DetalleProductos>
      <CantidadEnvasesDespachados>3</CantidadEnvasesDespachados>
      <CantidadEnvasesEntregados>1</CantidadEnvasesEntregados>
      <CodigoProducto>sample string 5</CodigoProducto>
      <DetalleId>1</DetalleId>
      <EstadoId>2</EstadoId>
      <Producto>sample string 4</Producto>
    </ServiciosTransporteClass.DetalleProductos>
    <ServiciosTransporteClass.DetalleProductos>
      <CantidadEnvasesDespachados>3</CantidadEnvasesDespachados>
      <CantidadEnvasesEntregados>1</CantidadEnvasesEntregados>
      <CodigoProducto>sample string 5</CodigoProducto>
      <DetalleId>1</DetalleId>
      <EstadoId>2</EstadoId>
      <Producto>sample string 4</Producto>
    </ServiciosTransporteClass.DetalleProductos>
  </Productos>
  <Qr>6</Qr>
</ServiciosTransporteClass.ObjCierre>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.