POST v1/Generic/PaymentMethodInsert
Request Information
URI Parameters
None.
Body Parameters
PaymentMethodInsertRequestName | Description | Type | Additional information |
---|---|---|---|
CustomerId | integer |
Required |
|
Token | string |
Required Max length: 50 |
|
PaymentType | string |
Required Max length: 50 |
|
AccountType | string |
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 |
|
CardType | string |
Max length: 50 |
|
CardNumber | string |
Max length: 50 |
|
ExpirationMonth | integer |
None. |
|
ExpirationYear | integer |
None. |
|
AccountNumber | string |
Max length: 50 |
|
RoutingNumber | string |
Max length: 50 |
|
CheckDate | string |
Max length: 50 |
|
CheckNumber | string |
Max length: 50 |
|
IsDefault | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomerId": 1, "Token": "sample string 2", "PaymentType": "sample string 3", "AccountType": "sample string 4", "NickName": "sample string 5", "NameOnCard": "sample string 6", "City": "sample string 7", "StateCode": "sample string 8", "Zip": "sample string 9", "CountryCode": "sample string 10", "EmailAddress": "sample string 11", "CardType": "sample string 12", "CardNumber": "sample string 13", "ExpirationMonth": 1, "ExpirationYear": 1, "AccountNumber": "sample string 14", "RoutingNumber": "sample string 15", "CheckDate": "sample string 16", "CheckNumber": "sample string 17", "IsDefault": true }
application/xml, text/xml
Sample:
<PaymentMethodInsertRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <CustomerId>1</CustomerId> <Token>sample string 2</Token> <PaymentType>sample string 3</PaymentType> <AccountType>sample string 4</AccountType> <NickName>sample string 5</NickName> <NameOnCard>sample string 6</NameOnCard> <City>sample string 7</City> <StateCode>sample string 8</StateCode> <Zip>sample string 9</Zip> <CountryCode>sample string 10</CountryCode> <EmailAddress>sample string 11</EmailAddress> <CardType>sample string 12</CardType> <CardNumber>sample string 13</CardNumber> <ExpirationMonth>1</ExpirationMonth> <ExpirationYear>1</ExpirationYear> <AccountNumber>sample string 14</AccountNumber> <RoutingNumber>sample string 15</RoutingNumber> <CheckDate>sample string 16</CheckDate> <CheckNumber>sample string 17</CheckNumber> <IsDefault>true</IsDefault> </PaymentMethodInsertRequest>
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>