POST api/Entrega?motorista={motorista}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
motorista

integer

Required

Body Parameters

Entrega
NameDescriptionTypeAdditional information
ID

integer

None.

LATITUDE

string

None.

LONGITUDE

string

None.

CLIENTE_ID

integer

None.

CLIENTE_NOME

string

None.

MOTORISTA_ID

integer

None.

MOTORISTA_NOME

string

None.

VEICULO_ID

integer

None.

VEICULO_PLACA

string

None.

VEICULO_NOME

string

None.

COD_CARGA

string

None.

ENDERECO_ENTREGA

string

None.

ENDERECO_COLETA

string

None.

CIDADE_ENTREGA

string

None.

CIDADE_COLETA

string

None.

PAIS_ENTREGA

string

None.

PAIS_COLETA

string

None.

OBSERVACAO

string

None.

DESCRICAO

string

None.

INICIADA

boolean

None.

ENTREGUE

boolean

None.

SITUACAO

boolean

None.

PAGO

boolean

None.

DATA_ENTREGA

date

None.

PREV_SAIDA

string

None.

VALOR_CARGA

string

None.

DESC_PAGAMENTO

string

None.

DATA_PAGAMENTO

date

None.

VENC_PAGAMENTO

date

None.

DATAINC

string

None.

USUARIO_ID

integer

None.

ENTREGA_MENSAGEM_ID

integer

None.

ENTREGA_MENSAGEM_PADRAO

string

None.

Erro

boolean

None.

Message

string

None.

List_Entrega_Rastreio

Collection of Entrega_Rastreio

None.

