POST api/Pedido/AddProduto
Request Information
URI Parameters
None.
Body Parameters
PedidoAddProdutoDto| Name | Description | Type | Additional information |
|---|---|---|---|
| linkCardClienteKey | globally unique identifier |
None. |
|
| idProduto | integer |
None. |
|
| qtde | decimal number |
None. |
|
| valUnit | decimal number |
None. |
|
| key | integer |
None. |
|
| id | integer |
None. |
|
| isNew | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"linkCardClienteKey": "691416fa-b251-4ecc-93dc-3612c9196ca3",
"idProduto": 2,
"qtde": 3.0,
"valUnit": 4.0,
"key": 5,
"id": 5,
"isNew": true
}
application/xml, text/xml
Sample:
<PedidoAddProdutoDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Linkcards.Webapi.Models.Pedido"> <isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew> <key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">5</key> <idProduto>2</idProduto> <linkCardClienteKey>691416fa-b251-4ecc-93dc-3612c9196ca3</linkCardClienteKey> <qtde>3</qtde> <valUnit>4</valUnit> </PedidoAddProdutoDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
PedidoAddProdutoDto| Name | Description | Type | Additional information |
|---|---|---|---|
| linkCardClienteKey | globally unique identifier |
None. |
|
| idProduto | integer |
None. |
|
| qtde | decimal number |
None. |
|
| valUnit | decimal number |
None. |
|
| key | integer |
None. |
|
| id | integer |
None. |
|
| isNew | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"linkCardClienteKey": "734314f6-32e5-457d-bbe1-2ed2192734e4",
"idProduto": 2,
"qtde": 3.0,
"valUnit": 4.0,
"key": 5,
"id": 5,
"isNew": true
}
application/xml, text/xml
Sample:
<PedidoAddProdutoDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Linkcards.Webapi.Models.Pedido"> <isNew xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">true</isNew> <key xmlns="http://schemas.datacontract.org/2004/07/Zenite.Pi.Web.Models">5</key> <idProduto>2</idProduto> <linkCardClienteKey>734314f6-32e5-457d-bbe1-2ed2192734e4</linkCardClienteKey> <qtde>3</qtde> <valUnit>4</valUnit> </PedidoAddProdutoDto>