POST DistOneAPi/AddCard
Request Information
URI Parameters
None.
Body Parameters
CardDetailViewModelName | Description | Type | Additional information |
---|---|---|---|
iscreditcard | boolean |
None. |
|
profileid | string |
None. |
|
SubUserID | string |
None. |
|
Id | integer |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
CardType | string |
None. |
|
CardNumber | string |
None. |
|
ExpirationMonth | string |
None. |
|
ExpirationYear | string |
None. |
|
SecurityCode | string |
None. |
|
Customer | string |
None. |
|
adr1 | string |
None. |
|
adr2 | string |
None. |
|
city | string |
None. |
|
state | string |
None. |
|
country | string |
None. |
|
zip | string |
None. |
|
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "iscreditcard": true, "profileid": "sample string 2", "SubUserID": "sample string 3", "Id": 4, "FirstName": "sample string 5", "LastName": "sample string 6", "CardType": "sample string 7", "CardNumber": "sample string 8", "ExpirationMonth": "sample string 9", "ExpirationYear": "sample string 10", "SecurityCode": "sample string 11", "Customer": "sample string 12", "adr1": "sample string 13", "adr2": "sample string 14", "city": "sample string 15", "state": "sample string 16", "country": "sample string 17", "zip": "sample string 18", "Email": "sample string 19" }
text/xml
Sample:
<CardDetailViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DistOneWebAPI.ViewModels"> <CardNumber>sample string 8</CardNumber> <CardType>sample string 7</CardType> <Customer>sample string 12</Customer> <Email>sample string 19</Email> <ExpirationMonth>sample string 9</ExpirationMonth> <ExpirationYear>sample string 10</ExpirationYear> <FirstName>sample string 5</FirstName> <Id>4</Id> <LastName>sample string 6</LastName> <SecurityCode>sample string 11</SecurityCode> <SubUserID>sample string 3</SubUserID> <adr1>sample string 13</adr1> <adr2>sample string 14</adr2> <city>sample string 15</city> <country>sample string 17</country> <iscreditcard>true</iscreditcard> <profileid>sample string 2</profileid> <state>sample string 16</state> <zip>sample string 18</zip> </CardDetailViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
apiresponseName | Description | Type | Additional information |
---|---|---|---|
status | boolean |
None. |
|
msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "status": true, "msg": "sample string 2" }
text/xml
Sample:
<apiresponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DistOneWebAPI.ViewModels"> <msg>sample string 2</msg> <status>true</status> </apiresponse>