POST v1/Generic/CustomerSavedCardList

Get saved card list for a customer from Midnight 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

CustomerSavedCardListRequest

CustomerSavedCardListRequest
NameDescriptionTypeAdditional information
CustomerId

Provide CustomerId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": 1
}

application/xml, text/xml

Sample:
<CustomerSavedCardListRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CustomerId>1</CustomerId>
</CustomerSavedCardListRequest>

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

Response Information

Response Formats

application/json, text/json

Sample:
[
  {
    "TokenID": 1,
    "CustomerId": 2,
    "Token": "sample string 3",
    "Name": "sample string 4",
    "CardType": "sample string 5",
    "CardNumber": "sample string 6",
    "Expiry": "sample string 7",
    "ExpiryMonth": "sample string 8",
    "ACH": 9,
    "Default": true
  },
  {
    "TokenID": 1,
    "CustomerId": 2,
    "Token": "sample string 3",
    "Name": "sample string 4",
    "CardType": "sample string 5",
    "CardNumber": "sample string 6",
    "Expiry": "sample string 7",
    "ExpiryMonth": "sample string 8",
    "ACH": 9,
    "Default": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerSavedCardListResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CustomerSavedCardListResponse>
    <TokenID>1</TokenID>
    <CustomerId>2</CustomerId>
    <Token>sample string 3</Token>
    <Name>sample string 4</Name>
    <CardType>sample string 5</CardType>
    <CardNumber>sample string 6</CardNumber>
    <Expiry>sample string 7</Expiry>
    <ExpiryMonth>sample string 8</ExpiryMonth>
    <ACH>9</ACH>
    <Default>true</Default>
  </CustomerSavedCardListResponse>
  <CustomerSavedCardListResponse>
    <TokenID>1</TokenID>
    <CustomerId>2</CustomerId>
    <Token>sample string 3</Token>
    <Name>sample string 4</Name>
    <CardType>sample string 5</CardType>
    <CardNumber>sample string 6</CardNumber>
    <Expiry>sample string 7</Expiry>
    <ExpiryMonth>sample string 8</ExpiryMonth>
    <ACH>9</ACH>
    <Default>true</Default>
  </CustomerSavedCardListResponse>
</ArrayOfCustomerSavedCardListResponse>