POST api/expediciones

Request Information

URI Parameters

None.

Body Parameters

CrearExpedicionDto
NameDescriptionTypeAdditional information
Numero_Expedicion

string

None.

ID_Cliente

integer

None.

Fecha_Expedicion

date

None.

Fecha_Entrega_Prevista

date

None.

ID_Sucursal_Origen

integer

None.

ID_Sucursal_Destino

integer

None.

Origen_Pueblo

string

None.

Destino_Pueblo

string

None.

Nombre_remitente

string

None.

Nombre_Destinatario

string

None.

Detalles_Carga

string

None.

Bultos

Collection of CrearBultoDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Numero_Expedicion": "sample string 1",
  "ID_Cliente": 2,
  "Fecha_Expedicion": "2026-10-20T12:35:29.8374522-03:00",
  "Fecha_Entrega_Prevista": "2026-10-20T12:35:29.8374522-03:00",
  "ID_Sucursal_Origen": 1,
  "ID_Sucursal_Destino": 1,
  "Origen_Pueblo": "sample string 3",
  "Destino_Pueblo": "sample string 4",
  "Nombre_remitente": "sample string 5",
  "Nombre_Destinatario": "sample string 6",
  "Detalles_Carga": "sample string 7",
  "Bultos": [
    {
      "Codigo_Barras": "sample string 1",
      "Descripcion": "sample string 2",
      "Peso_Kg": 1.0,
      "Volumen_M3": 1.0
    },
    {
      "Codigo_Barras": "sample string 1",
      "Descripcion": "sample string 2",
      "Peso_Kg": 1.0,
      "Volumen_M3": 1.0
    }
  ]
}

text/html

Sample:
{"Numero_Expedicion":"sample string 1","ID_Cliente":2,"Fecha_Expedicion":"2026-10-20T12:35:29.8374522-03:00","Fecha_Entrega_Prevista":"2026-10-20T12:35:29.8374522-03:00","ID_Sucursal_Origen":1,"ID_Sucursal_Destino":1,"Origen_Pueblo":"sample string 3","Destino_Pueblo":"sample string 4","Nombre_remitente":"sample string 5","Nombre_Destinatario":"sample string 6","Detalles_Carga":"sample string 7","Bultos":[{"Codigo_Barras":"sample string 1","Descripcion":"sample string 2","Peso_Kg":1.0,"Volumen_M3":1.0},{"Codigo_Barras":"sample string 1","Descripcion":"sample string 2","Peso_Kg":1.0,"Volumen_M3":1.0}]}

application/xml, text/xml

Sample:
<CrearExpedicionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TMS.API.Controllers">
  <Bultos>
    <CrearBultoDto>
      <Codigo_Barras>sample string 1</Codigo_Barras>
      <Descripcion>sample string 2</Descripcion>
      <Peso_Kg>1</Peso_Kg>
      <Volumen_M3>1</Volumen_M3>
    </CrearBultoDto>
    <CrearBultoDto>
      <Codigo_Barras>sample string 1</Codigo_Barras>
      <Descripcion>sample string 2</Descripcion>
      <Peso_Kg>1</Peso_Kg>
      <Volumen_M3>1</Volumen_M3>
    </CrearBultoDto>
  </Bultos>
  <Destino_Pueblo>sample string 4</Destino_Pueblo>
  <Detalles_Carga>sample string 7</Detalles_Carga>
  <Fecha_Entrega_Prevista>2026-10-20T12:35:29.8374522-03:00</Fecha_Entrega_Prevista>
  <Fecha_Expedicion>2026-10-20T12:35:29.8374522-03:00</Fecha_Expedicion>
  <ID_Cliente>2</ID_Cliente>
  <ID_Sucursal_Destino>1</ID_Sucursal_Destino>
  <ID_Sucursal_Origen>1</ID_Sucursal_Origen>
  <Nombre_Destinatario>sample string 6</Nombre_Destinatario>
  <Nombre_remitente>sample string 5</Nombre_remitente>
  <Numero_Expedicion>sample string 1</Numero_Expedicion>
  <Origen_Pueblo>sample string 3</Origen_Pueblo>
</CrearExpedicionDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html, application/xml, text/xml

Sample:

Sample not available.