POST api/Loja

Request Information

URI Parameters

None.

Body Parameters

checkoutPOSTModel
NameDescriptionTypeAdditional information
operacao

ToperacaoLojaCheckout

None.

carrinho_id

integer

None.

pagante_id

integer

None.

cartao_id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "operacao": 1,
  "carrinho_id": 1,
  "pagante_id": 2,
  "cartao_id": 3
}

application/xml, text/xml

Sample:
<checkoutPOSTModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopperREST.Models">
  <carrinho_id>1</carrinho_id>
  <cartao_id>3</cartao_id>
  <operacao>pagar</operacao>
  <pagante_id>2</pagante_id>
</checkoutPOSTModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

RespostaPadraoSimples
NameDescriptionTypeAdditional information
status

string

None.

mensagem

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": "sample string 1",
  "mensagem": "sample string 2"
}

application/xml, text/xml

Sample:
<RespostaPadraoSimples xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopperREST.Models">
  <mensagem>sample string 2</mensagem>
  <status>sample string 1</status>
</RespostaPadraoSimples>