POST v1/Generic/PaymentMethodList

Get saved payment method list for a customer based on CustomerID

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

PaymentMethodListRequest object for input filtering.

PaymentMethodListRequest
NameDescriptionTypeAdditional information
CustomerId

Provide the CustomerId

integer

Required

Token

Provide the Token - null if no filter

string

Max length: 50

TokenId

Provide the TokenId (PK - FSCustomerPaymentTokenId) - null if no filter

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "Token": "sample string 2",
  "TokenId": 1
}

application/xml, text/xml

Sample:
<PaymentMethodListRequest 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>
  <TokenId>1</TokenId>
</PaymentMethodListRequest>

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 'PaymentMethodListRequest'.

Response Information

Response Formats

application/json, text/json

Sample:
[
  {
    "TokenId": 1,
    "ModifiedDate": "2024-04-23T08:04:23.5140644-04:00",
    "IsDefault": true,
    "CustomerId": 3,
    "Token": "sample string 4",
    "PaymentType": "sample string 5",
    "AccountType": "sample string 6",
    "NickName": "sample string 7",
    "NameOnCard": "sample string 8",
    "City": "sample string 9",
    "StateCode": "sample string 10",
    "Zip": "sample string 11",
    "CountryCode": "sample string 12",
    "EmailAddress": "sample string 13",
    "CardType": "sample string 14",
    "CardNumber": "sample string 15",
    "ExpirationMonth": 1,
    "ExpirationYear": 1,
    "AccountNumber": "sample string 16",
    "RoutingNumber": "sample string 17",
    "CheckDate": "sample string 18",
    "CheckNumber": "sample string 19"
  },
  {
    "TokenId": 1,
    "ModifiedDate": "2024-04-23T08:04:23.5140644-04:00",
    "IsDefault": true,
    "CustomerId": 3,
    "Token": "sample string 4",
    "PaymentType": "sample string 5",
    "AccountType": "sample string 6",
    "NickName": "sample string 7",
    "NameOnCard": "sample string 8",
    "City": "sample string 9",
    "StateCode": "sample string 10",
    "Zip": "sample string 11",
    "CountryCode": "sample string 12",
    "EmailAddress": "sample string 13",
    "CardType": "sample string 14",
    "CardNumber": "sample string 15",
    "ExpirationMonth": 1,
    "ExpirationYear": 1,
    "AccountNumber": "sample string 16",
    "RoutingNumber": "sample string 17",
    "CheckDate": "sample string 18",
    "CheckNumber": "sample string 19"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPaymentMethodSelectResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <PaymentMethodSelectResponse>
    <CustomerId>3</CustomerId>
    <Token>sample string 4</Token>
    <PaymentType>sample string 5</PaymentType>
    <AccountType>sample string 6</AccountType>
    <NickName>sample string 7</NickName>
    <NameOnCard>sample string 8</NameOnCard>
    <City>sample string 9</City>
    <StateCode>sample string 10</StateCode>
    <Zip>sample string 11</Zip>
    <CountryCode>sample string 12</CountryCode>
    <EmailAddress>sample string 13</EmailAddress>
    <CardType>sample string 14</CardType>
    <CardNumber>sample string 15</CardNumber>
    <ExpirationMonth>1</ExpirationMonth>
    <ExpirationYear>1</ExpirationYear>
    <AccountNumber>sample string 16</AccountNumber>
    <RoutingNumber>sample string 17</RoutingNumber>
    <CheckDate>sample string 18</CheckDate>
    <CheckNumber>sample string 19</CheckNumber>
    <IsDefault>true</IsDefault>
    <TokenId>1</TokenId>
    <ModifiedDate>2024-04-23T08:04:23.5140644-04:00</ModifiedDate>
  </PaymentMethodSelectResponse>
  <PaymentMethodSelectResponse>
    <CustomerId>3</CustomerId>
    <Token>sample string 4</Token>
    <PaymentType>sample string 5</PaymentType>
    <AccountType>sample string 6</AccountType>
    <NickName>sample string 7</NickName>
    <NameOnCard>sample string 8</NameOnCard>
    <City>sample string 9</City>
    <StateCode>sample string 10</StateCode>
    <Zip>sample string 11</Zip>
    <CountryCode>sample string 12</CountryCode>
    <EmailAddress>sample string 13</EmailAddress>
    <CardType>sample string 14</CardType>
    <CardNumber>sample string 15</CardNumber>
    <ExpirationMonth>1</ExpirationMonth>
    <ExpirationYear>1</ExpirationYear>
    <AccountNumber>sample string 16</AccountNumber>
    <RoutingNumber>sample string 17</RoutingNumber>
    <CheckDate>sample string 18</CheckDate>
    <CheckNumber>sample string 19</CheckNumber>
    <IsDefault>true</IsDefault>
    <TokenId>1</TokenId>
    <ModifiedDate>2024-04-23T08:04:23.5140644-04:00</ModifiedDate>
  </PaymentMethodSelectResponse>
</ArrayOfPaymentMethodSelectResponse>