POST api/Client/PostCard

Request Information

URI Parameters

None.

Body Parameters

CredCardDto
NameDescriptionTypeAdditional information
nickName

string

Required

printName

string

Required

number

string

Required

expiryMonth

string

Required

expiryYear

string

Required

ccv

string

Required

holderName

string

Required

email

string

Required

cpfCnpj

string

Required

postalCode

string

Required

addressNumber

string

Required

addressComplement

string

None.

mobilePhone

string

Required

Request Formats

application/json, text/json

Sample:
{
  "nickName": "sample string 1",
  "printName": "sample string 2",
  "number": "sample string 3",
  "expiryMonth": "sample string 4",
  "expiryYear": "sample string 5",
  "ccv": "sample string 6",
  "holderName": "sample string 7",
  "email": "sample string 8",
  "cpfCnpj": "sample string 9",
  "postalCode": "sample string 10",
  "addressNumber": "sample string 11",
  "addressComplement": "sample string 12",
  "mobilePhone": "sample string 13"
}

application/xml, text/xml

Sample:
<CredCardDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OffDriver.Entities.Dto.Payment">
  <addressComplement>sample string 12</addressComplement>
  <addressNumber>sample string 11</addressNumber>
  <ccv>sample string 6</ccv>
  <cpfCnpj>sample string 9</cpfCnpj>
  <email>sample string 8</email>
  <expiryMonth>sample string 4</expiryMonth>
  <expiryYear>sample string 5</expiryYear>
  <holderName>sample string 7</holderName>
  <mobilePhone>sample string 13</mobilePhone>
  <nickName>sample string 1</nickName>
  <number>sample string 3</number>
  <postalCode>sample string 10</postalCode>
  <printName>sample string 2</printName>
</CredCardDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CredCardDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.