POST api/compra

Request Information

URI Parameters

None.

Body Parameters

BuyCreditCardReq
NameDescriptionTypeAdditional information
cartao_id

integer

None.

carrinho_id

integer

None.

tabela_preco_id

integer

None.

pagador_id

integer

None.

valor

decimal number

None.

loja_tipo

string

None.

tipo

string

None.

ticket

string

None.

Request Formats

application/json, text/json

Sample:
{
  "cartao_id": 1,
  "carrinho_id": 2,
  "tabela_preco_id": 3,
  "pagador_id": 4,
  "valor": 5.0,
  "loja_tipo": "sample string 6",
  "tipo": "sample string 7",
  "ticket": "sample string 8"
}

application/xml, text/xml

Sample:
<BuyCreditCardReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopperREST.Models">
  <carrinho_id>2</carrinho_id>
  <cartao_id>1</cartao_id>
  <loja_tipo>sample string 6</loja_tipo>
  <pagador_id>4</pagador_id>
  <tabela_preco_id>3</tabela_preco_id>
  <ticket>sample string 8</ticket>
  <tipo>sample string 7</tipo>
  <valor>5</valor>
</BuyCreditCardReq>

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.