POST api/pedido/insert

Request Information

URI Parameters

None.

Body Parameters

InsertPedidoBindingModel
NameDescriptionTypeAdditional information
PedidoId

globally unique identifier

Required

TituloReceita

string

Required

EnderecoId

integer

None.

FilialId

integer

None.

ObservacoesAdicionais

string

None.

CanalId

integer

Required

Anexos

Collection of string

None.

TipoRetirada

integer

None.

Revenda

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PedidoId": "b967d237-a08d-42d6-b19d-82eadd4f1a20",
  "TituloReceita": "sample string 2",
  "EnderecoId": 1,
  "FilialId": 1,
  "ObservacoesAdicionais": "sample string 3",
  "CanalId": 4,
  "Anexos": [
    "sample string 1",
    "sample string 2"
  ],
  "TipoRetirada": 5,
  "Revenda": true
}

application/xml, text/xml

Sample:
<InsertPedidoBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FormulaCertaAPI.Models">
  <Anexos xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Anexos>
  <CanalId>4</CanalId>
  <EnderecoId>1</EnderecoId>
  <FilialId>1</FilialId>
  <ObservacoesAdicionais>sample string 3</ObservacoesAdicionais>
  <PedidoId>b967d237-a08d-42d6-b19d-82eadd4f1a20</PedidoId>
  <Revenda>true</Revenda>
  <TipoRetirada>5</TipoRetirada>
  <TituloReceita>sample string 2</TituloReceita>
</InsertPedidoBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.