Unenroll Payment Method

Unenroll a previously saved payment method for a customer.

To perform this action, provide the payment_method_id in the request path. Once the request is successful, the payment method’s status will be updated to UNENROLLED, making it inactive and no longer available for use in future transactions.

POST/customers/payment-methods/{payment_method_id}/unenroll

Path Parameters

payment_method_idstringrequired

The payment method id to unenroll (UUID, 36 chars).

Response

200

idstring
idempotency_keyany
account_idstring
namestring
descriptionstring
typestring
categorystring
countrystring
statusstring
created_atstring
updated_atstring
enrollmentobject
Show enrollment properties
sessionstring
sdk_required_actionboolean
providerobject
Show provider properties
idstring
typestring
provider_statusany
verifyobject
Show verify properties
vault_on_successboolean
paymentany
preferredany

400

codestring
messagesstring[]

401

codestring
messagesstring[]

403

codestring
messagesstring[]
Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/customers/payment-methods/<payment_method_id>/unenroll" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>"
Response
{
  "id": "77ee4a02-da3e-4a11-ac15-ba69e1813475",
  "idempotency_key": null,
  "account_id": "493e9374-510a-4201-9e09-de669d75f256",
  "name": "VISA ****1111",
  "description": "VISA ****1111",
  "type": "CARD",
  "category": "CARD",
  "country": "US",
  "status": "UNENROLLED",
  "created_at": "2024-06-06T13:28:57.149530Z",
  "updated_at": "2024-06-06T13:31:13.945554Z",
  "enrollment": {
    "session": "0685f1d6-11ff-4992-abc3-9eea1842205c",
    "sdk_required_action": true
  },
  "provider": {
    "id": "YUNO",
    "type": "YUNO",
    "provider_status": null
  },
  "verify": {
    "vault_on_success": false,
    "payment": null
  },
  "preferred": null
}