POST api/Payment/AddUpdatePaymentMethod
Request Information
URI Parameters
None
Body Parameters
Payment| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None |
|
| AddressId | integer |
None |
|
| UserName | string |
None |
|
| IsDefault | boolean |
None |
|
| CardType | string |
None |
|
| CardNumber | string |
None |
|
| CardholderName | string |
None |
|
| ExpirationMonth | string |
None |
|
| ExpirationYear | string |
None |
|
| VerificationCode | string |
None |
|
| CountryCode | string |
None |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"addressId": 2,
"userName": "sample string 3",
"isDefault": true,
"cardType": "sample string 5",
"cardNumber": "sample string 6",
"cardholderName": "sample string 7",
"expirationMonth": "sample string 8",
"expirationYear": "sample string 9",
"verificationCode": "sample string 10",
"countryCode": "sample string 11"
}
application/xml, text/xml
Sample:
<Payment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Priceline.WebServices.Entities">
<AddressId>2</AddressId>
<CardNumber>sample string 6</CardNumber>
<CardType>sample string 5</CardType>
<CardholderName>sample string 7</CardholderName>
<CountryCode>sample string 11</CountryCode>
<ExpirationMonth>sample string 8</ExpirationMonth>
<ExpirationYear>sample string 9</ExpirationYear>
<Id>1</Id>
<IsDefault>true</IsDefault>
<UserName>sample string 3</UserName>
<VerificationCode>sample string 10</VerificationCode>
</Payment>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None |
|
| Content | HttpContent |
None |
|
| StatusCode | HttpStatusCode |
None |
|
| ReasonPhrase | string |
None |
|
| Headers | Collection of Object |
None |
|
| RequestMessage | HttpRequestMessage |
None |
|
| IsSuccessStatusCode | boolean |
None |