POST api/PaymentMethod/AddCC
Request Information
URI Parameters
None.
Body Parameters
CreditCardFormName | Description | Type | Additional information |
---|---|---|---|
Suite | string |
None. |
|
StreetAddress | string |
None. |
|
City | string |
None. |
|
State | string |
None. |
|
Zip | string |
None. |
|
NameOnCard | string |
None. |
|
CardId | string |
None. |
|
TypeId | integer |
None. |
|
ExpMonth | integer |
None. |
|
ExpYear | integer |
None. |
|
GatewayCustomerId | string |
None. |
|
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:
{ "Suite": "sample string 1", "StreetAddress": "sample string 2", "City": "sample string 3", "State": "sample string 4", "Zip": "sample string 5", "NameOnCard": "sample string 6", "CardId": "sample string 7", "TypeId": 8, "ExpMonth": 9, "ExpYear": 10, "GatewayCustomerId": "sample string 11", "FirstName": "sample string 12", "LastName": "sample string 13", "CardNumber": "sample string 14", "SecurityCode": "sample string 15", "SaveCard": true, "CustomName": "sample string 17", "EmailAddress": "sample string 18", "EmailPromotions": true, "PhoneNumber": "sample string 20" }
text/html
Sample:
{"Suite":"sample string 1","StreetAddress":"sample string 2","City":"sample string 3","State":"sample string 4","Zip":"sample string 5","NameOnCard":"sample string 6","CardId":"sample string 7","TypeId":8,"ExpMonth":9,"ExpYear":10,"GatewayCustomerId":"sample string 11","FirstName":"sample string 12","LastName":"sample string 13","CardNumber":"sample string 14","SecurityCode":"sample string 15","SaveCard":true,"CustomName":"sample string 17","EmailAddress":"sample string 18","EmailPromotions":true,"PhoneNumber":"sample string 20"}
application/xml, text/xml
Sample:
<CreditCardForm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Specialtys.DTO"> <CardNumber>sample string 14</CardNumber> <CustomName>sample string 17</CustomName> <EmailAddress>sample string 18</EmailAddress> <EmailPromotions>true</EmailPromotions> <FirstName>sample string 12</FirstName> <LastName>sample string 13</LastName> <PhoneNumber>sample string 20</PhoneNumber> <SaveCard>true</SaveCard> <SecurityCode>sample string 15</SecurityCode> <CardId>sample string 7</CardId> <City>sample string 3</City> <ExpMonth>9</ExpMonth> <ExpYear>10</ExpYear> <GatewayCustomerId>sample string 11</GatewayCustomerId> <NameOnCard>sample string 6</NameOnCard> <State>sample string 4</State> <StreetAddress>sample string 2</StreetAddress> <Suite>sample string 1</Suite> <TypeId>8</TypeId> <Zip>sample string 5</Zip> </CreditCardForm>
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.