POST v1/Generic/SavePaymentMethod
Save New Payment Card (FS Customer Payment Token Insert)
This is secure method and requires below attributes in header
Authorization: PRC Authorize Token | Authorization: Midnight Authorize Token | |
MISKEY: MIS Key |
Request Information
URI Parameters
None.
Body Parameters
Collection of NewPaymentMethodDetailsName | Description | Type | Additional information |
---|---|---|---|
CustomerId |
Provide the CustomerId |
integer |
Required |
Token |
Provide the Token |
string |
Required |
NameOnCard |
Provide the NameOnCard |
string |
Required |
CardType |
Provide the CardType |
integer |
Required |
CardNumber |
Provide the CardNumber |
string |
Required |
ExpirationMonth |
Provide the ExpirationMonth |
integer |
Required |
ExpirationYear |
Provide the ExpirationYear |
integer |
Required |
Request Formats
application/json, text/json
Sample:
[ { "CustomerId": 1, "Token": "sample string 2", "NameOnCard": "sample string 3", "CardType": 4, "CardNumber": "sample string 5", "ExpirationMonth": 6, "ExpirationYear": 7 }, { "CustomerId": 1, "Token": "sample string 2", "NameOnCard": "sample string 3", "CardType": 4, "CardNumber": "sample string 5", "ExpirationMonth": 6, "ExpirationYear": 7 } ]
application/x-www-form-urlencoded
Sample:
Response Information
Response Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string>sample string 1</string>