POST api/PaymentMethod/AddGC

Request Information

URI Parameters

None.

Body Parameters

GiftCardForm
NameDescriptionTypeAdditional information
FirstName

string

None.

LastName

string

None.

CardNumber

string

None.

SecurityCode

string

None.

SaveCard

boolean

None.

CustomName

string

None.

EmailAddress

string

None.

EmailPromotions

boolean

None.

PhoneNumber

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "CardNumber": "sample string 3",
  "SecurityCode": "sample string 4",
  "SaveCard": true,
  "CustomName": "sample string 6",
  "EmailAddress": "sample string 7",
  "EmailPromotions": true,
  "PhoneNumber": "sample string 9"
}

text/html

Sample:
{"FirstName":"sample string 1","LastName":"sample string 2","CardNumber":"sample string 3","SecurityCode":"sample string 4","SaveCard":true,"CustomName":"sample string 6","EmailAddress":"sample string 7","EmailPromotions":true,"PhoneNumber":"sample string 9"}

application/xml, text/xml

Sample:
<GiftCardForm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Specialtys.DTO">
  <CardNumber>sample string 3</CardNumber>
  <CustomName>sample string 6</CustomName>
  <EmailAddress>sample string 7</EmailAddress>
  <EmailPromotions>true</EmailPromotions>
  <FirstName>sample string 1</FirstName>
  <LastName>sample string 2</LastName>
  <PhoneNumber>sample string 9</PhoneNumber>
  <SaveCard>true</SaveCard>
  <SecurityCode>sample string 4</SecurityCode>
</GiftCardForm>

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.