POST api/credito

Request Information

URI Parameters

None.

Body Parameters

creditoPOST
NameDescriptionTypeAdditional information
cartao_id

integer

None.

id

integer

None.

SecurityCode

string

None.

tipo

string

None.

Request Formats

application/json, text/json

Sample:
{
  "cartao_id": 1,
  "id": 2,
  "SecurityCode": "sample string 3",
  "tipo": "sample string 4"
}

application/xml, text/xml

Sample:
<creditoPOST xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShopperREST.Controllers">
  <SecurityCode>sample string 3</SecurityCode>
  <cartao_id>1</cartao_id>
  <id>2</id>
  <tipo>sample string 4</tipo>
</creditoPOST>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

creditoPOSTResp
NameDescriptionTypeAdditional information
status

string

None.

mensagem

string

None.

paymentId

string

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

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