Skip to main content
DELETE
Delete payment method
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.

Authorizations

Authorization
string
header
required

Portal user token from POST /agent/cwallet/platform/portal/tokens. Reads require portal:read; writes require portal:write.

Path Parameters

paymentInstrumentId
string
required

ID of the payment method to delete.

Example:

"pi_..."

Response

Success

code
integer<int32>

200 on success.

Example:

200

msg
string

Result message.

Example:

"Success"

data
object