Delete Stored Payment Option

Last changes: 04-08-2019

By specifying the stored payment option reference (see section Get Stored Payment Options) in the API method 1.55 Delete Stored Payment Option, the associated payment option is deleted.

In the example below, we delete the payment option with the reference "8ac7a4a266c593040166d4b7d08e2201" (see section 1. Get Stored Payment Options) for the Technical Account KDNR0001.

Delete Stored Payment Option Request

Path:

DELETE /account/KDNR0001/storedPaymentOptions/8ac7a4a266c593040166d4b7d08e2201

Header:

Content-Type: application/json
Accept-Language: en-US
X-Auth-Token: H4sIAAAAAAA{partial omission for brevity}EAN2bJ/6l2XX+A5kJqdP+MwAA

{
    "partnerReference": "DEV-SVR001-DE_CUSTID-9T8XWQ84FB_CARTID-937BM4CV8F_B48PPMJT3J",
    "programCode": "COMPANYDE",
    "accnoType": "00",
    "localDate": "2018-11-07",
    "localTime": "135542"
}

Delete Stored Payment Option Response

Status Code:

200 (OK)

Header:

Content-Type: application/json
Accept-Language: en-US

{
    "accno": "KDNR0001",
    "programCode": "COMPANYDE",
    "partnerReference": "DEV-SVR001-DE_CUSTID-9T8XWQ84FB_CARTID-937BM4CV8F_B48PPMJT3J",
    "localDate": "2018-11-07",
    "localTime": "135542",
    "sysDate": "2018-11-07",
    "sysTime": "125544",
    "responseCode": "0000",
    "responseDescription": "Successful execution"
}

The "responseCode" 0000 and the “responseDescription” indicate that the payment option has been successfully deleted.