POST v1/Generic/SavePaymentMethod

Request Information

URI Parameters

None.

Body Parameters

Collection of NewPaymentMethodDetails
NameDescriptionTypeAdditional information
CustomerId

integer

Required

Token

string

Required

NameOnCard

string

Required

CardType

integer

Required

CardNumber

string

Required

ExpirationMonth

integer

Required

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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'IList`1'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string>sample string 1</string>