POST v1/Generic/PaymentMethodDelete

Deletes existing Payment Method for a customer

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

PaymentMethodUpdateRequest

PaymentMethodDeleteRequest
NameDescriptionTypeAdditional information
CustomerId

Provide the CustomerId

integer

Required

TokenId

Provide the TokenId (PK - FSCustomerPaymentTokenId)

integer

None.

Token

Provide the Token

string

Max length: 50

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<PaymentMethodDeleteRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <CustomerId>1</CustomerId>
  <TokenId>1</TokenId>
  <Token>sample string 2</Token>
</PaymentMethodDeleteRequest>

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

Response Information

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

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