Unenroll Payment Method

Unenroll a saved payment method for the user. Once you’ve done the POST to the unenrollment endpoint, the payment method status will be changed to UNENROLLED.

Unenrollment Information

To unenroll the payment method, you need to provide the payment_method_id, which is the vaulted_token received when using the Enroll Payment Method endpoint.

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

Path Parameters

customer_idstringrequired

The unique identifier of the customer (UUID, 36 chars).

payment_method_idstringrequired

The unique identifier of the payment method. This is the vaulted_token received when enrolling a payment method using Enroll Payment Method (UUID, 36 chars).

Response

200

idstring
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/<customer_id>/payment-methods/<payment_method_id>/unenroll" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>" \
  -H "X-Idempotency-Key: <X-Idempotency-Key>"
Response
{
  "id": "cbdcc878-ceb4-4dd8-b0f0-49d444855de0",
  "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:32:49.715656Z",
  "updated_at": "2024-06-06T13:37:38.891106Z",
  "enrollment": {
    "session": "",
    "sdk_required_action": true
  },
  "provider": {
    "id": "YUNO",
    "type": "YUNO",
    "provider_status": null
  },
  "verify": {
    "vault_on_success": false,
    "payment": null
  },
  "preferred": null
}