Skip to content

Delete payment method details

Request

Delete payment method details

Security
bearer and basic and apiKey
Path
customerIdstringrequired

Customer Id

Example:cu_96586bedjfe4tg3
paymentMethodIdstringrequired

Payment Method Id

Example:pm_5555b1a99fe4tg3
curl -i -X DELETE \
  -u '<username>:<password>' \
  'https://test.computop-paygate.com/api/v2/customers/{customerId}/paymentMethods/{paymentMethodId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

Payment Method successfully deleted

Bodyapplication/json
idstring

Unique ID assigned by Paygate for the payment method record.

deletedboolean

Indicates if the payment method record was deleted or not.

Response
{ "id": "pm_5555b1a99fe4tg3", "deleted": true }