List_Entrega_Mensagem

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "LATITUDE": "sample string 2",
  "LONGITUDE": "sample string 3",
  "CLIENTE_ID": 4,
  "CLIENTE_NOME": "sample string 5",
  "MOTORISTA_ID": 6,
  "MOTORISTA_NOME": "sample string 7",
  "VEICULO_ID": 8,
  "VEICULO_PLACA": "sample string 9",
  "VEICULO_NOME": "sample string 10",
  "COD_CARGA": "sample string 11",
  "ENDERECO_ENTREGA": "sample string 12",
  "ENDERECO_COLETA": "sample string 13",
  "CIDADE_ENTREGA": "sample string 14",
  "CIDADE_COLETA": "sample string 15",
  "PAIS_ENTREGA": "sample string 16",
  "PAIS_COLETA": "sample string 17",
  "OBSERVACAO": "sample string 18",
  "DESCRICAO": "sample string 19",
  "INICIADA": true,
  "ENTREGUE": true,
  "SITUACAO": true,
  "PAGO": true,
  "DATA_ENTREGA": "2025-09-08T02:03:12.8408745-03:00",
  "PREV_SAIDA": "sample string 24",
  "VALOR_CARGA": "sample string 25",
  "DESC_PAGAMENTO": "sample string 26",
  "DATA_PAGAMENTO": "2025-09-08T02:03:12.8408745-03:00",
  "VENC_PAGAMENTO": "2025-09-08T02:03:12.8408745-03:00",
  "DATAINC": "sample string 28",
  "USUARIO_ID": 29,
  "ENTREGA_MENSAGEM_ID": 1,
  "ENTREGA_MENSAGEM_PADRAO": "sample string 30",
  "Erro": true,
  "Message": "sample string 32",
  "List_Entrega_Rastreio": [
    {
      "ID": 1,
      "DATAINC": "sample string 2",
      "TEXTO": "sample string 3",
      "TEXTO_PADRAO": "sample string 4",
      "ETAPA": 5,
      "LATITUDE": "sample string 6",
      "LONGITUDE": "sample string 7",
      "ENTREGUE": true,
      "MOTORISTA_ID": 9,
      "ENTREGA_ID": 10,
      "MOTORISTA_NOME": "sample string 11"
    },
    {
      "ID": 1,
      "DATAINC": "sample string 2",
      "TEXTO": "sample string 3",
      "TEXTO_PADRAO": "sample string 4",
      "ETAPA": 5,
      "LATITUDE": "sample string 6",
      "LONGITUDE": "sample string 7",
      "ENTREGUE": true,
      "MOTORISTA_ID": 9,
      "ENTREGA_ID": 10,
      "MOTORISTA_NOME": "sample string 11"
    }
  ],
  "List_Entrega_Mensagem": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<Entrega xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yourcode.Api.Models.DTO">
  <CIDADE_COLETA>sample string 15</CIDADE_COLETA>
  <CIDADE_ENTREGA>sample string 14</CIDADE_ENTREGA>
  <CLIENTE_ID>4</CLIENTE_ID>
  <CLIENTE_NOME>sample string 5</CLIENTE_NOME>
  <COD_CARGA>sample string 11</COD_CARGA>
  <DATAINC>sample string 28</DATAINC>
  <DATA_ENTREGA>2025-09-08T02:03:12.8408745-03:00</DATA_ENTREGA>
  <DATA_PAGAMENTO>2025-09-08T02:03:12.8408745-03:00</DATA_PAGAMENTO>
  <DESCRICAO>sample string 19</DESCRICAO>
  <DESC_PAGAMENTO>sample string 26</DESC_PAGAMENTO>
  <ENDERECO_COLETA>sample string 13</ENDERECO_COLETA>
  <ENDERECO_ENTREGA>sample string 12</ENDERECO_ENTREGA>
  <ENTREGA_MENSAGEM_ID>1</ENTREGA_MENSAGEM_ID>
  <ENTREGA_MENSAGEM_PADRAO>sample string 30</ENTREGA_MENSAGEM_PADRAO>
  <ENTREGUE>true</ENTREGUE>
  <Erro>true</Erro>
  <ID>1</ID>
  <INICIADA>true</INICIADA>
  <LATITUDE>sample string 2</LATITUDE>
  <LONGITUDE>sample string 3</LONGITUDE>
  <List_Entrega_Mensagem xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </List_Entrega_Mensagem>
  <List_Entrega_Rastreio>
    <Entrega_Rastreio>
      <DATAINC>sample string 2</DATAINC>
      <ENTREGA_ID>10</ENTREGA_ID>
      <ENTREGUE>true</ENTREGUE>
      <ETAPA>5</ETAPA>
      <ID>1</ID>
      <LATITUDE>sample string 6</LATITUDE>
      <LONGITUDE>sample string 7</LONGITUDE>
      <MOTORISTA_ID>9</MOTORISTA_ID>
      <MOTORISTA_NOME>sample string 11</MOTORISTA_NOME>
      <TEXTO>sample string 3</TEXTO>
      <TEXTO_PADRAO>sample string 4</TEXTO_PADRAO>
    </Entrega_Rastreio>
    <Entrega_Rastreio>
      <DATAINC>sample string 2</DATAINC>
      <ENTREGA_ID>10</ENTREGA_ID>
      <ENTREGUE>true</ENTREGUE>
      <ETAPA>5</ETAPA>
      <ID>1</ID>
      <LATITUDE>sample string 6</LATITUDE>
      <LONGITUDE>sample string 7</LONGITUDE>
      <MOTORISTA_ID>9</MOTORISTA_ID>
      <MOTORISTA_NOME>sample string 11</MOTORISTA_NOME>
      <TEXTO>sample string 3</TEXTO>
      <TEXTO_PADRAO>sample string 4</TEXTO_PADRAO>
    </Entrega_Rastreio>
  </List_Entrega_Rastreio>
  <MOTORISTA_ID>6</MOTORISTA_ID>
  <MOTORISTA_NOME>sample string 7</MOTORISTA_NOME>
  <Message>sample string 32</Message>
  <OBSERVACAO>sample string 18</OBSERVACAO>
  <PAGO>true</PAGO>
  <PAIS_COLETA>sample string 17</PAIS_COLETA>
  <PAIS_ENTREGA>sample string 16</PAIS_ENTREGA>
  <PREV_SAIDA>sample string 24</PREV_SAIDA>
  <SITUACAO>true</SITUACAO>
  <USUARIO_ID>29</USUARIO_ID>
  <VALOR_CARGA>sample string 25</VALOR_CARGA>
  <VEICULO_ID>8</VEICULO_ID>
  <VEICULO_NOME>sample string 10</VEICULO_NOME>
  <VEICULO_PLACA>sample string 9</VEICULO_PLACA>
  <VENC_PAGAMENTO>2025-09-08T02:03:12.8408745-03:00</VENC_PAGAMENTO>
</Entrega>

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.