Delete payment method
curl --request DELETE \
--url https://uat-api.clinkbill.com/agent/platform/payment-methods/{paymentInstrumentId} \
--header 'Authorization: Bearer <token>'HttpResponse<String> response = Unirest.delete("https://uat-api.clinkbill.com/agent/platform/payment-methods/{paymentInstrumentId}")
.header("Authorization", "Bearer <token>")
.asString();import requests
url = "https://uat-api.clinkbill.com/agent/platform/payment-methods/{paymentInstrumentId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://uat-api.clinkbill.com/agent/platform/payment-methods/{paymentInstrumentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "Success",
"data": {
"deleted": true
}
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}Payment Methods
Delete payment method
Deletes one of the token’s customer’s payment methods. Requires portal:write.
DELETE
/
agent
/
platform
/
payment-methods
/
{paymentInstrumentId}
Delete payment method
curl --request DELETE \
--url https://uat-api.clinkbill.com/agent/platform/payment-methods/{paymentInstrumentId} \
--header 'Authorization: Bearer <token>'HttpResponse<String> response = Unirest.delete("https://uat-api.clinkbill.com/agent/platform/payment-methods/{paymentInstrumentId}")
.header("Authorization", "Bearer <token>")
.asString();import requests
url = "https://uat-api.clinkbill.com/agent/platform/payment-methods/{paymentInstrumentId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://uat-api.clinkbill.com/agent/platform/payment-methods/{paymentInstrumentId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"code": 200,
"msg": "Success",
"data": {
"deleted": true
}
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}{
"code": 123,
"msg": "<string>"
}A successful deletion returns
200 with deleted: true. The deletion is immediate and the response does not include a user-facing page URL. A payment method that does not exist, or that belongs to another customer, returns the same 404, so the response does not reveal whether another customer’s card exists. The default card can be deleted. Repeating the request after a successful deletion returns 404.