POST v1/Generic/PaymentMethodUpdate
Request Information
URI Parameters
None.
Body Parameters
PaymentMethodUpdateRequestName | Description | Type | Additional information |
---|---|---|---|
CustomerId | integer |
Required |
|
TokenId | integer |
None. |
|
Token | string |
Max length: 50 |
|
PaymentType | string |
Required Max length: 50 |
|
NickName | string |
Max length: 150 |
|
NameOnCard | string |
Max length: 150 |
|
City | string |
Max length: 50 |
|
StateCode | string |
Max length: 10 |
|
Zip | string |
Max length: 20 |
|
CountryCode | string |
Max length: 10 |
|
EmailAddress | string |
Max length: 150 |
|
ExpirationMonth | integer |
None. |
|
ExpirationYear | integer |
None. |
|
IsDefault | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerId": 1, "TokenId": 1, "Token": "sample string 2", "PaymentType": "sample string 3", "NickName": "sample string 4", "NameOnCard": "sample string 5", "City": "sample string 6", "StateCode": "sample string 7", "Zip": "sample string 8", "CountryCode": "sample string 9", "EmailAddress": "sample string 10", "ExpirationMonth": 11, "ExpirationYear": 12, "IsDefault": true }
application/xml, text/xml
Sample:
<PaymentMethodUpdateRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <CustomerId>1</CustomerId> <TokenId>1</TokenId> <Token>sample string 2</Token> <PaymentType>sample string 3</PaymentType> <NickName>sample string 4</NickName> <NameOnCard>sample string 5</NameOnCard> <City>sample string 6</City> <StateCode>sample string 7</StateCode> <Zip>sample string 8</Zip> <CountryCode>sample string 9</CountryCode> <EmailAddress>sample string 10</EmailAddress> <ExpirationMonth>11</ExpirationMonth> <ExpirationYear>12</ExpirationYear> <IsDefault>true</IsDefault> </PaymentMethodUpdateRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string>sample string 1</string>