Delete Stored Payment Option

Last changes: 10-28-2022

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 {baseURL}/account/KDNR0001/storedPaymentOptions/8ac7a4a266c593040166d4b7d08e2201

Header:

Content-Type: application/json
Accept-Language: en-US
X-Auth-Token: eyJhbGciOiJSUzI1NiI{abbreviated}RW5kVG9rZW4=

{
    "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",
    "additionalInformation": {
        "requestId": "aff2728481a181dc36daedc14055b516"
    }
}

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